• 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: Coredata schema question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coredata schema question.


  • Subject: Re: Coredata schema question.
  • From: Scott Ellsworth <email@hidden>
  • Date: Wed, 1 Jun 2005 11:20:25 -0700

On May 31, 2005 at 10:14 PM, Scott Stevenson wrote:

On May 31, 2005, at 9:09 PM, James Andrews wrote:


My first question. I have a Categories Entity. I want to be able to have categories that are children of categories. I am not sure how to build a relationship for this. Suggestions on how to do it, and explanations on why you would do it that way would greatly appreciated.

Be warned that since 'category' is a reserved word to most ObjC programmers, you may face some confusion when you refer to a 'Category'.


Just create a relationship on Category with a target entity of Category. It will point to itself.

I have done things like this, and it worked well.

While doing this design, keep the iTunes playlist in mind, and note how they did playlists. Following that UI may not be perfect, but it will not confuse your users. Smart playlists appear to be best done via fetched properties.

Scott
_______________________________________________
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: Coredata schema question.
      • From: mmalcolm crawford <email@hidden>
    • Re: Coredata schema question.
      • From: James Andrews <email@hidden>
  • Prev by Date: Re: expected primary-expression before '*' token ?
  • Next by Date: Re: Coredata schema question.
  • Previous by thread: Re: Coredata schema question.
  • Next by thread: Re: Coredata schema question.
  • Index(es):
    • Date
    • Thread