Cannot Connect to NSDrawer
Cannot Connect to NSDrawer
- Subject: Cannot Connect to NSDrawer
- From: "Jason Barker" <email@hidden>
- Date: Mon, 22 Oct 2007 09:26:27 -0600
I have created a document project in Xcode with a MyDocument class. I
added an outlet to a NSDrawer instance and connected the outlet to the
drawer in Interface Builder. I added a menu item to my MainMenu.nib
(Test > Test Drawer) that sends a message to the first responder. It
is picked up by DrawerController (NSWindowController) which sends a
message to the NSDrawer instance to toggle itself. But the only thing
is that the outlet to the drawer is not set. So I added a button to
the MyDocument nib and connected it to the toggle action of the
drawer. Clicking the button works. Using the menu item does not.
A copy of my test project is available at:
http://www.neuromight.com/cocoa/DrawerTest.zip
Could someone tell me why it's not working the way I want and what I
should do to fix it?
Thank you,
Jason
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden