Re: -[NSDocument fileWrapperOfType:error:]
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