Re: Problem using filewrappers under snow leopard
Re: Problem using filewrappers under snow leopard
- Subject: Re: Problem using filewrappers under snow leopard
- From: Eagle Offshore <email@hidden>
- Date: Tue, 13 Oct 2009 21:44:20 -0700
K, I've reduced the method to
- (NSFileWrapper *)fileWrapperOfType:(NSString *)aType error:
(NSError**)errPtr
{
NSFileWrapper* wrapper = [[NSFileWrapper alloc]
initDirectoryWithFileWrappers:nil];
return [wrapper autorelease];
}
and it still produces the same error with no explanation.
I've paid for a support incident - so far I don't feel like I'm
getting anything for my money. The guy doesn't answer his phone or
call/email me back.
-Todd Blanchard
On Oct 7, 2009, at 5:56 PM, Graham Cox wrote:
My app also writes a file wrapper for its files which is really a
directory (package file). It works fine on 10.5 on 10.6, so I had a
look to see how mine differs from yours. I do this, pared down to
its essentials:
NSFileWrapper* fw = [[NSFileWrapper alloc]
initDirectoryWithFileWrappers:nil];
[fw addRegularFileWithContents:primaryContent
preferredFilename:@"file1.pri"];
[fw addRegularFileWithContents:secondaryContent
preferredFilename:@"file2.sec"];
[fw addRegularFileWithContents:tertiaryContent
preferredFilename:@"file3.ter"];
return [fw autorelease];
In other words I let -addRegularFileWithContents:preferredFilename:
do all the work rather than assembling it by hand. You could try
revising your code and see if that helps - you'll have to revise it
substantially anyway to fix all the leaks.
_______________________________________________
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