TableViewSelectionDidChange and Drawer Problems
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.