• 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
Problem using filewrappers under snow leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem using filewrappers under snow leopard


  • Subject: Problem using filewrappers under snow leopard
  • From: Eagle Offshore <email@hidden>
  • Date: Tue, 06 Oct 2009 17:23:15 -0700

And it is maddening because the error occurs outside my code. My document class implements

- (NSFileWrapper *)fileWrapperOfType:(NSString *)aType error: (NSError**)errPtr

and this gets called fine. It returns a new NSFileWrapper. It has been working perfectly since Tiger (this app targets 10.4).

The return line is

return [[NSFileWrapper alloc] initDirectoryWithFileWrappers:fileWrappers];

where fileWrappers is an NSMutableDictionary of filename->NSData's.

In Snow Leopard, this gets called and executes to completion. However, the writing of the filewrapper to the disk fails and an alert sheet is presented "The document "Untitled" could not be saved as "New Document Name".

I haven't a clue why. No console message. No exception is raised. Nothing. It JUST DOESN'T WORK. Although it works fine under earlier versions of the OS.

How am I supposed to diagnose this?

-Todd Blanchard

_______________________________________________

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: Problem using filewrappers under snow leopard
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: class variables
  • Next by Date: Suggest reasons for this crash?
  • Previous by thread: Re: class variables
  • Next by thread: Re: Problem using filewrappers under snow leopard
  • Index(es):
    • Date
    • Thread