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 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?
    >
    I don't think the data itself should be affecting the editable state of
    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.
previous month august 2004 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today
MindNode
MindNode offered a free license !