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

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


References: 
 >Problem using filewrappers under snow leopard (From: Eagle Offshore <email@hidden>)
 >Re: Problem using filewrappers under snow leopard (From: Graham Cox <email@hidden>)
 >Re: Problem using filewrappers under snow leopard (From: Eagle Offshore <email@hidden>)
 >Re: Problem using filewrappers under snow leopard (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Problem using filewrappers under snow leopard
  • Next by Date: Re: Problem using filewrappers under snow leopard
  • Previous by thread: Re: Problem using filewrappers under snow leopard
  • Next by thread: Re: Problem using filewrappers under snow leopard
  • Index(es):
    • Date
    • Thread