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 14:50:13 -0400
> it's not getting called at all. Is it because my method is defined in
> category? As I wrote already, I'm able to call my methods from gdb so my
> category is up and running
>
> NSLog(@"%@", [[[ppl arrangedObjects] objectAtIndex:0] lastName]);
>
> as opposed to
> Value (ABPeople.arrangedObjects.lastName)
Okay, so you can call your method from the debugger and you get a
valid last name, right? I think the problem is the category, as you
suspected. My first thought would be that, because you specified the
class name ABPerson, the array controller may not be 'seeing' the
category method. If that were the case, though, you should get an
undefined key error (unless you turned that option off in your
bindings settings panel). I can't see any reason why that wouldn't
work.
Nice problem. :-)
Look to make sure you have not unchecked "Raises for Not Applicable
Keys" (as awkwardly-worded as it is). If you have, check it and try
your luck again. You *should* be getting an exception for the lastName
key if the array controller isn't seeing your category method. In
theory, anyway.
If it *is* checked, I'm afraid I'm out of ideas. Were I working this
alone, my next step would be to simply make my own first class Person
object, then populate my array controller with those instead of the
FrankenPerson category*. ;-)
--
I.S.
* I know this is only fair if the category is the problem. ;-)
_______________________________________________
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