Re: Text View's string value
Re: Text View's string value
- Subject: Re: Text View's string value
- From: Shane Stanley <email@hidden>
- Date: Sat, 08 Jun 2013 10:17:32 +1000
On 08/06/2013, at 10:03 AM, waynemelrose <email@hidden> wrote:
> I had thought that from here it would just be a matter of something like
>
> set strText to textStorage's stringValue()
>
> But I'm clearly missing something as this of course doesn't work.
NSTextStorage is a subclass of NSAttributedString, so use one of its methods, like string:
set strText to textStorage's |string|()
But NSTextView is a subclass of NSText, so you can probably skip the middle-man:
set strText to textView's |string|()
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden