Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 895977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:39:01+00:00 2026-05-15T14:39:01+00:00

I am working on this core data app, and im not exactly shure how

  • 0

I am working on this core data app, and im not exactly shure how to do what i want.

Right now my first view displays a list of playlists. I can add a playlist to the list. The plus sign pops up addViewController. From here i can add a name to the playlist, now comes the tricky part for me..

I want to be able to select songs from a big list i have.

How do i set up this models?

I was thinking something like this:

|Entity:           Playlist |                        |Entity:           Song      |
|Attribute:       name   |                        |Attribute:       name     |
|Relationship: songs  |<<————->>|Relationship: playlists |

I want songs to be in more than one playlist, sometimes more than once in a playlist,
and I want to be able to add more songs to the database.

Anyone know some sample code that does this sort of thing, or give me some hints at how to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T14:39:02+00:00Added an answer on May 15, 2026 at 2:39 pm

    Adding a song to a playlist more than once is a bit tricky.
    First of all within a relationship you can define only one relation between two objects.
    Second you need to define some kind of sort index for multiple positions within a playlist

    I would recommend adding another entity handling the relation between song and playlist (see image below, the sort index in Playlist is optional)
    Playlist – SongInPlaylist – Song http://www.freeimagehosting.net/uploads/4a9b2fbea4.png

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Core Data and I'm working on my first personal iOS app.
This is working fine in core php, but not in magento. $party_payment = new
I have been working on a Core Data iOS app that works perfectly through
I am working on an app that uses Core Data as its backend for
I have a Core Data app with a fairly simple data model. I want
I'm working on a Core Data app (for iPhone 3.0, though I don't think
I am using core data in my app. My app was working fine.. I
I am working on an iphone app that uses core data. The data includes
I am working on a core data app with three20. I have a specific
I have been working with Core Data in an iPad app and I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.