• 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
Re: What triggs dataRepresentationOfType?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What triggs dataRepresentationOfType?


  • Subject: Re: What triggs dataRepresentationOfType?
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 17 Oct 2007 07:08:35 -0400

- (NSData *)dataRepresentationOfType:(NSString *)aType

My question is what triggers the method dataRepresentationOfType and how it's done. Is it the Runtime system that automatically sends dataRepresentationOfType to the current NSDocument when the user chooses Save or is something else happenning?

Any time you want to know the answer to questions like this your first stop should be the documentation. The documentation, for example, specifically says of this method:


"This method is invoked by the default implementation of fileWrapperRepresentationOfType:."

You can also look at the "companion guide" section of the doc that contains the method you're interested in (the very top of the NSDocument doc, in this case). It typically refers you to one or more documents covering the topic in general. In this case, "Document-Based Applications Overview" which in turn contains a section titled "Message Flow in the Document Architecture" that explains in great detail exactly what you're asking.

It's vitally important to master searching the documentation. It all started with searching for the method you mentioned. I had to do that just now because I don't remember where everything is and what it's called, but in five seconds, I had detailed answers to your question.

  It sure beats waiting for an answer from the list. :-)

--
I.S.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >What triggs dataRepresentationOfType? (From: Bob Ueland <email@hidden>)

  • Prev by Date: CoreData and NSDate searches on date fields
  • Next by Date: Re: Kludges when binding to 'value' of Menu Items
  • Previous by thread: Re: What triggs dataRepresentationOfType?
  • Next by thread: Re: What triggs dataRepresentationOfType?
  • Index(es):
    • Date
    • Thread