Newbie: Basic problem with NSTableview
Newbie: Basic problem with NSTableview
- Subject: Newbie: Basic problem with NSTableview
- From: Marcus Pedersén <email@hidden>
- Date: Sun, 3 Sep 2006 22:09:38 +0200
Hi all!
I found a tutorial regarding NSTableview and according to that
tutorial I was supposed to make a connection from my controller class
to my NSTableview in Interface Builder. I did that.
After that I was supposed to write two methods in my controller class
that my NSTableview gets the info from,
Just to try it out I did the following but nothing happend.(My
columbs has the visible names Date, Time and Remember). I even tried
(just as a test) to make a button click make: [ myTableView
reloadDate ] but nothing happend.
Many thanks
Marcus
-(int)numberOfRowsInTableView:(NSTableView *)tableView{
return 1;
}
- (id)tableView:(NSTableView *)tableView
objectValueForTableColumn:(NSTableColumn *)tableColumn
row:(int)row
{
NSString *value=nil;
if([[tableColumn identifier]isEqualToString: @"Date"]){
value = @"2004-11-12";
}
if([[tableColumn identifier]isEqualToString: @"Time"]){
value = @"12:34";
}
if([[tableColumn identifier]isEqualToString: @"Remember"]){
value = @"A realy realy good thing to remember";
}
return value;
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden