Re: Does each NSTableView requires its own controller?
Re: Does each NSTableView requires its own controller?
- Subject: Re: Does each NSTableView requires its own controller?
- From: Theodore Petrosky <email@hidden>
- Date: Wed, 28 Jan 2004 07:09:56 -0800 (PST)
John,
No... if you notice the methods that fill the
tableview
-(int)numberOfRowsInTableView:(NSTableView
*)aTableView {
when the tableview asks for data, it sends the request
here. so the calling tableview is sent in. you can
say...
if (tableview1) {
return [tableview1array count];
}else if [tableview2] {
return [tableview2array count];
}
}
obviously this is psuedo code you need to test the
tableview object...
Ted
-__--__--
>
>
Message: 1
>
Date: Tue, 27 Jan 2004 22:42:09 -0800
>
Subject: Doe each NSTableView requires its own
>
controller?
>
From: email@hidden
>
To: email@hidden
>
>
Hi:
>
>
Hope this isn't too stupid....
>
>
In my application I'm about to add an additional
>
NSTableView instance.
>
Do I now need to create a new controller to
>
implement its delegate
>
methods? I would think so. If this is the case, how
>
do I reference
>
objects in the other table view's controller?
>
>
Any help greatly appreciated.
>
>
John
>
>
--__--__--
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
_______________________________________________
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.