• 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
Locally Saving Data Acquired by my Cocoa App?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Locally Saving Data Acquired by my Cocoa App?


  • Subject: Locally Saving Data Acquired by my Cocoa App?
  • From: Darren Minifie <email@hidden>
  • Date: Mon, 2 Mar 2009 11:44:05 -0800

Hello everyone

I am building an application that requires me to collect data from services
like Last.fm and Pandora etc.  I am grabbing xml data about each song, as
well as small thumbnails for the album art.   I want to store this data
locally so I don't need to make another batch of requests each time my app
is run.  I originally thought about putting this data in the NSUserDefaults
database, as that would probably be the easiest thing to do at the moment.
Would there be any potential pitfalls to this approach?  My thinking is that
it may be the case that a lot of data would go into the database if every
track were to have some data and an album photo associated with it.  Are
there performance implications for putting a ton of stuff in the
UserDefaults db?

On the other hand, I may not want to have every piece of album art loaded
into memory at once. It may be better to save album art in a folder
somwhere.  What is the accepted way to create a folder on the user's machine
to support an application?  If anybody could point me at a resource that
explains how to install such directories on a users computer and how to
unintall them when the user decides to remove the application would be most
helpful.

Thank you.

PS: I'm aware of the album art folder in the iTunes directory, but I will
require something a bit different for my purpose.

--
Darren Minifie
Graduate Studies: Computer Science
www.myavalon.ca
www.ohsnapmusic.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: Locally Saving Data Acquired by my Cocoa App?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: NSTreeController, NSOutlineView and Core Data (again)
  • Next by Date: Query Active Directory
  • Previous by thread: Re: NSTreeController, NSOutlineView and Core Data (again)
  • Next by thread: Re: Locally Saving Data Acquired by my Cocoa App?
  • Index(es):
    • Date
    • Thread