• 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: Enabling menu items?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabling menu items?


  • Subject: Re: Enabling menu items?
  • From: Kai-Mikael Jää-Aro <email@hidden>
  • Date: Wed, 25 Jul 2007 14:38:30 +0200


Ron Fleckner kirjoitti 2007-07-25 kello 14:26:

Date: Wed, 25 Jul 2007 10:47:10 +0200
From: Kai-Mikael J??-Aro 	<email@hidden>
Subject: Enabling menu items?



It also declares and implements

-(IBAction) cut: (id) sender;
-(IBAction) copy: (id) sender;
-(IBAction) paste: (id) sender;


But, in spite of all this, all items in the Edit menu are disabled when running the program. What have I forgotten to add to this?

Just a guess: perhaps you need to change the return type of the methods to void.

No, that doesn't seem to make any difference.

If this fails, why not just disconnect the original menu item connections in FirstResponder and connect them to your methods?

Well, it seems to me that that means that the Edit menu will only work for that single view and not for any other windows, right? (Or worse, that regardless of which window is active, the operations will take place in the EditorView.) It does work, so I can use it for the moment so I can continue with testing, but I would like a more "comprehensive" solution.



_______________________________________________

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: 
 >Re: Enabling menu items? (From: Ron Fleckner <email@hidden>)

  • Prev by Date: Writing Mail.app Plugin
  • Next by Date: Core Data, NSPredicate, and NSDates
  • Previous by thread: Re: Enabling menu items?
  • Next by thread: Floats in strings
  • Index(es):
    • Date
    • Thread