• 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
Using bindings to set the value of an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using bindings to set the value of an NSTextView


  • Subject: Using bindings to set the value of an NSTextView
  • From: "Andrew White" <email@hidden>
  • Date: Mon, 22 Nov 2004 18:32:36 +1100
  • Importance: normal
  • Priority: normal

I have an NSString, that I want to use to set the value of an NSTextView. Normally, I'd just use setString:, but I'm also using bindings.

The options the 'bindings' menu gives me are 'data' (the NSTextStorage), 'valuePath' (the path of the content), and 'valueURL' (the URL of the content). Which, if any, is appropriate?

I tried an alternative of creating a void triggered key, but it doesn't seem to trigger unless I have something to receive the message. I have found a way to fudge it - set an invisible text field using the output and have the NSTextView set as a side effect, but that is IMO ugly.

Any suggestions?

--
Andrew White
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Using bindings to set the value of an NSTextView
      • From: Scott Anguish <email@hidden>
    • Re: Using bindings to set the value of an NSTextView
      • From: Chris Pavicich <email@hidden>
    • Re: Using bindings to set the value of an NSTextView
      • From: "Andrew White" <email@hidden>
  • Prev by Date: Re: NSDocument beginSheet on a new document
  • Next by Date: Re: Using bindings to set the value of an NSTextView
  • Previous by thread: Re: NSDocument beginSheet on a new document
  • Next by thread: Re: Using bindings to set the value of an NSTextView
  • Index(es):
    • Date
    • Thread