NSTextView - IB behaves oddly when editing attributes & bindings
NSTextView - IB behaves oddly when editing attributes & bindings
- Subject: NSTextView - IB behaves oddly when editing attributes & bindings
- From: Julian Vrieslander <email@hidden>
- Date: Tue, 22 Jun 2004 13:58:31 -0700
- Fnork: garbanzo
I am using Xcode 1.2 and IB v2.4.2 to build a window that contains a couple
of NSTextView objects (both are in the same NSBox, if that makes any
difference).
Clicking on nested objects in IB always seems like a hit-or-miss game. I
find it hard to predict what will happen, or how many times I need to click
to select a particular object. But these NSTextView thangs are acting
particularly strange.
I open IB's Inspector window and set it to show Attributes. I click away at
one of the NSTextViews, and eventually it becomes selected. The Continuous
Spell Checking option is usually enabled, even though I previously disabled
it and saved the Nib. What's with that?
If I doubleclick the NSTextView, it remains selected (although the selection
border is now drawn in the "pipe" style). The Inspector window still shows
that I am editing an NSTextView, but it is missing some of the attributes
(border, scrollbar size, multiple fonts allowed, show scroller, etc.). And
the Continuous Spell Checking option is usually on again, even if I just
turned it off.
If change the Inspector to show Bindings, the Inspector changes its target -
it is now editing the NSScrollView. I have to click away again to reselect
the NSTextView.
Is there any rhyme or reason to these behaviors, or is it just some wonky UI
code in IB?
One more question: Is is possible to configure an NSTextView to be
uneditable? I want to programmatically load it with an NSString, but I do
not want the user to be able to add or change the text from the keyboard. I
disabled the Editable attribute in the Inspector window, but when I run the
program, the text is still editable.
--
Julian Vrieslander <email@hidden>
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.