Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cannot Connect to NSDrawer



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.