• 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: Print Menu Item Magic?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Print Menu Item Magic?


  • Subject: Re: Print Menu Item Magic?
  • From: PGM <email@hidden>
  • Date: Sun, 19 Feb 2006 17:10:17 -0500

It is a question of menu-enabling-magic. Your custom controller is not in the chain of objects that is asked whether to enable the menuItem, but the App Delegate is in that chain. See:

http://developer.apple.com/documentation/Cocoa/Conceptual/MenuList/ Tasks/EnablingMenuItems.html

Patrick.

On 19 Feb, 2006, at 16:25, Thaddeus Cooper wrote:

Hi All --

In a core data application, I created a custom controller for my main window and added a method named printSelectedItems. I tied the Print menu item (in the file menu) to this method through an action in interface builder and re-ran the program. The Print menu item never becomes active. I've tried setting the enabled binding but the Print item stays stubbornly unavailable.

When I moved the functionality to the Application Delegate and tied the action to the method there - the button suddenly works as expected.

Is there some "magic" about the Application Delegate here that I'm missing - or did I miss a set of steps when I tied it to the custom window controller?

Thanks.

--Thaddeus O. Cooper

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Print Menu Item Magic? (From: Thaddeus Cooper <email@hidden>)

  • Prev by Date: Print Menu Item Magic?
  • Next by Date: _fastCStringContents selector not recognized
  • Previous by thread: Print Menu Item Magic?
  • Next by thread: _fastCStringContents selector not recognized
  • Index(es):
    • Date
    • Thread