Re: How to Distinguish Between Two TableViews

2010-10-19 Thread Uli Kusterer
On 19.10.2010, at 00:32, Graham Cox wrote: > This is not necessarily a code smell. If it were, why would the tableview > object be passed as a parameter to the data source? It is a *smell*. I never said it was wrong. A smell is an indicator that something is likely wrong, not a sure-fire way to

Re: How to Distinguish Between Two TableViews

2010-10-18 Thread Graham Cox
On 19/10/2010, at 7:31 AM, Uli Kusterer wrote: > This is a code smell, i.e. a sign that you're likely doing something in a way > that it wasn't intended to be done. > > Don't try to distinguish between them, give them each a separate data > source/delegate object. That way, you get only one ta

Re: How to Distinguish Between Two TableViews

2010-10-18 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/18/10 1:27 PM, Michael Dautermann wrote: > > On Oct 17, 2010, at 4:29 PM, Chris Share wrote: > >> 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

Re: How to Distinguish Between Two TableViews

2010-10-18 Thread Uli Kusterer
On 18.10.2010, at 01:29, Chris Share wrote: > 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 *) tableVi

Re: How to Distinguish Between Two TableViews

2010-10-18 Thread Michael Dautermann
On Oct 17, 2010, at 4:29 PM, Chris Share wrote: > 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 *) t

Re: How to Distinguish Between Two TableViews

2010-10-18 Thread Nick Zitzmann
On Oct 17, 2010, at 5:29 PM, Chris Share wrote: > 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 *) t

How to Distinguish Between Two TableViews

2010-10-18 Thread Chris Share
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 obje