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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to