Re: Copy via Pasteboard
Re: Copy via Pasteboard
- Subject: Re: Copy via Pasteboard
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 10 Jul 2001 12:04:29 +0200
On mardi, juillet 10, 2001, at 11:30 AM, Stefan Jung wrote:
The problem: Copy is always ghosted.
The solution: - fill in please- :-)
Since I faced this problem in the past, here is the solution:
- (BOOL) validateMenuItem:(NSMenuItem *)anItem
{
SEL action = [anItem action];
if (action==@selector(copy:))
{
return YES;
}
return YES;
}
To sum-up, you need to add a validateMenuItem on the target: your custom
view I think.