Re: Help for responders...
Re: Help for responders...
- Subject: Re: Help for responders...
- From: "Clint Shryock" <email@hidden>
- Date: Thu, 5 Apr 2007 08:32:31 -0500
Is this a document based app?
i had a similar problem in the past with a document based app, i had a menu
item in mainmenu.nib that i could not get to connect to a method using the
first responder.
someone at forums.macnn.com finally informed me i had to add said method to
the the first responders "actions". in mainmenu.nib double click on the
first responder, that should bring up an info window with 80 some actions.
click "add" at the bottom, and add your method.
that got things working for me, your results may vary
hope that helps
+Clint
On 4/4/07, Jay <email@hidden> wrote:
Thanks for your reply, Daniel,
My current problem is that, I have added the menuitem in IB, I have added
the "toggleRuler" method in the cutomerView class and implemented it in .m
file, but I have no idea for what to do next.
I noticed that the menuitem I chose "ShowRuler" is already by default
connected to the "1st Responder" instance icon in the MainMenu.nib window,
but I have no idea whether it should be reconnected to somewhere else in
order to connect to the "toggleRuler" method implemented in the
cutomerView
class. Thanks.
Should I make an instance of the customView as well in the nib file?
Best regards,
Jay
----- Original Message -----
From: "Daniel Jalkut" <email@hidden>
To: "Jay" <email@hidden>
Cc: <email@hidden>
Sent: Thursday, April 05, 2007 9:35 AM
Subject: Re: Help for responders...
> Jay: Your custom view's being embedded in a scroll view won't
impede its
> ability to become first responder.
>
> If your menu item works when your custom view is "focused" outside
of the
> scroll view, it should continue to work when it's focused inside the
> scroll view.
>
> Daniel
>
> On Apr 4, 2007, at 8:40 AM, Jay wrote:
>
>> Hello,
>> I created a cocoa application and placed a customer view
with scrollview
>> enabled.
>> This is what I'm feeling confused with, in order to let the scrollview
>> to display the ruler in the custom view,
>> I intend to use a menuitem to trigger the override
method "toggleRuler".
>> However, since I placed the method in the customerview class, I have
no
>> idea about how to make the customerview class be the first responder
to
>> the menuitem. Could somebody give me some ideas? Thanks a lot.
>>
>> Best regards,
>>
>> Jay
>> _______________________________________________
>>
>> 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:
>> sweater.com
>>
>> This email sent to email@hidden
>
_______________________________________________
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
_______________________________________________
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