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

Re: -[NSDocument fileWrapperOfType:error:]


  • Subject: Re: -[NSDocument fileWrapperOfType:error:]
  • From: Sherm Pendley <email@hidden>
  • Date: Sun, 12 Jun 2005 18:11:12 -0400

On Jun 12, 2005, at 2:20 PM, Hamish Allan wrote:

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];

...

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

Don't call super. You want to *replace* NSDocument's standard behavior, not add to it.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
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


References: 
 >-[NSDocument fileWrapperOfType:error:] (From: Hamish Allan <email@hidden>)

  • Prev by Date: Re: Stopwatch
  • Next by Date: Re: how to make an NSWindow unmovable...
  • Previous by thread: -[NSDocument fileWrapperOfType:error:]
  • Next by thread: NSTreeController and NSPopupButton(Cell)
  • Index(es):
    • Date
    • Thread