• 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: Core Data and Document Packages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data and Document Packages


  • Subject: Re: Core Data and Document Packages
  • From: Uli Kusterer <email@hidden>
  • Date: Wed, 11 Jul 2007 15:16:31 +0200

On 11.07.2007, at 14:01, Tim Perrett wrote:
Also (and this might be a bit of a silly question) but the finder still sees that bundle as a directory which the user can explore - how would one set it up so the user can not freely browse it?

Specify an entry in your Info.plist for the file suffix you're using for the bundle. Make sure to set the "isPackage" flag there. Then it'll show up as a file instead of a folder. You can also set the bundle bit using Carbon file manager calls. That should take care of showing it as a file even if your app isn't installed.


There might be a Cocoa way of doing the latter by specifying the appropriate fileAttributes, but I'm not sure whether that's code from my library or whether it's available in unmodified Cocoa these days... sorry, don't have the code here.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

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


  • Follow-Ups:
    • Re: Core Data and Document Packages
      • From: Tim Perrett <email@hidden>
References: 
 >Re: Core Data and Document Packages (From: sergio <email@hidden>)
 >Re: Core Data and Document Packages (From: Seth Willits <email@hidden>)
 >Re: Core Data and Document Packages (From: Tim Perrett <email@hidden>)

  • Prev by Date: Linker flags set incorrectly ?
  • Next by Date: Re: Problem using map template in Cocoa
  • Previous by thread: Re: Core Data and Document Packages
  • Next by thread: Re: Core Data and Document Packages
  • Index(es):
    • Date
    • Thread