Re: Why is my NSTableView empty?
Re: Why is my NSTableView empty?
- Subject: Re: Why is my NSTableView empty?
- From: "I. Savant" <email@hidden>
- Date: Mon, 28 Apr 2008 16:09:29 -0400
> This suggests to me that ABRecord (the superclass of ABPerson, the
> documentation says) may override valueForKey: with new behavior that doesn't
> call custom accessors or return anything useful. If that's so, I can only
> speculate that it's to prevent you using valueForKey when you're "supposed"
> to use valueForProperty instead.
>
> Does that sound plausible?
Quite plausible.
That only strengthens my assertion that using your own home-grown
object will work around this problem. If this is indeed the case
(-valueForKey:... being overridden to do strange things), probably the
easiest design for your new Person object would be to simply have a
single iVar (the person's record ID), then add accessors for the
fields you're interested in. Your accessors would then access the AB
record using the ID stored in your iVar and provide the right answer.
--
I.S.
_______________________________________________
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