• 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 02:45:19 -0500

On Thursday, February 6, 2003, at 02:31 AM, Denis Stanton wrote:


On Thursday, February 6, 2003, at 07:49 PM, Scott Anguish wrote:
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)

So you always drag from the instances window to the UI when setting outlets?

You can't really generalize it to being from the instances window, since you will encounter situations where you needed to drag from one user interface element to another to set an outlet.


I was worrying about whether the data was moving from the program to the UI or from the UI to the program. I.e, I thought the direction of the drag depended on whether it was Output or Input. This idea breaks down with things like the table view, which is both input and output, leaving my understanding a bit stranded

Yeah, understandable.

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

That I can follow. Clearly an action moves from the UI button to the program action method.

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.

I'll agree to all of that. I am totally bluffed by File's Owner. O'Reilly's Learning Cocoa has very little to say about it, and so far I can't see how to use it. What file it it referring to?

The file it is referring to is the nib. (simplest terms.. now, there are some cases where a nib can be loaded multiple times with different file owners.. this is how the Document architecture works for example).

The book says I specify FO programatically, in the second argument of NSBundle's loadNibNamed: owner, which unfortunately means very little to me at this stage as NSBundle has not been mentioned before in the Cocoa book or the other tutorials I'm working through. I have had another book or order since 14 December but apparently someone in the Post Office borrowed it to read over Christmas and has forgotten to put it back into the delivery system


Well, I'm biased. There is an explanation in Cocoa Programming (pages 211-212).

Also, Apple's docs also cover it in the Resource Management -> Loading Resources concept. Mind you, the info there is pretty sparse at the moment. Someone should file an enhancement request at bugreporter.apple.com _______________________________________________
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: Delegation methods from NSOpenPanel?
  • Next by Date: Re: link between classes using a class variable
  • 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