• 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 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
  • Follow-Ups:
    • Re: NSArrayController selection issue
      • From: zeno <email@hidden>
References: 
 >NSArrayController selection issue (From: zeno <email@hidden>)

  • Prev by Date: URL Loading Question
  • Next by Date: Re: open docs at quit time
  • Previous by thread: NSArrayController selection issue
  • Next by thread: Re: NSArrayController selection issue
  • Index(es):
    • Date
    • Thread