• 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: -attributeKeys and Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -attributeKeys and Core Data


  • Subject: Re: -attributeKeys and Core Data
  • From: Daniel DeCovnick <email@hidden>
  • Date: Mon, 2 Apr 2007 18:37:59 -0700

Exactly what I was looking for. Thanks!

I imagine then that this would work?:

NSArray *relationshipKeys = [[[[self valueForKey:relationship] entity] attributesByName] allKeys];

-Dan

On Apr 2, 2007, at 3:55 PM, Jim Correia wrote:

On Apr 2, 2007, at 6:46 PM, Daniel DeCovnick wrote:

Question: does Core Data set up NSClassDescriptions for Entities that do not have custom classes,

There is a 1 to 1 mapping of Class to NSClassDescription. NSManagedObject can be used as the runtime class for multiple entities; therefore NSClassDescription isn't suited to this problem.


If not, how do I get the same effect as the sample code at the bottom of this email?

NSEntityDescription should provide you with all the information you need to do this type of introspection.


Jim

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >-attributeKeys and Core Data (From: Daniel DeCovnick <email@hidden>)
 >Re: -attributeKeys and Core Data (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Adding delegate connections to NSButton
  • Next by Date: Re: NSDateFormatter weekdaySymbols
  • Previous by thread: Re: -attributeKeys and Core Data
  • Next by thread: NSDateFormatter weekdaySymbols
  • Index(es):
    • Date
    • Thread