• 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
Why is my NSTableView empty?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why is my NSTableView empty?


  • Subject: Why is my NSTableView empty?
  • From: Robert Cerny <email@hidden>
  • Date: Mon, 28 Apr 2008 16:40:20 +0200

Hi,
I'm kind of stupid today, my question is probably very easy to answer. I haven't been in programming for some time and somehow cannot manage solution for my following simple problem..


I got an array 'peeps' populated in apps delegate:

peeps = [[NSArray arrayWithArray:[[ABAddressBook sharedAddressBook] people]] retain];

I created an ABPerson category to get lastName easily...

- (NSString*) lastName
{
    return [self valueForProperty:kABLastNameProperty];
}

and I'm trying to display all last names in the table.
- I created NSArrayController ABPeople and set content to my delagate, key path: peeps
- I bound table content to ABPeople, controller key: arrangedObjects
- I bound table column value to ABPeople, controller key: arrangedObjects, model key path: lastname


and my table becomes full of empty rows (I got 380 addresses in AB, so I expect I got 380 empty rows in table). What am I missing?

Thanks in advance
Robert
_______________________________________________

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


  • Follow-Ups:
    • Re: Why is my NSTableView empty?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: NSMenuItem and images
  • Next by Date: Re: Why is my NSTableView empty?
  • Previous by thread: Re: CALayer + flickering redraw.
  • Next by thread: Re: Why is my NSTableView empty?
  • Index(es):
    • Date
    • Thread