• 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: figuring out which TableView I am?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: figuring out which TableView I am?


  • Subject: Re: figuring out which TableView I am?
  • From: Dave DeLong <email@hidden>
  • Date: Sat, 25 Apr 2009 11:16:34 -0600

Aha.  This makes the -setTag: and IBOutlet methods ineffective.

Dave

On Apr 25, 2009, at 11:14 AM, David Scheidt wrote:


On Apr 25, 2009, at 1:06 PM, Dave DeLong wrote:

Simple way: have 3 IBOutlets, one for each tableView. In the datasource methods, just do a little bit of pointer comparison to figure out which tableview it is. The tableview requesting information is passed along as the first parameter, so you can easily do something like:

I'm using bindings, so I don't have have any data source methods. Sorry, should have said that. It's Core Data, cocoa bindings, 10.5+ only.

_______________________________________________

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


References: 
 >figuring out which TableView I am? (From: David Scheidt <email@hidden>)
 >Re: figuring out which TableView I am? (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: Clicking through a NSView with CALayers
  • Next by Date: Re: Trying to get flagsChanged: to work
  • Previous by thread: Re: figuring out which TableView I am?
  • Next by thread: Re: figuring out which TableView I am?
  • Index(es):
    • Date
    • Thread