Newbie - File Type Not Saved Correctly
Newbie - File Type Not Saved Correctly
- Subject: Newbie - File Type Not Saved Correctly
- From: Tom Gray <email@hidden>
- Date: Wed, 17 Sep 2003 21:48:08 -0400
Thanks in Advance!
I have changed the CFBundleTypeName that my application uses when
saving files. (I changed from @"my text document" to "@his text
document")
I changed the CFBundleTypeName in the Info.plist Entries of the Targets
pane (I do not have a CFBundleTypeName in my info.plist file). During
the "save" operation I log the CFBundleTypeName (aType below):
- (NSData *)dataRepresentationOfType:(NSString *)aType
{
NSLog(@"aType is: %@", aType);
if([aType isEqualToString:CDTTextEditorFileType])
...
And the log is correct.
However, when the Finder shows the previous CFBundleTypeName in the Get
Info window and in addition when I attempt to open the file it is not
available in the Open dialog as it would not be with the previous
CFBundleTypeName.
Obviously I have a reference to the previous CFBundleTypeName
somewhere. It is not in the NSDocument subclass, the info.plist or the
settings under the Target pane.
I feel like an idiot.
Tom
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.