Re: NSOpenPanel listing .app's and Mac OS X executables
Re: NSOpenPanel listing .app's and Mac OS X executables
- Subject: Re: NSOpenPanel listing .app's and Mac OS X executables
- From: Arun <email@hidden>
- Date: Fri, 15 May 2009 17:22:41 +0530
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
On Thu, Apr 23, 2009 at 8:49 PM, Corbin Dunn <email@hidden> wrote:
>
> 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 a.out file.
>> Do i need to add @"out" to the array or is there any correct identifier
>> that
>> i need to use?
>>
>
> The reason this doesn't work is because there is no UTI associated with the
> file. You can do an "mdls" to see the spotlight attributes, including the
> UTI. You have to use -panel:shouldShowFilename: if you want to be more
> selective on files.
>
> corbin
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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/Update your Subscription:
This email sent to email@hidden