• 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
Re: Accessing a managedObject property from within an accessor of another property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Brad Stone <email@hidden>
  • Date: Tue, 22 Feb 2011 10:45:06 -0500

Yes, all my other classes are prefixed with "SR" since this one.  I haven't gotten back to fixing this.

On Feb 22, 2011, at 10:22 AM, Uli Kusterer wrote:

> 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

References: 
 >Accessing a managedObject property from within an accessor of another property (From: Brad Stone <email@hidden>)
 >Fwd: Accessing a managedObject property from within an accessor of another property (From: Brad Stone <email@hidden>)
 >Re: Accessing a managedObject property from within an accessor of another property (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Accessing a managedObject property from within an accessor of another property
  • Next by Date: Problem opening file
  • Previous by thread: Re: Accessing a managedObject property from within an accessor of another property
  • Next by thread: Re: Accessing a managedObject property from within an accessor of another property
  • Index(es):
    • Date
    • Thread