• 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: duplicating NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >duplicating NSTextView (From: Fred Klein <email@hidden>)

  • Prev by Date: Re: working with font manager
  • Next by Date: FoundationKit md5/checksum
  • Previous by thread: duplicating NSTextView
  • Next by thread: Re: duplicating NSTextView
  • Index(es):
    • Date
    • Thread