• 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
NSPropertyDescription userInfo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPropertyDescription userInfo


  • Subject: NSPropertyDescription userInfo
  • From: "Steve@DotMac" <email@hidden>
  • Date: Sat, 5 Nov 2005 03:10:59 -0600

Folks;

I'm trying to use the 'userInfo' on CoreData Entity Attributes to accomplish 2 things:
1) a friendly name to show the end user
2) a flag for dis/inclusion on some tableViews.


How in the heck do you access this userInfo?
I've tried many permutations around:
NSEntityDescription * x = [[[[managedObjectContext persistentStoreCoordinator] managedObjectModel] entitiesByName] objectForKey:@"X"];
NSLog(@"X=%@",x);
NSLog(@"X PropByName :%@",[x propertiesByName]);
NSLog(@"X PropByName :%@",[x attributesByName])


but I never see the userInfo dictionary. I have verified the model is saved.

Conceptually I can't figure out what methods actually produce the NSPropertyDesction.
The docs simply say that the above produces a dictionary - which it appears to.
Most of the responses characterize themselves as 'AttributeDescription' which is, I believe, a subclass of NSPropertyDescription.
But where is the darn userInfo?


BTW: what is the impact of changing userInfo in a production setting? Where would this be documented?

All of my meager kingdom for some deep sample code...
Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSPropertyDescription userInfo
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Including libcrypto.0.9.7.dylib for backwards compatibility
  • Next by Date: Re: Cocoa-dev Digest, Vol 2, Issue 1560
  • Previous by thread: Re: Including libcrypto.0.9.7.dylib for backwards compatibility
  • Next by thread: Re: NSPropertyDescription userInfo
  • Index(es):
    • Date
    • Thread