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