The view controller (or app delegate) should be the one to respond to the
'runPageLayout:' message, not the first responder!! Unless you've subclassed
one of the UI controls (to add the aforementioned runPageLayout: method), there
won't be any first responder that can receive that message, unless you use the
'forwarding and proxies' design pattern.
the first responder is a control (or view); it doesn't make sense that a UI
element would know anything about your custom message... unless you subclass it.
On Jul 5, 2011, at 9:33 AM, ronald b. kopelman wrote:
> Ok, I know I'm missing something simple here. I connect the "Page
> Setup" menu item to the runPageLayout action in the First Responder & get
> nothing. If I hook up a random button to the same action, it displays just
> fine. If I connect a new menu item, I still get nothing. If I connect the
> menu item to the same action in the Application there is still no display.
> This is a non-document, single window app. I think I have the responder chain
> set up correctly. I can "kluge" my way around this by providing a method such
> as - (IBAction)showPageSetup:(id)sender {[[NSApplication sharedApplication]
> runPageLayout:sender];} but why should I have to do this? Are the menus not
> responding because they are not part of my key window?? Also, on an unrelated
> tangent, how does one go about soliciting beta testers? Thanks for any advice.
>
> ronald b. kopelman_______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/wsquires%40satx.rr.com
>
> This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]