Re: QTTime Display
Re: QTTime Display
- Subject: Re: QTTime Display
- From: "tahome izwah" <email@hidden>
- Date: Thu, 20 Nov 2008 22:22:09 +0100
(a) look at
NSString -componentsSeparatedByString
NSArray -componentsJoinedByString
(b) multiply hours, minutes etc. with 60 where appropriate
(c) NSDate +dateWithTimeIntervalSinceNow
HTH
--th
2008/11/20 Barry Fawthrop <email@hidden>:
> Hi All
>
> I'm trying to display the duration of an Audio File
>
> So far I have
>
> QTTime duration = [mMovie duration];
> NSString *length = QTStringFromTime(duration);
> [lengthField setStringValue: length];
>
> Sadly this displays days:hours:minutes:seconds.frame/...
>
> How would one get just (a) hours:minutes:seconds
> and then convert that into (b) an Integer of in seconds
> and (c) into a dateValue?
>
>
> Thanks in advance
>
> Barry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden