• 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: making a copy of text in document window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making a copy of text in document window


  • Subject: Re: making a copy of text in document window
  • From: Matt Neuburg <email@hidden>
  • Date: Tue, 30 Aug 2005 17:36:30 -0700

On Tue, 30 Aug 2005 16:46:16 -0700, Boyd Collier
<email@hidden> said:
>I have a very simple document application with only one window
>showing the contents of a plain text file and a single button.  When
>the button is pressed, I want to copy the text (without any of the
>formatting) into a buffer that I can manipulate.  From Apple's
>documentation, I presume the text I want to copy is in an
>NSTextStorage object and that I can get at this from the NSTextView
>that shows the text in my window.  But I don't know how to access
>this.

Hint: An NSTextView is an NSText. This is what classes/subclasses are all
about. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Tableviews like Excel ones
  • Next by Date: Re: Tableviews like Excel ones
  • Previous by thread: Re: making a copy of text in document window
  • Next by thread: NSTextView autoresizing vertically
  • Index(es):
    • Date
    • Thread