• 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: Charles Steinman <email@hidden>
  • Date: Wed, 17 Oct 2007 02:12:02 -0700 (PDT)

--- Bob Ueland <email@hidden> wrote:

> 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?

When the Save menu item is chosen, it sends its action
(saveDocument:) down the responder chain, eventually
finding your document as the first responder.
NSDocument knows how to save itself, and its method
for doing this calls on dataRepresentationOfType: to
get the data it needs to write.

Cheers,
Chuck

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________

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: Re: inappropriate tool palette activation problem
  • Next by Date: CoreData and NSDate searches on date fields
  • Previous by thread: What triggs dataRepresentationOfType?
  • Next by thread: Re: What triggs dataRepresentationOfType?
  • Index(es):
    • Date
    • Thread