Re: Accessing a managedObject property from within an accessor of another property
Re: Accessing a managedObject property from within an accessor of another property
- Subject: Re: Accessing a managedObject property from within an accessor of another property
- From: Uli Kusterer <email@hidden>
- Date: Tue, 22 Feb 2011 16:22:57 +0100
On 22.02.2011, at 16:13, Brad Stone wrote:
> FYI - my managedObject is defined as such:
>
> @interface Note : NSManagedObject
> {
> }
That's probably not your problem, but just to eliminate it as a cause: You should prefix your class names. Apple has been known to create internal private classes with un-prefixed names (like "Account"). And once one class with a particular name has been loaded, requests to load any other class of the same name will be ignored. Anyone trying to create an instance of such a class will get the first class that was loaded, which is probably something completely different.
So I recommend choosing your own three-character prefix (BST?), just in case there's some private Apple class named "Note".
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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