Unable to view Drawer
Unable to view Drawer
- Subject: Unable to view Drawer
- From: "Frederick C. Lee" <email@hidden>
- Date: Sun, 3 Apr 2005 18:24:13 -0700
Greetings:
I have a separate NIB for the Drawer with its own DrawerController as the NIB's File Owner (instantiated with its 'Parent Window' parameter passed from the Main Controller). The actual Parent Window is defined and instantiated in the calling MainController.
{Drawer Controller/NIB} <---- {Main Controller/NIB that has its Parent Window}
<via drawer toggle button>
Thus the Drawer Controller's init method looks like this:
- (id)initWithParentWindow:(NSWindow *)inWindow {
[self setParentWindow:inWindow];
[self setTheDrawer:[[NSDrawer alloc] init]];
[[self theDrawer] setParentWindow:[self parentWindow]];
return [self init];
}
The Following is the Toggle routine for the Drawer object (the drawerBoxView is the 'context view'):
- (void)toggleDrawer {
[[self theDrawer] toggle:nil];
[drawerBoxView displayIfNeeded]; <-- display the controller's context view. It doesn't work.
NSLog(@"{toggerDrawer} in DrawerController.");
return;
}
The debugger says that [theDrawer state] is '2', meaning that it's open.
But I don't see the drawer. Only the parent window as displayed from the main controller.
Toggling the Drawer changes its 'state' as expected. But no visual proof. I've tried forcing it with 'displayIfNeeded' call.
But that doesn't do anything that I can see.
Question: How can I make the drawer display as expected?
Regards,
Ric. _______________________________________________
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