Re: opening file without an extension
Re: opening file without an extension
- Subject: Re: opening file without an extension
- From: Sean McBride <email@hidden>
- Date: Wed, 04 Jul 2012 16:08:20 -0400
- Organization: Rogue Research Inc.
On Wed, 4 Jul 2012 14:54:54 -0500, Charles Srstka said:
>> Umm, why not just use the documented technique?
>
>Because that’s exactly what this is?
>
>http://developer.apple.com/library/mac/#documentation/general/Reference/
>InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/
>uid/20001431-101705
>
>> setAllowedFileTypes: "A nil value indicates that all files should be
>enabled.”
>
>Maybe because he’s using Cocoa’s built-in document support instead of
>manipulating the NSOpenPanel directly?
Ah, I missed the NSDocument bit, though the OP did ask: "Is there a way to let Powerbox (??) let the user select any file?"
CFBundleTypeExtensions is deprecated though. Probably using kUTTypeData aka public.data is more appropriate.
--
____________________________________________________________
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