• 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
-[NSDocument fileWrapperOfType:error:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[NSDocument fileWrapperOfType:error:]


  • Subject: -[NSDocument fileWrapperOfType:error:]
  • From: Hamish Allan <email@hidden>
  • Date: Sun, 12 Jun 2005 19:20:29 +0100

Hi,

I'm trying to save an NSDocument as a bundle, but seem to be falling at the first hurdle. I'm overriding fileWrapperOfType:error: with a stub as follows:

- (NSFileWrapper *)fileWrapperOfType:(NSString *)typeName error: (NSError **)outError
{
NSFileWrapper *result = [super fileWrapperOfType:typeName error:outError];
NSLog(@"fileWrapperOfType:%@ = %@", typeName, result);
return result;
}


but when I try to save my document I get only the following at the console prompt:

2005-06-12 19:05:11.387 AubioTag[15686] dataOfType:error: is a subclass responsibility but has not been overridden.

It would seem that NSDocument wants to save a single file, but I don't know why as I have set the appropriate LSTypeIsPackage key to true in my app's Info.plist.

What am I missing?

Thanks,
Hamish

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: -[NSDocument fileWrapperOfType:error:]
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: Stopwatch
  • Next by Date: Re: Zerolink and undefined symbol _main
  • Previous by thread: Re: Stopwatch
  • Next by thread: Re: -[NSDocument fileWrapperOfType:error:]
  • Index(es):
    • Date
    • Thread