• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting the Sent Actions in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the Sent Actions in IB


  • Subject: Re: Setting the Sent Actions in IB
  • From: William Squires <email@hidden>
  • Date: Tue, 05 Jul 2011 19:00:28 -0500

  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@hidden)
>
> 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:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Setting the Sent Actions in IB (From: "ronald b. kopelman" <email@hidden>)

  • Prev by Date: NSDatePicker weirdness with time.
  • Next by Date: Re: NSDatePicker weirdness with time.
  • Previous by thread: Setting the Sent Actions in IB
  • Next by thread: PDF View with horizontal scroll
  • Index(es):
    • Date
    • Thread