• 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
Multiple NSTableView question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple NSTableView question


  • Subject: Multiple NSTableView question
  • From: Jason Brown <email@hidden>
  • Date: Wed, 20 Jun 2001 17:53:45 -0500

I keep reading that by evaluating the theTableView argument used in

- (int)numberOfRowsInTableView:(NSTable *)theTableView

and

- (id)tableView:(NSTableView *)theTableView
objectValueForTableColumn:(NSTableColumn *)theColumn
row:(int)rowIndex


you can distinguish which table view is invoking these methods, when using more than one table view.

My question is this: Evaluate it against what? What can I do with that argument to figure out which table view is making the given calls? With the second method, I know I can just query the theColumn argument, assuming none of my tables have columns with the same name. But there has to be a better solution that would also work for numberOfRowsInTableView.

I realize this is probably a newbie question and I have read something like 60 digests with no solution that I can see. Thanks.

Jason S. Brown
Vital Source Technologies
--


  • Follow-Ups:
    • Re: Multiple NSTableView question
      • From: "Sven A. Schmidt" <email@hidden>
    • Re: Multiple NSTableView question
      • From: Finlay Dobbie <email@hidden>
    • Re: Multiple NSTableView question
      • From: Greg Titus <email@hidden>
    • Re: Multiple NSTableView question
      • From: Joe Schiwall <email@hidden>
  • Prev by Date: Re: retain, release, autorelease (was Checkboxes and NSBox titles)
  • Next by Date: Re: Apple Events in Cocoa
  • Previous by thread: Re: Adding a preferences panel to the system preferences panel folder
  • Next by thread: Re: Multiple NSTableView question
  • Index(es):
    • Date
    • Thread