Re: NSPredicate to exclude specific elements??

2010-03-21 Thread Jon Pugh
At 7:54 AM -0700 3/21/10, Robert Monaghan wrote: >Lets say I have a pile of NSString Paths in an array, where some of them have >the word "GREEN" in the file name. >I've been trying to build an NSPredicate which would exclude elements that >contain the name.. > >Every attempt that I have done giv

Re: Details and the concepts related to the Nib Window

2010-03-22 Thread Jon Pugh
> > Whenever we drag an object from the Interface builder to our Nib window >> (like we do for a controller object), it means that we are instantiating the >> object of a class or interface. But where actually can i see it being >> instantiated. > >What do you mean by "see"? I presume he means via

Re: code folding in NSTextView

2010-03-24 Thread Jon Pugh
At 5:46 PM +0100 3/24/10, Martin Hewitson wrote: >I guess this is an old chestnut, but a google search didn't reveal any good >clues as how one might go about doing code folding in an NSTextView subclass. I would consider trying to use an NSOutlineView instead. You'd have to identify lines whic

Re: Trouble forking my project

2010-03-24 Thread Jon Pugh
At 4:48 PM -0700 3/24/10, Dave Carrigan wrote: >Actually, a subversion branch is exactly what you want. Not to start the inevitable version control flamewar, but Subversion's branching is weak in comparison to other systems, except cvs of course. Perforce has strong branching and merging also.

Re: [Xcode 3.1.4] "Step Into" broken on Leopard

2010-03-25 Thread Jon Pugh
At 12:02 AM -0700 3/25/10, Brian Willoughby wrote: >>Switch to an Intel Mac, or revert to an older version of Xcode. This was >>unfortunately broken in the last release of Xcode for Leopard, but only on >>PPC Macs, and I wouldn't hold your breath waiting for a fix. > > >Thanks. That's the kind o

Re: How do I get a file reference w/o relying on the path?

2010-04-06 Thread Jon Pugh
At 9:54 AM +0200 4/6/10, Jean-Daniel Dupas wrote: >Le 4 avr. 2010 à 19:50, Jens Alfke a écrit : > >> You're saying that if I have a FSRef to a file, then the file is moved, the >> FSRef will still reference the moved file and not the location where it used >> to be? >> >> That's surprising to me,

Re: How do I get a file reference w/o relying on the path?

2010-04-06 Thread Jon Pugh
At 8:43 AM -0700 4/6/10, Jon Pugh wrote: >I had to change to explicitly saving an AliasRecord in an NSData to keep track >of a file properly. I should probably clean up and share my code too. This uses an alias relative to your home folder. The alias is stored in NSUserDefaults und

Re: Interface Builder input panel fields not updated when OK button clicked

2010-04-08 Thread Jon Pugh
At 3:02 PM +1000 4/9/10, Ben Golding wrote: >I can't seem to find a way of ending editing on all the fields when the button >is pressed? Is there a way to do this? NSWindow endEditingFor: Forces the field editor to give up its first responder status and prepares it for its next assignment. -

Re: Custom View in Toolbar

2010-03-08 Thread Jon Pugh
At 9:56 AM -0700 3/8/10, David Blanton wrote: >So I ask again, how does one display a custom view containing controls in a >toolbar? Typically, all views are told to draw themselves via - [view setNeedsDisplay: YES] Jon ___ Cocoa-dev mailing list (Co

Re: Weird Bug Report on 10.5

2010-03-08 Thread Jon Pugh
At 9:17 AM -0800 3/8/10, Brent Smith wrote: >The thing is, im on 10.6, not 10.5. Is my only option to get a dev machine >with 10.5 on it? According to the Internet, some people have had success running 10.5 under VMWare on 10.6. For example: