Re: Need to subclass NSTextView or not
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.