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: Chris Pavicich <email@hidden>
- Date: Mon, 22 Nov 2004 10:38:59 +0000
Andrew:
In the Inspector for the Text View, I believe that you need to Un-tick
'Multiple Font's Allowed'.
This will modify the the bindings available for the Text View, and you
will be able to bind directly
to your NSString *.
HTH,
Chris
On 22 Nov 2004, at 07:32, 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?
--
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:
email@hidden
This email sent to email@hidden
_______________________________________________
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