Amazon.com Widgets Exercise 9 - How to access the library of songs from MusicCollection
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 19, 2013, 04:47:49 PM
Home Help Search chat Login Register   
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+  Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+  Old Stuff
| |-+  Answers to Exercises
| | |-+  Chapter 15
| | | |-+  Exercise 9 - How to access the library of songs from MusicCollection
Pages: [1]   Go Down
Print
Author Topic: Exercise 9 - How to access the library of songs from MusicCollection  (Read 470 times)
MarkReid
Full Member
***
Posts: 173






« on: February 13, 2010, 06:07:08 AM »

I'm currently trying to have my program add a song to the library part of my MusicCollection class object. The issue I'm having with it is how do I access the library from the Playlist class? I've tried a few things such as trying to create a pointer to the memory the library is stored in through the Playlist class but I couldn't get that working correctly either.

Please help, thanks.
Logged
skochan
Administrator
Hero Member
*****
Posts: 3103







« Reply #1 on: February 13, 2010, 01:42:52 PM »

Mark,

You need to start with your Music Collection.  Think of the way iTunes works:  You add songs to your music library and then to individual playlists.  You can implement that in a couple of different ways.  For example, you can check to make sure that any song added to a playlist is also in the collection, and add it if it's not there.   

Cheers,

Steve Kochan
Logged
Pages: [1]   Go Up
Print
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.