Re: How to add search filters like those in Finder?

2010-04-26 Thread Quincey Morris
On Apr 26, 2010, at 04:25, Maya Trifonova wrote: > I need to implement add/remove filters for search results like those in > Finder with the "+" and "-" and "save search" buttons (Those that appear > under the spotlite search field when something is typed in it). When the "+" > button is pushed

Re: How to add search filters like those in Finder?

2010-04-26 Thread Kyle Sluder
On Mon, Apr 26, 2010 at 4:25 AM, Maya Trifonova wrote: > My question is.. what kind of cocoa UI element is the whole line (with the > add/remove buttons and popup buttons) and how should I implement showing and > hiding? I couldn't find sample code with similar UI elements. You want NSPredicateEd

Re: question about "read-only" rule for Memory Management

2010-04-26 Thread Kyle Sluder
On Mon, Apr 26, 2010 at 6:57 PM, Philip Mobley wrote: > Question:  is the BELOW method named appropriately? > > - (UIImage *) getImageWithTag:(NSString *)tag; No. The "get" prefix is used for return-via-pointer. For example, -[NSString getCharacters:range]. --Kyle Sluder

Re: Make About window respond to ⌘W in UI-le ss application

2010-04-26 Thread Ron Fleckner
On 27/04/2010, at 8:21 AM, Michael Dippery wrote: I'm building a Cocoa application that runs as an item in the status bar, and I'm using LSUIElement to prevent the app's icon from appearing in the Dock. This application has an About window and an item to activate that window, using the sta

Re: NSApplicationMain question

2010-04-26 Thread Ken Thomases
On Apr 25, 2010, at 10:23 AM, Paul Sanders wrote: > I tested my multiple-monitor support by plugging an external monitor into the > back of my 2009 MacBook. Note that the menu isn't necessary located on the > primary screen Um, actually the menu bar is on the primary display. That's the defin

Re: question about "read-only" rule for Memory Management

2010-04-26 Thread Ken Thomases
On Apr 26, 2010, at 11:39 PM, Kyle Sluder wrote: > On Mon, Apr 26, 2010 at 6:57 PM, Philip Mobley wrote: >> Question: is the BELOW method named appropriately? >> >> - (UIImage *) getImageWithTag:(NSString *)tag; > > No. The "get" prefix is used for return-via-pointer. For example, > -[NSString

Re: NSManagedObject, retain count and dealloc:

2010-04-26 Thread vincent habchi
Le 27 avr. 2010 à 00:18, Kyle Sluder a écrit : > If your object is holding on to some resource which you need it to > release, write a method called -invalidate or -letGoOfImportantThing > or something and call that at a deterministic time. Understood. I'll do that. I must admit I have a tendency

Re: question about "read-only" rule for Memory Management

2010-04-26 Thread Philip Mobley
On Apr 26, 2010, at 10:50 PM, Ken Thomases wrote: >> No. The "get" prefix is used for return-via-pointer. For example, >> -[NSString getCharacters:range]. > > As documented here >

Re: NSApplicationMain question

2010-04-26 Thread Graham Cox
On 27/04/2010, at 12:37 PM, Jens Alfke wrote: > > On Apr 26, 2010, at 7:13 PM, Bill Appleton wrote: > >> are you saying there is a way to set the min, max and value on an >> nsscroller? sorry, not clear on that > > Um, yes; just use the accessors inherited from NSControl. Except that NSContr

Re: iPad Programming Tutorial

2010-04-26 Thread mlist0...@gmail.com
On Apr 25, 2010, at 7:01 PM, ML wrote: > Does anyone know of a resource that helps understand how to NOT use interface > builder for developing applications? Some variant of this question pops up here every now and then. Quoting from a post of my own: "Interface Builder is a fundamental part

<    1   2