On 14/10/2009, at 2:45 PM, Eagle Offshore wrote:

> See other message - it makes zero difference.


I had a problem saving file wrappers in 10.6 where an empty folder file wrapper 
would not save correctly. I still don't know why not.

I was able to diagnose it by making use of the new method in 10.6:

- (BOOL)writeToFile:(NSURL *)url options:(NSFileWrapperWritingOptions)options 
originalContentsURL:(NSURL*)originalContentsURL error:(NSError **)outError

The NSError that you get back from this method actually tells you what's going 
on. Using the 10.5 SDK there is no way to get the error.

It's probably worth compiling against the 10.6 SDK and using this method to 
diagnose the actual error.

--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to