Re: Cannot Connect to NSDrawer
Re: Cannot Connect to NSDrawer
- Subject: Re: Cannot Connect to NSDrawer
- From: "Jason Barker" <email@hidden>
- Date: Mon, 22 Oct 2007 21:42:28 -0600
Thanks for your time and your help. That worked!
Jason
On 10/22/07, I. Savant <email@hidden> wrote:
> > You're right about the MyDocument class being able to receive the message
> > from the menu. Apple's documentation shows that the Document is in the
> > responder chain:
>
> Works for me. I did this:
>
> 1 - Delete the DrawerController class.
> 2 - Removed references to above class from the MyDocument class (.m/.h).
> 3 - Commented out the -makeWindowControllers method.
> 4 - Implemented the -testDrawer: action in MyDocument.
> 5 - Left the nib exactly as it is.
>
> Works perfectly. You're having trouble with one or the other (doc or
> controller) swallowing the message without working. I'm not *exactly*
> sure why the document is nil (because when you -addWindowController:
> the controller's document is set automatically ... in theory), but the
> entire window controller thing is utterly unnecessary.
>
> --
> I.S.
>
_______________________________________________
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