Re: NSOpenPanel setDirectory to a package

2008-06-19 Thread Dale Jensen
On Jun 18, 2008, at 5:44 PM, Ken Thomases wrote: On Jun 18, 2008, at 5:18 PM, Dale Jensen wrote: I have an "application picker" bit in my preferences, which allows the user to select an app to do something. 90% of the time, I presume, this will be a package, not a single file. My code is

Re: NSOpenPanel setDirectory to a package

2008-06-18 Thread Ken Thomases
On Jun 18, 2008, at 5:18 PM, Dale Jensen wrote: I have an "application picker" bit in my preferences, which allows the user to select an app to do something. 90% of the time, I presume, this will be a package, not a single file. My code is thus: [oPanel setTreatsFilePackagesAsDirectories:

NSOpenPanel setDirectory to a package

2008-06-18 Thread Dale Jensen
I have an "application picker" bit in my preferences, which allows the user to select an app to do something. 90% of the time, I presume, this will be a package, not a single file. My code is thus: [oPanel setTreatsFilePackagesAsDirectories: NO]; NSString *filePath = @"/Applications/Preview