Re: Challenge 18 in Hillegass Book
Re: Challenge 18 in Hillegass Book
- Subject: Re: Challenge 18 in Hillegass Book
- From: Erik Buck <email@hidden>
- Date: Sun, 10 Aug 2008 20:58:43 -0400
But the question I think is still valid and one I'm I'm trying to
figure out myself. How, for instance, would you have the view request
data from the document (or any other object for that matter). I
understand that it may not always be the best design choices but how
is it done? Posting notifications is about the only way I can think of
and perhaps sending self as the context info.
Ashley Perrien
How would you have a view request data from the documet ?
- You could use a Data Source like NSTableView and let the document
instance be the Data Source (connected via File's Owner).
- You could use NSViewController instances like NSCollectionView and
give each NSViewController a pointer to a document.
- You could send a message up the responder chain on the usually valid
assumption that the right document instance will be in the responder
chain.
_______________________________________________
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