Re: Enabling menu items?
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