Re: Problem using filewrappers under snow leopard
Re: Problem using filewrappers under snow leopard
- Subject: Re: Problem using filewrappers under snow leopard
- From: Rob Keniger <email@hidden>
- Date: Wed, 14 Oct 2009 15:05:42 +1000
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@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