Re: Communicating with NSTableView delegate
Re: Communicating with NSTableView delegate
- Subject: Re: Communicating with NSTableView delegate
- From: Glenn Andreas <email@hidden>
- Date: Mon, 12 Apr 2004 09:36:30 -0500
At 3:57 PM +0200 4/12/04, Stiphane Sudre wrote:
On lundi, avril 12, 2004, at 03:16 PM, aperantos lists wrote:
Hi all,
[...]
Or am I going about this all wrong, should I be doing something in IB
or be subclassing the NSTableView?
Since the NSTableView instance's delegate is
also the datasource, you just have to implement
tableViewSelectionDidChange in your data source
class.
The delegate and the datasource for an
NSTableView are two separate things, but can
easily (and often are) set to the same thing -
just remember to connect both outlets in IB (or
you'll be pulling out your hair trying to figure
out while tableView:didThis: doesn't work while
tableView:somethingElse: does).
--
Glenn Andreas email@hidden
mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.