Re: Question about TableView - how do I know which tableView?
Re: Question about TableView - how do I know which tableView?
- Subject: Re: Question about TableView - how do I know which tableView?
- From: Denis Stanton <email@hidden>
- Date: Thu, 6 Feb 2003 19:22:30 +1300
Thank you Scott
On Thursday, February 6, 2003, at 06:37 PM, Scott Anguish wrote:
There are two different strategies for this.
The most common (and most flexible) is to ensure that there are
variables in the class that are set to the NSTableView object.
Declare them in the code, and then connect them up in InterfaceBuilder
to the tables.
I'm struggling a bit with the Outlet connections. I'm not clear on
which way to drag the connection. The books helpfully explain that the
drag is in the direction of the flow of control, but when I want to
synch an object on the layout with a class in the program I'm not clear
on who is controlling whom. I'l get there, but I'm struggling with it
at the moment.
the other option, is to set a tag for each of the tableviews in
Interface Builder. If you inspect the table view, you'll see a tag
field. Set that to a unique number for each table, and then you could
do
if ([aTableView tag] == 1) // its my names table
That look easier for me. I was getting close. I tried
if ([[aTableView autosaveName] isEqual: @"Table1"])
autosaveName is the "other" field next to the tag field.
It's working now with the tag field thanks again for your time
Denis
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.