Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Challenge 18 in Hillegass Book



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.