Re: How does an NSTextField know that it's value has changed?
Re: How does an NSTextField know that it's value has changed?
- Subject: Re: How does an NSTextField know that it's value has changed?
- From: Kyle Sluder <email@hidden>
- Date: Tue, 13 Apr 2010 13:59:24 -0700
On Tue, Apr 13, 2010 at 1:43 PM, Brian Postow <email@hidden> wrote:
> I have a textfield that can either be edited by hand, or set through another control. (It's a page number, so you can jump to page 16 by typing in 16, or you can page up and down with the next/prev buttons) I have the value of the text field bound to an int page variable.
You shouldn't use one control to change the value of another control.
Instead, both controls should change some property in your controller
layer, which in turn informs all the controls to update themselves
from the controller. Bindings simplifies this workflow.
--Kyle Sluder
_______________________________________________
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