• 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: Need to subclass NSTextView or not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need to subclass NSTextView or not


  • Subject: Re: Need to subclass NSTextView or not
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 28 May 2002 11:20:50 -0700

On Sunday, May 26, 2002, at 03:23 PM, Renaud Boisjoly wrote:

I've read on this list that sometimes, it is not necessary to subclass an NSTextView to make it do what we want.

I'm trying to make sure an NSTextView supports more graphic formats for Cut/Copy and paste as well as drag and drop... is subclassing the only way?

And can I call the regular Copy and Paste methods in the superclass after doing my part to translate content to other formats?

I've noticed that standard NSTextViews do not support some formats, like copy and paste to Photoshop or AppleWorks... not good. I want to make this better

NSTextView has a well-defined subclass interface for copy and paste. It does not involve overriding the copy: and paste: methods. It is described in the NSTextView.h header, in the section "Pasteboard support (mainly for subclassers)". There are detailed instructions in that section for implementing support for reading and/or writing a new type to the pasteboard. Read them carefully, then if you have questions post them to the list again.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Need to subclass NSTextView or not (From: Renaud Boisjoly <email@hidden>)

  • Prev by Date: Re: NSTextInput problems (Solved)
  • Next by Date: making things invisible
  • Previous by thread: Need to subclass NSTextView or not
  • Next by thread: Re: "clover" character in menu - unicode characters
  • Index(es):
    • Date
    • Thread