• 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
What's the argument aTableView used for?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What's the argument aTableView used for?


  • Subject: What's the argument aTableView used for?
  • From: "Frank Bettger" <email@hidden>
  • Date: Tue, 18 Sep 2007 09:15:23 +0200

I'm trying to understand how NSTableView works. A NSTableView needs a
dataSource object that implements the method
tableView:objectValueForTableColumn:row:

Hillegass' book states:
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex
The dataSource will reply with the object that should be displayed in the
row rowIndex and the column aTableColumn.

As we can see above our method takes three arguments: aTableView,
aTableColumn and rowIndex. Now the dataSource object clearly needs the two
arguments aTableColumn and rowIndex. But what does it need the argument
aTableView for?

Thanks Frank
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: What's the argument aTableView used for?
      • From: Chris Suter <email@hidden>
  • Prev by Date: Re: Cocoa frameworks/class diagrams or posters
  • Next by Date: Re: Cocoa frameworks/class diagrams or posters
  • Previous by thread: Re: Recreating XCode run log behavior in an NSTextView
  • Next by thread: Re: What's the argument aTableView used for?
  • Index(es):
    • Date
    • Thread