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

Re: Using bindings to set the value of an NSTextView


  • Subject: Re: Using bindings to set the value of an NSTextView
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 23 Nov 2004 00:23:38 -0500


On Nov 22, 2004, at 2:32 AM, Andrew White wrote:



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?


You can find out which of these are appropriate by looking at the Cocoa Bindings Reference doc


http://developer.apple.com/documentation/Cocoa/Reference/ CocoaBindingsRef/index.html

specifically

http://developer.apple.com/documentation/Cocoa/Reference/ CocoaBindingsRef/BindingsText/NSTextView.html#//apple_ref/doc/uid/ NSTextView


_______________________________________________ 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
References: 
 >Using bindings to set the value of an NSTextView (From: "Andrew White" <email@hidden>)

  • Prev by Date: Re: Problems with mouse events
  • Next by Date: Re: NSTableView delegate not responding
  • Previous by thread: Re: Using bindings to set the value of an NSTextView
  • Next by thread: Drag & Drop problem solved.
  • Index(es):
    • Date
    • Thread