• 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: Copy via Pasteboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Copy via Pasteboard
      • From: Stefan Jung <email@hidden>
References: 
 >Copy via Pasteboard (From: Stefan Jung <email@hidden>)

  • Prev by Date: Re: Learning Cocoa book "Dot View" tutorial question
  • Next by Date: Bah, Networking Woes!
  • Previous by thread: Copy via Pasteboard
  • Next by thread: Re: Copy via Pasteboard
  • Index(es):
    • Date
    • Thread