What triggs dataRepresentationOfType?
What triggs dataRepresentationOfType?
- Subject: What triggs dataRepresentationOfType?
- From: Bob Ueland <email@hidden>
- Date: Wed, 17 Oct 2007 00:37:29 -0700 (PDT)
In Aaron's book on page 157 it says:
The menu items Save, Save As..., Save All, and Close are all different, but all deal with the same
problem: getting the model into a file or file wrapper... To handle these menu items, your NSDocument subclass must implement ...
- (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?
Bob
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC
_______________________________________________
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