Re: How i can get to a NSString a selected text in a NSTextView ?
Re: How i can get to a NSString a selected text in a NSTextView ?
- Subject: Re: How i can get to a NSString a selected text in a NSTextView ?
- From: Scott Anguish <email@hidden>
- Date: Tue, 12 Mar 2002 17:27:56 -0500
On Tuesday, March 12, 2002, at 05:16 PM, SoK wrote:
Hello !
How i can get to a NSString a selected text in a NSTextView ?
I have found how to replace ... but no how to get ...
selectedText=[[myTextView string] substringWithRange:[myTextView
selectedRange]]
not sure what happens if selectedRange is unspecified (no selection, or
an empty selection).. you may want to test for that first
_______________________________________________
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.