• 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: Scott Anguish <email@hidden>
  • Date: Thu, 6 Feb 2003 01:49:53 -0500

On Thursday, February 6, 2003, at 01:22 AM, Denis Stanton 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.


One way to look at it, is that

you want the outlet of the object to be set to the UI element (so, drag from the object that contains the outlet to the UI element)

or

you want the UI element to trigger an action (so drag from the UI element to the object that contains the action)


Overall, I'd say that action/outlet and File's Owner are two of the 'newest' concepts to learn for Cocoa for most people. Memory management (retain/release) is the other big stumbler for many folks.
_______________________________________________
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: Denis Stanton <email@hidden>
References: 
 >Re: Question about TableView - how do I know which tableView? (From: Denis Stanton <email@hidden>)

  • Prev by Date: Re: Question about TableView - how do I know which tableView?
  • Next by Date: Re: Delegation methods from NSOpenPanel?
  • 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