• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: NSArray
  • Next by Date: to use the default about panel
  • Previous by thread: Re: NSArray
  • Next by thread: to use the default about panel
  • Index(es):
    • Date
    • Thread