Newbie - dataRepresentationOfType questions
Newbie - dataRepresentationOfType questions
- Subject: Newbie - dataRepresentationOfType questions
- From: Tom Gray <email@hidden>
- Date: Thu, 18 Sep 2003 10:22:33 -0400
Hello,
Apparently I don't understand the file system very well. What is the
relationship of docType in:
- (NSData *)dataRepresentationOfType:(NSString *)aType
and the Mac file type? Where does the docType come from? I had thought
it was the CFBundleTypeName in my info.plist (or alternatively set in
the Targets Pane under Document information.) Apparently I am wrong.
I want to change the CFBundleTypeName that my documents are saved
under. I changed the CFBundleTypeName in the Targets Pane Document
information, but, dataRepresentationOfType is still being called with
the original docType. No where in my application (that I can find) is
the original doctType!
This docType is NOT the Mac OS file type. In my case I have a docType
of "MacBid Pro Text Editor" and a file type of TEXT. I am trying to
change the docType to "Crewdog Terminal Text Editor", but, apparently I
don't know how.
What exactly does the system use this docType for? I was under the
impression that the extension or Mac OS file type determined the type
of a file.
Stuck (again)
Tom Gray
email@hidden
_______________________________________________
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.