• 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: "John C. Randolph" <email@hidden>
  • Date: Tue, 30 Aug 2005 16:50:03 -0700


On Aug 30, 2005, at 4:46 PM, Boyd Collier wrote:

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.

NSString *textViewContents = [[myTextView string] copy];

-jcr


_______________________________________________ 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
  • Follow-Ups:
    • Re: making a copy of text in document window
      • From: Boyd Collier <email@hidden>
References: 
 >making a copy of text in document window (From: Boyd Collier <email@hidden>)

  • Prev by Date: Re: NSSocketPort vs. AF_UNIX?
  • Next by Date: NSTextView autoresizing vertically
  • Previous by thread: making a copy of text in document window
  • Next by thread: Re: making a copy of text in document window
  • Index(es):
    • Date
    • Thread