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