• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question about TableView - how do I know which tableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Question about TableView - how do I know which tableView?
      • From: Scott Anguish <email@hidden>
References: 
 >Re: Question about TableView - how do I know which tableView? (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Question about TableView - how do I know which tableView?
  • Next by Date: Image conversions (EPS/PDF/TIFF -> JPG/GIF)
  • Previous by thread: Re: Question about TableView - how do I know which tableView?
  • Next by thread: Re: Question about TableView - how do I know which tableView?
  • Index(es):
    • Date
    • Thread