• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: opening file without an extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >opening file without an extension (From: Todd Heberlein <email@hidden>)
 >Re: opening file without an extension (From: Charles Srstka <email@hidden>)
 >Re: opening file without an extension (From: Todd Heberlein <email@hidden>)
 >Re: opening file without an extension (From: Sean McBride <email@hidden>)
 >Re: opening file without an extension (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: opening file without an extension
  • Next by Date: Re: opening file without an extension
  • Previous by thread: Re: opening file without an extension
  • Next by thread: customize NSOutlineView right-click context menu row selection
  • Index(es):
    • Date
    • Thread