Re: NSArray
Re: NSArray
- Subject: Re: NSArray
- From: Brian Christensen <email@hidden>
- Date: Sun, 1 Jun 2008 20:39:00 -0400
On Jun 1, 2008, at 8:02 , Nathan wrote:
here's my code:
int x;
- (IBAction)addNew:(id)sender {
NSString *temp = @"Enter Todo Item Here";
[Items addObject: temp];
x=[Items count];
[label setIntValue: x];
[tableView setDataSource: Items];
[tableView reloadData];
}
An NSArray object cannot be made a data source of a table view.
<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTableView_Class/Reference/Reference.html#//apple_ref/occ/instm/NSTableView/setDataSource:
>
/brian
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >NSArray (From: Nathan <email@hidden>) |