Re: detect NSPopUpButton changes
Re: detect NSPopUpButton changes
- Subject: Re: detect NSPopUpButton changes
- From: Graham Cox <email@hidden>
- Date: Tue, 22 Jun 2010 21:27:46 +1000
On 22/06/2010, at 4:05 PM, Angelo Chen wrote:
> however, since that even will be called every time when the drop down is selected, is there a way to check if selected item really change? thanks
Ummm, just compare it with what you have set already?
It's not the job of the control to store state data about your business logic, that's the job of your data model. Either the data model or the controller that mediates between the control and the data model should, when appropriate, discard changes that are not really changes.
--Graham
_______________________________________________
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