Re: Forcing the package bit

2010-03-01 Thread Neil Allain
On Mar 1, 2010, at 7:14 PM, Graham Cox wrote: > I need to write a package file that is not listed as one of my document > types. How do I ensure that this will be seen as a package in the Finder? It > looks to me as though some new flags were added to NSURL to cover this but > the code needs t

Re: Preventing system sleep

2010-02-16 Thread Neil Allain
On Feb 16, 2010, at 2:57 PM, Laurent Daudelin wrote: > I'm working on a an app that at some point might start transferring a large > file to a USB device. Apparently, if the system is set to go to sleep, the > transfer will fail. > > I was thinking of using the NSWorkspace extendPowerOffBy: bu

creating an NSSearchField subclass like Safari

2010-02-05 Thread Neil Allain
I'm looking to create an NSSearchField that behaves like the one in safari. Primarily I want the following: - search menu includes search matches (Suggestions) as well as recent searches - search menu opens when the user enters text that has possible matches (rather than just when the button is

Re: NSNumberFormatter setFormat: in 10.3.9

2009-01-23 Thread Neil Allain
I believe that in 10.5, the default formatter behavior is 10.4 instead of 10.0 (in 10.4 the default behavior was still 10.0). Check out: http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/DataFormatting/DataFormatting.html Neil On Jan 23, 2009, at 12:30 PM, Jonathan Fewtrell wrote: M