Binding a NSTextView overrides Editable option in IB?
-
I've got a NSTextView in IB and I'm binding its data to the data
returned from a NSMutableString. The text view should not be editable
(as I have deselected the editable option in IB). But it seems that the
bound data is overriding this? Because when I run my app it is
editable.
Is there some fix, or should I be doing this a different way?
- lee
_______________________________________________
cocoa-dev mailing list | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored. -
Oh, duh. Boy to I feel stupid for overlooking that.
thanks
- lee
On Aug 25, 2004, at 1:22 PM, Fritz Anderson wrote:> The "Conditionally sets editable" option in the binding overrides the_______________________________________________
> object-level setting. Uncheck it.
>
> -- F
>
> On 25 Aug 2004, at 11:09 AM, Lee Morgan wrote:
>
>> I've got a NSTextView in IB and I'm binding its data to the data
>> returned from a NSMutableString. The text view should not be editable
>> (as I have deselected the editable option in IB). But it seems that
>> the bound data is overriding this? Because when I run my app it is
>> editable.
cocoa-dev mailing list | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored. -
On Aug 25, 2004, at 9:09 AM, Lee Morgan wrote:> I've got a NSTextView in IB and I'm binding its data to the dataI don't think the data itself should be affecting the editable state of
> returned from a NSMutableString. The text view should not be editable
> (as I have deselected the editable option in IB). But it seems that
> the bound data is overriding this? Because when I run my app it is
> editable.
> Is there some fix, or should I be doing this a different way?
>
the text view.
But yes, setting the binding does seem to affect the editable state...
You can workaround by binding 'editable' either to value that returns
NO, or (in extremis) to something that will provide inappropriate
values and set all the placeholder options to "No."
mmalc
_______________________________________________
cocoa-dev mailing list | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored. -
On Aug 25, 2004, at 11:48 AM, Lee Morgan wrote:> Oh, duh. Boy to I feel stupid for overlooking that.Hey, not as stupid as me -- not sure what I was thinking <sigh>
>
mmalc
_______________________________________________
cocoa-dev mailing list | <cocoa-dev...>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


