Re: Choose outline table column in IB 3.2
Re: Choose outline table column in IB 3.2
- Subject: Re: Choose outline table column in IB 3.2
- From: Quincey Morris <email@hidden>
- Date: Sat, 29 Aug 2009 23:43:14 -0700
On Aug 29, 2009, at 23:11, Joar Wingfors wrote:
Not sure why the connection isn't valid any more. If you can
reproduce that problem, please file a radar and attach the XIB file.
You can still connect table columns in IB, just like you could in
earlier versions. Control+Drag from the source object, or from the
connections HUD, to the "body" of the columns in the table view /
outline view, and the column should light up, indicating that it's
available for connection. If not, make sure that your outlet on the
source object has the correct type, and that it's marked as an
IBOutlet. Also verify that the outlet shows up in the connection HUD
of the source object.
I think I figured it out.
If I create a new window XIB and put an outline view in the window,
there's an Outline View section of the Attributes inspector tab, above
the Table View section, and there's now a menu in there for choosing
the outline column. The old outlineTableColumn connection is gone.
Although I tried creating a new file earlier, I didn't notice the
Outline View section, so I couldn't work out what to do.
In my old XIB, I don't have an Outline View section of the Attributes
tab. That's because this was originally a NSTableView, which I changed
to a NSOutlineView by changing its class in the Identity tab. (And I
subsequently changed it to a NSOutlineView subclass, but I think
that's irrelevant.)
Apparently, the inspector configuration is determined by the original
view class, and doesn't change to reflect the change in class. I never
noticed the missing section before, because I never needed it.
This is easy to reproduce -- just add a NSTableView to a window, then
change its class to NSOutlineView.
Incidentally, the new (IB 3.2) outline column interface is
functionally different from the old one, because it's column-index-
based instead of column-object-based. That is, if you re-order the
columns in IB 3.2, the outline column status effectively switches to a
different column. In IB 3.1, the outline column status moved along
with the moved column. Maybe there's a reason for this change, but I
think the old behavior makes more sense.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden