Re: Help for responders...
Re: Help for responders...
- Subject: Re: Help for responders...
- From: "Jay" <email@hidden>
- Date: Wed, 4 Apr 2007 22:06:48 +0800
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