Re: Doc-Based App
Re: Doc-Based App
- Subject: Re: Doc-Based App
- From: Todd Heberlein <email@hidden>
- Date: Tue, 17 Apr 2007 20:41:39 -0700
On Apr 17, 2007, at 8:29 PM, Michael Novak wrote:
Hello All,
How can I assign a menu item from mainmenu.nib to the mydocument.h
or .m function I have setup? I read through the docs but it didn't
seem to help much.
I am pretty new (again) at this, so here goes from my recent
experiences.
(1) In Interface Builder, double click the "First Responder"
instance. This should bring up its "class".
(2) In the Inspector window, select "Attributes", and then click the
"add" button and add your method to the rather long list of existing
method names.
(3) Click back on the instances tab.
(4) Control drag from the menu item to the "First Responder" instance.
(5) Select the action name you added.
When your application runs, and you select the menu item, it will
send the message to the "first responder", then it follows a
responder chain until it reachers your mydocument method, since your
document instance should be somewhere in the chain.
I hope this is right.
Todd
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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