Re: NSArrayController selection issue
Re: NSArrayController selection issue
- Subject: Re: NSArrayController selection issue
- From: Scott Anguish <email@hidden>
- Date: Mon, 22 Aug 2005 14:33:35 -0700
On Aug 22, 2005, at 2:08 AM, zeno wrote:
When executing:
if ([myArrController canSelectNext]) {
NSLog(@"selected row index before: %u", [myArrController
selectionIndex]);
[myArrController selectNext:self];
NSLog(@"selected row index after: %u", [myArrController
selectionIndex]);
}
...on the console I get:
[Session started at 2005-08-22 10:51:49 +0200.]
2005-08-22 10:51:53.865 TestApp[938] selected row index before: 1
2005-08-22 10:51:53.866 TestApp[938] selected row index after: 1
Can anybody explain why "selected row index after" is not 2? (in the
UI the third row of the table (index=2) is actually selected)...
I believe that starting with Mac OS X 10.3 that the action
methods (selectNext: etc) are performed delayed. This is because
errors can be presented as sheets, rather than modal panels.
_______________________________________________
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