• 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 - dataRepresentationOfType questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Cannot get the content of a file (in iPhoto Library)
  • Next by Date: Re: Making bezier paths out of text
  • Previous by thread: Cannot read file content (sorry!)
  • Next by thread: Re: Newbie - dataRepresentationOfType questions
  • Index(es):
    • Date
    • Thread