• 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
TableViewSelectionDidChange and Drawer Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TableViewSelectionDidChange and Drawer Problems


  • Subject: TableViewSelectionDidChange and Drawer Problems
  • From: David Dauer <email@hidden>
  • Date: Tue, 03 Feb 2004 17:55:11 +0100

Hello,

I just noticed something strange. This is what i'm doing:

[myTableView reloadData];
[myTableView selectRowIndexes:theSet byExtendingSelection:YES];

This works perfectly and the delegate
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification
also gets called.
In this delegate I call [self myFunction];
MyFunction does this:

int row = [myTableView selectedRow];

if (([array count] > 0) && ( row != -1)) {

if ([defaults boolForKey:@"drawer"] == YES) {
if (([drawer state] == NSDrawerClosedState) || ([drawer state]
== NSDrawerClosingState)) {
[drawer open:nil];
NSLog(@"should.have.opened");
}
}

}


But nothing happens except for when I change the table selection using the
mouse.

Why that? How can I solve that?
Thanks!
David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: TableViewSelectionDidChange and Drawer Problems
      • From: David Dauer <email@hidden>
  • Prev by Date: CFHTTPMessage authenticacion
  • Next by Date: Re: Cocoa/Windows parallel dvlpmt
  • Previous by thread: CFHTTPMessage authenticacion
  • Next by thread: Re: TableViewSelectionDidChange and Drawer Problems
  • Index(es):
    • Date
    • Thread