Re: NSOpenPanel listing .app's and Mac OS X executables

2009-05-15 Thread Corbin Dunn
Since the open panel is based on extensions, and most unix executables don't have extensions, you will have to use the save panel delegate method to determine if a file should be displayed or not (see the header). Or, alternatively, require Leopard for your app. corbin On May 15, 2009, at

Re: NSOpenPanel listing .app's and Mac OS X executables

2009-05-15 Thread Arun
ok.. what is the option in Tiger? any suggestions? -Arun On Fri, May 15, 2009 at 9:04 PM, Corbin Dunn wrote: > > On May 15, 2009, at 4:52 AM, Arun wrote: > > Hi.. >> >> If i use type: [NSArray arrayWithObjects:@"public.executable",@"app",nil], >> i am able to select unix-executables and .app's

Re: NSOpenPanel listing .app's and Mac OS X executables

2009-05-15 Thread Corbin Dunn
On May 15, 2009, at 4:52 AM, Arun wrote: Hi.. If i use type: [NSArray arrayWithObjects:@"public.executable",@"app",nil], i am able to select unix-executables and .app's in Leopard. But if i try the same thing in tiger, it is not allowing me to select unix-executable files. Is there any

Re: NSOpenPanel listing .app's and Mac OS X executables

2009-05-15 Thread Arun
Hi.. If i use type: [NSArray arrayWithObjects:@"public.executable",@"app",nil], i am able to select unix-executables and .app's in Leopard. But if i try the same thing in tiger, it is not allowing me to select unix-executable files. Is there any special option that i need to pass ? Thanks Arun KA

Re: NSOpenPanel listing .app's and Mac OS X executables

2009-04-23 Thread Corbin Dunn
On Apr 23, 2009, at 12:40 AM, Arun wrote: I have used [NSArray arrayWithObjects:@"public.executable",@"app",nil] . This will allow me to choose only executables and applications (.app's). But If i create an executable from command line using gcc - a.out, it is not allowing me to select the

Re: NSOpenPanel listing .app's and Mac OS X executables

2009-04-23 Thread Jean-Daniel Dupas
Write your own filter: use the NSOpenPanel delegate method: - (BOOL)panel:(id)sender shouldShowFilename:(NSString *)filename Le 23 avr. 09 à 09:40, Arun a écrit : I have used [NSArray arrayWithObjects:@"public.executable",@"app",nil] . This will allow me to choose only executables and

Re: NSOpenPanel listing .app's and Mac OS X executables

2009-04-23 Thread Arun
I have used [NSArray arrayWithObjects:@"public.executable",@"app",nil] . This will allow me to choose only executables and applications(.app's). But If i create an executable from command line using gcc - a.out, it is not allowing me to select the a.out file. Do i need to add @"out" to the array or

Re: NSOpenPanel listing .app's and Mac OS X executables

2009-04-22 Thread Kyle Sluder
On Wed, Apr 22, 2009 at 5:59 PM, Dave Keck wrote: > - (void)setAllowedFileTypes:(NSArray *)types Note that on Leopard this method takes an array of UTIs, so you might want to take a look at the list of System-Declared UTIs at http://developer.apple.com/DOCUMENTATION/Carbon/Conceptual/understandin

Re: NSOpenPanel listing .app's and Mac OS X executables

2009-04-22 Thread Dave Keck
- (void)setAllowedFileTypes:(NSArray *)types ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Upda

NSOpenPanel listing .app's and Mac OS X executables

2009-04-22 Thread Arun
Hi, Is there any way when a NSOpenPanel is launched, only .app's and Mac OS X executables are allowed to select and gray out all the other file types? Thanks Arun ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests