NSDrawer newbie question
NSDrawer newbie question
- Subject: NSDrawer newbie question
- From: Mike Dean <email@hidden>
- Date: Mon, 09 Sep 2002 08:37:25 -0600
I have an NSDrawer containing a TableView that correctly responds to 2 buttons
in the drawer (Cancel changes, Accept changes). The drawer is opened when I
activate a button on the parent window, and closes when I use that same button
in the parent window. From a user standpoint, however, it is apparent that I
really want the drawer to close when I press either of the buttons that are IN
the drawer itself.
The accept button calls a controller method called AcceptChanges:(id)sender
which makes the changes in my program variables, and then attempts
[variablesDrawer close]:
-(void) AcceptChanges:(id)sender
...
setvars etc.
NSLog(@"Have changed the values");
[variablesDrawer close];
NSLog(@"Drawer should have closed");
...
but of course, while both messages appear in the console, the drawer remains
open until I use the button in theparent window. There is no error in the
console.
Any help will be appreciated. I am sorry I am not at the right computer, so I
have had to reconstruct the code above from memory instead of being more
precise.
_______________________________________________
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.