• 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: troubles with tableview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: troubles with tableview


  • Subject: Re: troubles with tableview
  • From: Graham Cox <email@hidden>
  • Date: Mon, 30 Nov 2009 16:05:48 +1100

On 29/11/2009, at 10:23 PM, Dorimedont Bancescu wrote:

> but when I try to load the data from the disk in
> -(id) initWithCoder:(NSCoder*) encoder I see the NSMutableArray loaded with all data but in
> -(int) numberOfRowsInTableView:(NSTableView*) tableView the array is emtpy and I cannot see nothing in my NSTableView.


Are you sure it's even called? You need to call [table reloadData] at the end of -initWithCoder: to make sure the table is refreshed with the new data.

Also, look up keyed archiving - the non-keyed archiving you are using is not recommended. It's also wise to factor the memory management of the 'persons' property into proper getter and setter methods.

--Graham


_______________________________________________

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: 
 >troubles with tableview (From: Dorimedont Bancescu <email@hidden>)

  • Prev by Date: How to draw text to bitmap (array) with pre 10.5 libs
  • Next by Date: Re: How to draw text to bitmap (array) with pre 10.5 libs
  • Previous by thread: troubles with tableview
  • Next by thread: Re: troubles with tableview
  • Index(es):
    • Date
    • Thread