Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making a copy of text in document window




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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >making a copy of text in document window (From: Boyd Collier <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.