Hi,
best solution would be to update the datasource...
Swapping views just for the sake of displaying new data is not
something one should do. Have you read up on how to implement a
datasource for NSTableView?
Maybe you try to follow this old, but still useful tutorial:
http://www.cocoade
Would an alternative implementation be to have the button click swap in a
view with a NSTableView bound to its data source?
-S
On Fri, Sep 18, 2009 at 9:34 AM, Philip Juel Borges wrote:
> Hi!
>
> Does anyone know how you'd populate a tableview when clicking a button? I
> tried this:
>
> AppContr
On Sep 18, 2009, at 9:34 AM, Philip Juel Borges wrote:
Does anyone know how you'd populate a tableview when clicking a
button?
Nope. That kind of high-tech stuff is beyond any Cocoa developer. ;-)
I tried this:
-(void)populateTableView:(id)sender {
[super init];
...
Hi!
Does anyone know how you'd populate a tableview when clicking a
button? I tried this:
AppController.h:
- (void)populateTableView:(id)sender;
AppController.m:
-(void)populateTableView:(id)sender {
[super init];
sourceArray = [NSArray arrayWithObjects: