• 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
How to Distinguish Between Two TableViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to Distinguish Between Two TableViews


  • Subject: How to Distinguish Between Two TableViews
  • From: Chris Share <email@hidden>
  • Date: Sun, 17 Oct 2010 16:29:14 -0700 (PDT)

Hi,

I'm new to Cocoa. I'm developing a simple application that contains two
TableViews. What I can't figure out is how to distinguish between the two
TableView pointers that are passed in to:

- (int)numberOfRowsInTableView:(NSTableView *) tableView
- (id)tableView:(NSTableView *)tableView
objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row

How do I do this?

In IB the Names and IDs of the two table views are different - do I somehow need
to use these? If so, how?

Cheers,

Chris



_______________________________________________

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: How to Distinguish Between Two TableViews
      • From: Uli Kusterer <email@hidden>
    • Re: How to Distinguish Between Two TableViews
      • From: Michael Dautermann <email@hidden>
    • Re: How to Distinguish Between Two TableViews
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: AM/PM letter UNICODE issues
  • Next by Date: Updating Core Data model object with an NSButtonCell
  • Previous by thread: NSOperation completionBlock not executed
  • Next by thread: Re: How to Distinguish Between Two TableViews
  • Index(es):
    • Date
    • Thread