• 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
How can file packages become unpackaged?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can file packages become unpackaged?


  • Subject: How can file packages become unpackaged?
  • From: Graham Cox <email@hidden>
  • Date: Tue, 1 Sep 2009 13:29:07 +1000

Here's a strange one.

In my app I have a bunch of templates which are packaged documents loaded directly from my app's resources. On my system and the vast majority out there, they work fine. But a couple of users have reported that they don't see them.

I've tracked down the issue to the check for a file package. On these few systems, - (BOOL)isFilePackageAtPath:(NSString *)fullPath is returning NO, so the package gets treated as a folder and has its contents scanned (by NSDirectoryEnumerator) instead of being added to the list of templates. Similarly, the Finder shows the package as a folder not a file, so somewhere the package flag is getting blitzed.

Anyone got any idea how that can happen? The app is downloaded as a zip file, unzipped and is simply drag-installed to /Applications (or wherever). Does the package flag rely on the unzipper utility knowing how to deal with it correctly? Maybe these few people used a different unzip utility... </grasping at straws> Can permissions have a bearing on this? The containing resources folder is read/write for the owner, read for 'everyone' and has no group permissions set at all (7-0-5). Then again, it works for the vast majority, so it can't really be that.

--Graham
_______________________________________________

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


  • Prev by Date: Re: Two controllers in a window, how do I get one to run a function in another?
  • Next by Date: [MEET] September CocoaHeads Mac Developer Meetings
  • Previous by thread: Re: saving files/folders in foreign language names
  • Next by thread: [MEET] September CocoaHeads Mac Developer Meetings
  • Index(es):
    • Date
    • Thread