• 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: Efficient XML loading [continuation of NSString from mapped NSData thread]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Efficient XML loading [continuation of NSString from mapped NSData thread]


  • Subject: Re: Efficient XML loading [continuation of NSString from mapped NSData thread]
  • From: Matt Gough <email@hidden>
  • Date: Wed, 14 May 2008 17:08:37 +0200


On 14 May 2008, at 16:52, Keith Duncan wrote:

The only problem however is that iTunes periodically replaces this file, if this were to happen whilst I have the original mapped, would my app crash? Essentially, whilst I have the file open, will it remain readable?


Well, if iTunes is already running, why don't you just do it via Scripting Bridge? Relying on the XML format of the iTunes library staying the same for all future versions of iTunes is going to be more troublesome than the worries you have of the file being overwritten. If you want info out of iTunes, then iTunes is the best thing to ask (via Scripting bridge). The info will be up-to-date and your app will also be able to pick up live changes the user might be making to the playlists. If the main focus of your app is some integration with iTunes, then I don't think your users will mind if iTunes needs to be running. You also don't need to worry yourself about the location of 'iTunes Music Library.xml' - Mine exists on a volume connected to an Airport Extreme, not in ~/Music/iTunes Music/

Matt


_______________________________________________

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: Efficient XML loading [continuation of NSString from mapped NSData thread]
      • From: Jens Alfke <email@hidden>
References: 
 >Efficient XML loading [continuation of NSString from mapped NSData thread] (From: Keith Duncan <email@hidden>)

  • Prev by Date: Re: Create NSStrings from a mapped NSData object - safe?
  • Next by Date: Re: Bypassing Interface Builder
  • Previous by thread: Re: Efficient XML loading [continuation of NSString from mapped NSData thread]
  • Next by thread: Re: Efficient XML loading [continuation of NSString from mapped NSData thread]
  • Index(es):
    • Date
    • Thread