Re: Bindings: is there a better way to observe when an object changes?
Re: Bindings: is there a better way to observe when an object changes?
- Subject: Re: Bindings: is there a better way to observe when an object changes?
- From: Simone Tellini <email@hidden>
- Date: Mon, 10 Sep 2007 21:02:06 +0200
Il giorno 10/set/07, alle ore 20:24, mmalc crawford ha scritto:
are you finding any other problems with this approach?
no, it works fine. I just don't think that it's very elegant ;-)
Anyway, I think that I'm doing the only possible thing at the
moment, so I'll stop wasting my time on it.
I wouldn't say you're "doing the *only* possible thing at the
moment" -- per Shawn's and my earlier replies, it may be that you
can "future-proof" your implementation by defining dependent
properties for attributes affecting drawing.
err... unless I've misunderstood you, what you were suggesting is
exactly what I'm doing.
As I said, all of the attributes of the entity affect drawing
(everyone of them flags a bit of graphic content that needs to be
rendered) and my "hasChanged" property encapsulates them. The
dependancies are set in +initialize in the entity object, so the view
doesn't need to know much about it, except how to render it.
--
Simone Tellini
http://tellini.info
_______________________________________________
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