Re: NSOpenPanel & NSFileTypeForHFSTypeCode
Re: NSOpenPanel & NSFileTypeForHFSTypeCode
- Subject: Re: NSOpenPanel & NSFileTypeForHFSTypeCode
- From: "Sean McBride" <email@hidden>
- Date: Wed, 10 Oct 2007 17:47:49 -0400
- Organization: Rogue Research
On 10/10/07 5:18 PM, Chris Heimark said:
>>> You probably don't want to go down this route.
>>>
>>>> And is it possible to use setFileTypes to only allow the
>>>> selection of a volume?
>>>
>Is the implication of this statement that there are NO fileType
>symbols that would narrow the scope of the selectable files? I
>presume answer is YES.
It's too bad that NSOpenPanel (unlike Nav Serv) can't filter by UTI.
Then you could use kUTTypeVolume aka "public.volume". You might try
calling UTTypeCopyDeclaration(kUTTypeVolume) and seeing if there is any
equivalent HFS type.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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