Re: What triggs dataRepresentationOfType?
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