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

NSArrayController selection issue


  • Subject: NSArrayController selection issue
  • From: zeno <email@hidden>
  • Date: Mon, 22 Aug 2005 11:08:24 +0200

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)...
 _______________________________________________
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

  • Follow-Ups:
    • Re: NSArrayController selection issue
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Finding count of a character in a string
  • Next by Date: Does anyone have working sample code?
  • Previous by thread: Re: Finding count of a character in a string
  • Next by thread: Re: NSArrayController selection issue
  • Index(es):
    • Date
    • Thread