Re: Bindings & Reverting Properties
Re: Bindings & Reverting Properties
- Subject: Re: Bindings & Reverting Properties
- From: Quincey Morris <email@hidden>
- Date: Sat, 22 Aug 2009 17:58:44 -0700
On Aug 22, 2009, at 01:21, Dave Keck wrote:
Aye aye. Here's a simple project that uses that setter:
http://themha.com/happy.zip
When clicking the checkbox in the window, it stays checked. Regardless
of what you do to the happy ivar within the setter, the checkbox
assumes the intuitive value that results from the click, not whatever
happy is actually set to.
... and that's my problem.
You're right, it doesn't work, but the problem isn't with the setter.
I wish I could tell you what the problem is, but I don't know. It's
likely something forehead-slappingly trivial, but I couldn't spot it.
One thing that's "wrong" with your sample project, from my point of
view, is that I don't believe in putting controllers in NIB files.
You'd be better off moving the window to a separate NIB file and
making your controller be a subclass of NSWindowController (and be
File's Owner).
_______________________________________________
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