Skip navigation.
 
mlRe: Help for responders...
FROM : Clint Shryock
DATE : Thu Apr 05 15:32:31 2007

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_removed>> 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_removed>>
> To: "Jay" <<email_removed>>
> Cc: <<email_removed>>
> 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_removed>)
> >>
> >> 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_removed>-
> >> sweater.com
> >>
> >> This email sent to <email_removed>
> >
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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_removed>
>
> This email sent to <email_removed>
>

Related mailsAuthorDate
mlHelp for responders... Jay Apr 4, 14:40
mlRe: Help for responders... Jay Apr 4, 16:06
mlRe: Help for responders... Daniel Jalkut Apr 5, 03:35
mlRe: Help for responders... Clint Shryock Apr 5, 15:32
mlRe: Help for responders... Daniel Jalkut Apr 5, 15:56