• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: detect NSPopUpButton changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: detect NSPopUpButton changes (From: Angelo Chen <email@hidden>)

  • Prev by Date: NSToolbar setup in conjunction with IB
  • Next by Date: Re: an oldie but a goodie: observing properties of collected objects
  • Previous by thread: Re: detect NSPopUpButton changes
  • Next by thread: can we have own application logo for ad-hoc release.
  • Index(es):
    • Date
    • Thread