Re: Using bindings to set the value of an NSTextView
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