Re: NSArrayController selection issue
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