Re: duplicating NSTextView
Re: duplicating NSTextView
- Subject: Re: duplicating NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Fri, 25 Jul 2003 09:30:06 -0700
On Friday, July 25, 2003, at 01:12 AM, Fred Klein wrote:
I am new to Cocoa. I am trying to duplicate programaticaly an
NSTextView in
my Window.
Here's my code, that obviously doesn't work:
It looks like your code will indeed create a new text view, similar in
size (though perhaps not in other regards) to the original. But
presumably you wanted to duplicate the contents of the original text
view? For that, you need to deal with the text storage. The exact
procedure depends on whether you want the two text views to share a
single backing store--so that changes to one will affect the other--or
whether you want them to have distinct copies of the text.
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.