• 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 selection issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController selection issue


  • Subject: Re: NSArrayController selection issue
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 22 Aug 2005 17:04:25 -0700


On Aug 22, 2005, at 4:00 PM, zeno wrote:


I believe that starting with Mac OS X 10.3 that the action
methods (selectNext: etc) are performed delayed.



Ok, and is there a simple workaround to "wait" for the object to be actually selected without having to deal with ordinary "pre-bindings" nstableview stuff (like incrementing the selection index directly in the tableview with selectRowIndexes:byExtendingSelection: or, worse, implementing the tableViewSelectionDidChange delegate method)?



You can explicitly set the selection by index using setSelectionIndex:, so yeah, that is a workaround.


but, be aware that you may encounter failure in trying to go to the next item like this (the selection methods return a bool, because the change can be denied by a validation failure)

target/actions like that are typically wired to buttons where there is no need for immediacy.




_______________________________________________ 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 selection issue (From: zeno <email@hidden>)
 >Re: NSArrayController selection issue (From: Scott Anguish <email@hidden>)
 >Re: NSArrayController selection issue (From: zeno <email@hidden>)

  • Prev by Date: Re: NSTableView not letting me double-click rows always?
  • Next by Date: Re: Float behaviour
  • Previous by thread: Re: NSArrayController selection issue
  • Next by thread: Does anyone have working sample code?
  • Index(es):
    • Date
    • Thread