Re: Core Data and Document Packages
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