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: insertText



The docs recommend only using insertText for actual user input. It recommends using NSTextContainer, although you can also just use NSText's methods for what your doing. Look at -string and -setString:

-Adam Leonard

On Jan 3, 2006, at 8:48 PM, Chad Armstrong wrote:

I have an NSTextView, named textView, and I want to insert some text in it to be displayed. So, here is the snippet of code I call:

[textView insertText:@"Hello"];

However, from the tests I've run, nothing appears. Am I completely missing the point for something here, or do I need to tell the NSTextView to refresh itself?

Chad
_______________________________________________
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: 
 >insertText (From: Chad Armstrong <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.