Model/View abstraction, exposing model binding in a custom view
Model/View abstraction, exposing model binding in a custom view
- Subject: Model/View abstraction, exposing model binding in a custom view
- From: "Sean McBride" <email@hidden>
- Date: Thu, 10 May 2007 13:43:11 -0400
- Organization: Rogue Research
Hi all,
I have a design question... I am working on an application that heavily
relies on Core Data and Cocoa Bindings. I have a custom NSView subclass
(RRFooView) who's goal is pretty much to draw a visual representation of
one of my Core Data models (RRFooModel, an NSMangedObject subclass).
RRFooView exposes many bindings, usually strings, bools, etc. But now I
find myself wanting to expose a binding of type RRFooModel. But that
seems like a really bad model/view abstraction violation. Then again,
it makes a lot of sense since RRFooView basically draws an RRFooModel anyway.
Any thoughts would be most welcome. Thanks!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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