Working through a problem...
-
Hello everyone:
I'm working through problems in the "Cocoa Programming for Mac OS X"
book, and on page 113 I read the following instructions:
Next you will connect you AppController object's tableView
outlets to the table view. Control-drag from the
AppController
to the middle of the table view. In the info panel connect to
the tableView outlet (Figure 5.11)
I am attempting to follow these instructions, but whenever I do, when
the cursor hovers over the table view control on the dialog the label
that shows is NSTableColumn, and in the info panel the connected button
remains grayed out and the message "tableView must be of type
NSTableView" appears on the panel.
How do I get IB to select the tableView instead of the columnView?
R,
John A.M. Darnell
Team Leader
Walsworth Publishing Company
Brookfield, MO
John may also be reached at <johnamdarnell...>
Trivia Question: In SciFi Channel's hit series, FARSCAPE, who played
the voice of Pilot? -
On May 16, 2008, at 4:55 PM, john darnell wrote:
> I am attempting to follow these instructions, but whenever I do, when
> the cursor hovers over the table view control on the dialog the label
> that shows is NSTableColumn, and in the info panel the connected
> button
> remains grayed out and the message "tableView must be of type
> NSTableView" appears on the panel.
>
> How do I get IB to select the tableView instead of the columnView?
Well, I don't have the current version of this book, but one trick
that can help is to change the nib window to hierarchical view, and
then expand the tree out until you can see the tableView that you want
to connect to, then control-drag to that instead of the table on the
column. That's probably the easiest way to get to one item in a nested
hierarchy such as you have with the table views. -
john darnell wrote:
> I am attempting to follow these instructions, but whenever I do, when
> the cursor hovers over the table view control on the dialog the label
> that shows is NSTableColumn, and in the info panel the connected
> button
> remains grayed out and the message "tableView must be of type
> NSTableView" appears on the panel.
>
> How do I get IB to select the tableView instead of the columnView?
I've always found the best way to deal with these nestings in IB is to
use (permanently or temporarily) either List or Column View Mode. That
way you can reveal the view hierarchy and see exactly what you are
connecting.
pg -
> How do I get IB to select the tableView instead of the columnView?
Get out of the column. Drag to the header or to the edge between columns.
--
Scott Ribe
<scott_ribe...>
http://www.killerbytes.com/
(303) 722-0567 voice



