Re: NSWindow - makeKeyAndOrderFront problem

2010-03-01 Thread Matthew Lindfield Seager
On Monday, March 1, 2010, Andreas Mayer andr...@harmless.de wrote: Try dragging something onto the iTunes source list. iTunes will import it, but will not activate itself. Apples Oranges... iTunes is (was?) a library application more than a player. It also has origins in audio, not video.

Re: Where in the MVC should my code go?

2010-02-27 Thread Matthew Lindfield Seager
On Sunday, February 28, 2010, Jean-Henri Duteau duteaudes...@gmail.com wrote: I don't have a good reason to not put it into the view other than pragmatic.   I can give the controller a bunch of attributes and bind the view's controls to those attributes, as opposed to programatically creating

Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?

2010-02-27 Thread Matthew Lindfield Seager
On Saturday, February 27, 2010, Jonathan Hendry jonhen...@mac.com wrote: You might try checking for any telltale running processes, or checking the output of lsof -i for any open sockets that are indicative of a VNC or ARD connection. That might have to run sudo'd as root. But again you have

Re: Improving the User Experience for First Use of Downloadable Software

2010-02-26 Thread Matthew Lindfield Seager
On Friday, February 26, 2010, Charles Srstka cocoa...@charlessoft.com wrote: I suppose for the time being, you could use -[NSApplication activateIgnoringOtherApps:] in your application delegate’s applicationDidFinishLaunching: method as a workaround. Caveat Emptor: If you do this you may

Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?

2010-02-26 Thread Matthew Lindfield Seager
On Saturday, February 27, 2010, Joe Jones jo...@microsoft.com wrote: Thanx, Joe Why? What are you trying to achieve? I doubt it though! AFAIK you can only have a remote console (i.e. screen sharing) so the app isn't running in the VNC session, it's running normally on the host computer. Your

Setting parent window

2010-02-26 Thread Matthew Lindfield Seager
Eric Schlegel  wrote: Mac OS X does not support window child/parent relationships across processes, so I think this approach isn't going to work for you. Eric is completely right but I'm wondering if the OP is saying what he means and meaning what he says... Gaurav Srivastava wrote: I want

Re: Null value from NSMutableArray

2010-02-15 Thread Matthew Lindfield Seager
On Tuesday, February 16, 2010, Jens Alfke j...@mooseyard.com wrote: unless you need your app to remain compatible with the thirty-two Mac users who still run 10.4. Thirty one now. I forgot to tell you I've finally retired my trusty G3 Wallstreet. Rest In Peace Gina, I'll miss you (but only

Re: Dock position and size

2010-02-14 Thread Matthew Lindfield Seager
On 15 February 2010 11:03, Sandro Noël sandro.n...@gestosoft.com wrote: the reason why i want to know the position of the dock is because i want to latch on to it, over it. I might be wrong and you may have a great reason for wanting to do this but it doesn't seem very Mac-like... There's

Re: creating an NSSearchField subclass like Safari

2010-02-05 Thread Matthew Lindfield Seager
On Saturday, February 6, 2010, Neil Allain njall...@bluerope.org wrote: - search menu opens when the user enters text that has possible matches (rather than just when the button is clicked) - search menu will update the matches while the user continues to type Since no one more qualified has

Re: Tabbing between cells in a complex control

2010-01-31 Thread Matthew Lindfield Seager
On Monday, February 1, 2010, Charles Jenkins wrote: P.S. Is it okay to post one's own source code on this forum for the purpose of getting assistance? Sorry I can't help with your actual question but the answer to your other question is a resounding yes. Posting code helps preempt the common

Re: simple file browser

2010-01-25 Thread Matthew Lindfield Seager
On Tuesday, January 26, 2010, Ariel Feinerman arielfap...@gmail.com wrote: Hi, I want to implement file browser in my app to allow to see hidden files / other. Can you suggest me code examples of cocoa file browser? http://developer.apple.com/mac/library/samplecode/SourceView/index.html should

Re: simple file browser

2010-01-25 Thread Matthew Lindfield Seager
On Tuesday, January 26, 2010, Matthew Lindfield Seager matt...@sagacity.com.au wrote: On Tuesday, January 26, 2010, Ariel Feinerman arielfap...@gmail.com wrote: Hi, I want to implement file browser in my app to allow to see hidden files / other. Can you suggest me code examples of cocoa file

Re: How to hook into the Apple clock timer API?

2010-01-24 Thread Matthew Lindfield Seager
On Monday, January 25, 2010, yuqi chang szu...@gmail.com wrote: I have heard that there are some apps that hook into the Apple processes that will run in the background (namely, hooking into the Apple clock timer API) If you want to time activities while your app isn't running (like a GPS or

Re: View Handling

2010-01-23 Thread Matthew Lindfield Seager
On Sunday, January 24, 2010, Andy Lee ag...@mac.com wrote: On Jan 23, 2010, at 11:55 AM, Paul Bruneau wrote: I can offer two tips. The first is make the tabs be visible in IB because then it's so much easier to switch between them in IB. You can also use the outline view in the main IB

Re: NSTextField sendActionOn:

2010-01-16 Thread Matthew Lindfield Seager
On Sunday, January 17, 2010, Brad Stone cocoa-...@softraph.com wrote: The best I can do for the NSTextField is bind an action and in, IB, in the TextFieldAttributes set Action to Sent on End Editing  which sends the action after the first character is type.  I want the action sent as soon as

Re: Smart folder definition dialog

2010-01-15 Thread Matthew Lindfield Seager
Google NSPredicateEditor. Regards, Matt On Saturday, January 16, 2010, Trygve Inda cocoa...@xericdesign.com wrote: Is there sample code to do the type of windows used to define smart playlists... With expanding rules +/-. Eg... Name is, contains, begins with ---   +/- Clicking + will

Re: A password strength checker

2010-01-08 Thread Matthew Lindfield Seager
On Saturday, January 9, 2010, Philip Ershler ersh...@cvrti.utah.edu wrote: Martin,        If you haven't seen this already, check this out. Password generation via a free app and built-in OS X tool http://www.macosxhints.com/article.php?story=2010010515545381 And that article links to

Re: NSDate without time portion

2010-01-06 Thread Matthew Lindfield Seager
Yeah... There are many situations that the simple way will be right 99% of the time... And for the other 1% I reckon 99% of affected users will forgive you for not wasting bug hunting time worrying about leap seconds... Of course 72.3% of statistics are made up on the spot so don't quote me on

Re: Need font anti aliasing techniques

2010-01-04 Thread Matthew Lindfield Seager
On Monday, January 4, 2010, padmakumar padmaku...@tataelxsi.co.in wrote: What are all the ways we can programmatically make anti aliasing techniques for texts displayed in NSTextField. regards PK Try this: http://tinyurl.com/anel Or this is shorter easier to read:

Re: Custom NSFormatter classes

2010-01-04 Thread Matthew Lindfield Seager
On Tuesday, January 5, 2010, Henri Häkkinen wrote: Thanks for your answer again, Patrick. By the way, what is the general opinion about the Cocoa Bindings technology among Mac developers? Don't confuse my uninformed opinion with the general opinion but it appears to be an 80% technology...

Re: NSPopupButton URLs

2009-12-27 Thread Matthew Lindfield Seager
On Monday, December 28, 2009, Jeremy Matthews jeremymatth...@mac.com wrote: Currently, I have a nspopupbutton with some general values Airbus, Southwest, Delta, etc...upon making the proper selection and clicking the generate button, it creates the event with said attributes, including the

Re: Core Data validateForUpdate

2009-12-21 Thread Matthew Lindfield Seager
On Tuesday, December 22, 2009, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: What I ended up was: subclassing NSArrayController and overriding newObject to return a new object prefilled with some some nice values, including setting my uniqueKey to undefined, undefined_1, undefined_2, etc.

Re: Reg: Image editing using iPhone SDK

2009-12-16 Thread Matthew Lindfield Seager
On Wednesday, December 16, 2009, Sravanthi sravanthi.emm...@prithvisolutions.com wrote: Is it possible to do image editing... snip ...using iPhone SDK? Yes. What have you tried? (http://WhatHaveYouTried.com) ___ Cocoa-dev mailing list

Re: App Launches in Finder, Hangs While Launching in Debugger

2009-12-14 Thread Matthew Lindfield Seager
Not directly related to your problem but just for your info... On Tuesday, December 15, 2009, Joe The Programmer joetheappleprogram...@gmail.com wrote: Regardless, there seems to be an erroneous false/ in there. That false/ belongs to the preceding LSTypeIsPackage key.

Re: [COCOA] notification of enter/focus event?

2009-12-12 Thread Matthew Lindfield Seager
On Saturday, December 12, 2009, Paxton Sanders paxton.sand...@mac.com wrote: I want to know when the user exits edit fields, so I can check values and provide immediate feedback.  I'm using  - (void)controlTextDidEndEditing:(NSNotification *)aNotification and it works. Also ( it may not be

Re: Problem with NSNumberFormater setted in IB

2009-11-26 Thread Matthew Lindfield Seager
On Thursday, November 26, 2009, Gustavo Pizano gustavxcodepic...@gmail.com wrote: so its kinda annoying to type the value with the currency symbol, or even worst with the mouse select only the digits to be edited. I dunno if I didn't configure properly the Formatter in IB. Any ideas? This

Re: NSOutlineView - How to hide disclosure triangle for root nodes ?

2009-11-25 Thread Matthew Lindfield Seager
On Thursday, November 26, 2009, Mario Kušnjer mario.kusn...@sb.t-com.hr wrote: Is that delegate method in Snow Leopard ? Because I don't see it in Leopard ! - (BOOL)outlineView:(NSOutlineView *)outlineView shouldShowOutlineCellForItem:(id)item; I wanted to do something similar recently on

Re: Core Data: Simply set NSMigratePersistentStoresAutomaticallyOption in a Document?

2009-11-19 Thread Matthew Lindfield Seager
P.S.  Sorry if this is in the list archives but since cocoabuilder.com is down I'm searching lists.apple.com.  Searching with   Search for: NSMigratePersistentStoresAutomaticallyOption   Match: All   Find: Substring   Located In: Whole Document   Listname Matches: cocoa-dev I get:

Re: Package Maker Won't Install on Snow Leopard

2009-11-07 Thread Matthew Lindfield Seager
Hi John, You may get a better response posting on Installer-Dev... http://lists.apple.com/mailman/listinfo/installer-dev Matt ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: NSArrayController inside NSTreeController?

2009-11-04 Thread Matthew Lindfield Seager
On Thursday, November 5, 2009, David Catmull uncom...@uncommonplace.com wrote: This is for a NSOutlineView source view, and each group in the source view contains different kinds of items. In some cases, I want them to be Core Data items, so the easiest way to manage that is to use an array

Re: outline view with mail style folder counts in rounded rectangle

2009-10-28 Thread Matthew Lindfield Seager
could someone point me in the right direction, what is the easiest way of doing this? would i have to override the text cell for the outline view, or can i use a value transformer of some sort? I'm sure someone will correct me if (when?) I'm wrong but I've heard them called badges. Googling

Re: Odd window behavior LSUIElement=1

2009-10-28 Thread Matthew Lindfield Seager
Let's say I have existing applications running, A with a window on top of application B. My program pops up a window and forces it to the front. So I have MyApp on top of A on top of B. Now I click on Application A, bringing it to the front. Now I have A on top of MyApp on top of B. Now I

Re: kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2009-10-26 Thread Matthew Lindfield Seager
It did in fact make it through; a good way to check is to look at Cocoabuilder (http://www.cocoabuilder.com) and the Apple mailing list archives (http://lists.apple.com).  In this case, I found your message here: http://lists.apple.com/archives/cocoa-dev/2009/Oct/msg01683.html In Jon's defence I

Re: Search on Core data Table issue?

2009-10-22 Thread Matthew Lindfield Seager
A reducing search is more commonly referred to as filtering. A google search should help you very quickly as this is very easy with core data bindings. If you're still struggling another keyword that may help is (NS)Predicate. Matt ___ Cocoa-dev

Binding Enabled property to NSArrayController selection

2009-10-19 Thread Matthew Lindfield Seager
As discussed previously on this list I am using the data source methods of NSOutlineView to display the contents of two separate NSArrayControllers. When an item is selected I use outlineViewSelectionDidChange: to manually update the selection of the appropriate array controller and deselect all

Re: Newbie Core Data question.

2009-10-11 Thread Matthew Lindfield Seager
Hi Gustavo, I'm no expert but one way is for the second controller's Content Array or Content Set to be bound to some property of the first controller's selection. For example if you have an entity Foo with a to-many relationship called bars you would: - bind the content set of bars array

Re: How to parse unpredictable date strings [WAS: Two digit dates with NSDateFormatter]

2009-10-11 Thread Matthew Lindfield Seager
Thanks for the help. The main gap in my understanding was that by default an NSFormatter uses the same format string for converting a string to an object and converting an object to a string. It is therefore fussy about how the user types the string. By subclassing the formatter you can customise

Re: Newbie Core Data question.

2009-10-11 Thread Matthew Lindfield Seager
I want to achieve is that from the first list in the first view, I can do a drag and drop to the second view, and once dropped I want to show the data, so first I was trying setting the selected item directly, into the second view, and having a NSIObjectController in that second nib, that

Re: Two digit dates with NSDateFormatter

2009-10-08 Thread Matthew Lindfield Seager
I have a 10.4 style date formatter applied to an NSTextFieldCell. I call setTwoDigitStartDate: (tried with both the epoch date and the reference date) but when I type a date with a two digit year in it sets the year to 0009 instead of 2009. Am I missing something obvious? I've concluded

How to parse unpredictable date strings [WAS: Two digit dates with NSDateFormatter]

2009-10-08 Thread Matthew Lindfield Seager
For some reason I didn't think to test with a style that uses a two digit year. It works as advertised with the short style. The docs say The earliest date that can be denoted by a two-digit year specifier. I guess that since the medium and long styles don't have a two-digit year specifier

Two digit dates with NSDateFormatter

2009-10-05 Thread Matthew Lindfield Seager
Hi All, I have a 10.4 style date formatter applied to an NSTextFieldCell. I call setTwoDigitStartDate: (tried with both the epoch date and the reference date) but when I type a date with a two digit year in it sets the year to 0009 instead of 2009. Am I missing something obvious? Regards, Matt

Re: Weird NSToolbar glitch

2009-09-30 Thread Matthew Lindfield Seager
Hi Bryan, It's not much info to go on... perhaps NSToolbar objects to the Spice Girls or Gloria Estafan? =) What have you tried (.com)? The screenshot makes a lot of the controls look... nonstandard. Perhaps try removing some of your customisations one at a time and see how it affects the

Re: Core Data Calculated Properties

2009-09-29 Thread Matthew Lindfield Seager
John, The info you are after is at: http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/KeyValueObserving/Concepts/DependentKeys.html Specifically, keyPathsForValuesAffectingValueForKey: Regards, Matthew Safe, comfortable and satisfied? Consider supporting some people who

[SOLVED] (again) How to observe every child entity

2009-09-29 Thread Matthew Lindfield Seager
Jim Correia wrote: What you are talking about is not observing child entities. You wish to observe related instances (NSManagedObject or subclass thereof). The entity describes the instance, but is not the instance. You're right and I don't think that's overly pedantic. OTOH I was just trying

Re: Populating NSTokenField

2009-09-29 Thread Matthew Lindfield Seager
http://www.lmgtfy.com/?q=populate+contents+nstokenField http://lists.apple.com/archives/Cocoa-dev/2005/May/msg00551.html 2009/9/30 vince valbin...@gmail.com: Thanks for the assistance ... How can I populate the contents of a tokenField object with multiple tags at application startup? -v.

Re: UIPickerView: How do I LOOP data, as is done in UIDatePicker {looping Jan thru Dec} vs a mere list?

2009-09-24 Thread Matthew Lindfield Seager
Question: How can I change this behavior to allow LOOPING to the beginning of the scroll list? Ric, I just did a quick search for continuous UIPicker and found a page discussing this... http://www.iphonedevsdk.com/forum/iphone-sdk-development/4479-uipickerview-circular.html Most common

[UNSOLVED] How to observe every child entity

2009-09-16 Thread Matthew Lindfield Seager
Someone kindly warned me off-list about taking care when an item is deleted and then re-added by an Undo. It turns out my solution was not complete (nor correct - see below). When a user undoes a deletion it calls the primitive accessor which does not emit KVC/KVO notifications. I get the feeling

[SOLVED] How to observe every child entity

2009-09-15 Thread Matthew Lindfield Seager
The following is what I ended up with and it seems to work. Please feel free to pimp my code though... not only do I still have a LOT to learn but I also really struggle with knowing when to release and retain. I plan to change it to use a context but figuring out the best practice for that can

How to observe every child entity

2009-09-14 Thread Matthew Lindfield Seager
I have a transient calculatedBalance property in my Account entity that is currently implemented as a read-only property returning: [self valueForKeyPath:@transactio...@sum.amount] This appears to work but I'd like observers of this property to be notified every time a transaction is added,

Re: How to observe every child entity

2009-09-14 Thread Matthew Lindfield Seager
2009/9/15 Kyle Sluder kyle.slu...@gmail.com: If the only reason you want this is so that observers of calculatedBalance are notified when transactions changes (and therefore calculatedBalance), implement -keyPathsAffectingCalculatedBalance: to return a set that includes @transactions. That

NSOutlineView with multiple Core Data entities

2009-09-08 Thread Matthew Lindfield Seager
My goal is to have an NSOutlineView (Source List style) that contains group items at it's root with each group item corresponding to a Core Data entity type (which I'll hard code, it doesn't need to automatically adapt to new entity types). I'd then like those group items to contain leaves for