• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Model/View abstraction, exposing model binding in a custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Uploaded PMProgressIndicator
  • Next by Date: Cocoa bootstrap
  • Previous by thread: Uploaded PMProgressIndicator
  • Next by thread: Cocoa bootstrap
  • Index(es):
    • Date
    • Thread