On 16 Sep 2008, at 5:53 pm, Jeshua Lacock wrote:

However, I tried using the valueForKey method as suggested, and I get a message "___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___".

Hrrrm. OK, that seems a bit odd. I dunno why that's happening, - valueForKey: is supposed to be able to find ivars even without accessor methods, though to be honest I've never, ever relied on that fallback behaviour, so it might be better to steer clear of it.

Any suggestions would be appreciated, or if someone could someone point me to a good "accessor method" example or documentation, I would be grateful.


Well, the accessor method I had in mind, in its entirety, is:

- (id)          myOutlet
{
    return MyOutlet;
}


note: by naming things as to their function you'd probably end up with a much more self-descriptive method.


hth,


Graham
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to