• 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: Text View's string value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Text View's string value (From: waynemelrose <email@hidden>)

  • Prev by Date: Text View's string value
  • Next by Date: PDF view
  • Previous by thread: Text View's string value
  • Next by thread: PDF view
  • Index(es):
    • Date
    • Thread