• 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
Formatting integer value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Formatting integer value


  • Subject: Formatting integer value
  • From: RenĂ© Korthaus <email@hidden>
  • Date: Mon, 14 Feb 2005 14:02:27 +0100

Hi everybody,

i have a problem: I read an integer value from an xml file (plist format) which is the duration of a song.
The formatted integer value is like "325407", where 325 are seconds and 407 are milliseconds. Now i want to make a 3:25 string out of it to display the duration of that song in a tableview. I cannot figure out how to drop the 407ms off that integer value.


The xml file I'm reading from is the ITunes Music Library.xml file, so if anywhone from iLife developement team is on the list, tell me how ITunes does this... ;-D

Thanks for your answers,
Regards René Korthaus
-------------------------------------------------------------
The signature is currently on vacations.
_______________________________________________
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: Formatting integer value
      • From: Sherm Pendley <email@hidden>
    • Re: Formatting integer value
      • From: Charlton Wilbur <email@hidden>
  • Prev by Date: Re: A intractable socket bind problem.
  • Next by Date: Nimoy S Johnson is out of the office.
  • Previous by thread: Re: Newbie
  • Next by thread: Re: Formatting integer value
  • Index(es):
    • Date
    • Thread