• 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: NSArrayController selectNext updating late
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController selectNext updating late


  • Subject: Re: NSArrayController selectNext updating late
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 14 Sep 2005 05:33:14 -0400


On Sep 13, 2005, at 8:21 AM, j o a r wrote:


On 12 sep 2005, at 10.44, Scott Anguish wrote:


In 10.4 the action methods are performed delayed, to allow for sheets to be presented that can provide error feedback.

this is expected behavior.


...and properly documented, I'm sure?

Any method that delays it's execution is an exception to the norm in my opinion, and non-default behaviour needs double-plus-good documentation.


one other comment...

in general it's probably a bad idea to use the target-action methods in any way other than as targets for UI items.

all of them can result in the selection attempting to change, and this can be denied due to validation issues. unlike the other selection, insertion and deletion methods, there is no bool to indicate if it was successful in changing the selection. So you'll not know if it failed, and the app might react strangely from the user's perspective.

    oh, and if you're changing the selection manually, check the bool.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSArrayController selectNext updating late (From: Kane Dijkman <email@hidden>)
 >Re: NSArrayController selectNext updating late (From: Scott Anguish <email@hidden>)
 >Re: NSArrayController selectNext updating late (From: j o a r <email@hidden>)

  • Prev by Date: Re: Silly newbie Q about delegates
  • Next by Date: Re: [ANN] HOM paper available
  • Previous by thread: Re: NSArrayController selectNext updating late
  • Next by thread: Re: NSArrayController selectNext updating late
  • Index(es):
    • Date
    • Thread