• 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
Newbie - File Type Not Saved Correctly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Installing Plugins on Build
  • Next by Date: Re: Installing Plugins on Build
  • Previous by thread: Re: Installing Plugins on Build
  • Next by thread: Problem with [NSStatusItem setTitle:]
  • Index(es):
    • Date
    • Thread