Re: C/Obj-C API Confusion
Re: C/Obj-C API Confusion
- Subject: Re: C/Obj-C API Confusion
- From: "J. Todd Slack" <email@hidden>
- Date: Wed, 10 Sep 2008 13:05:42 -0700
Hi,
Well, I need to take a chunk out of an .mp3 and save just that chunk
as a .WAV.
There seems to be a bug that is rather long standing that an Apple
Engineer said the C-API might be my best bet.
-Jason
On Sep 10, 2008, at 12:50 PM, I. Savant wrote:
On Wed, Sep 10, 2008 at 3:44 PM, J. Todd Slack
<email@hidden> wrote:
I had a conversation with an Apple Engineer a few days ago and he
recommended that I switch to the Quicktime C API rather than the
Objective-C
api for what I needed to do.
Okay, there's probably no "Cocoa way" to do what you want to do.
1. Currently I have a .m and I use NSTask, NSString, etc. I would
need to
change these for C, correct? What is NSTask in the C API?
2. Am I confused?
Yes. NSTask and NSString are part of the Cocoa frameworks (the API).
Cocoa is written in Objective-C (the language). A straight C string
and fork() are your friends.
3. Can one mix C and Objective-C in the same file? Maybe I can keep
the
Objective-C stuff I already have done and just write the c code for
QT
integration that I need?
It's impossible to say because you haven't given any real details
about a) what you're trying to accomplish with your app using
QuickTime, b) what parts of QuickTime you need to use, and c) example
code of your current approach.
--
I.S.
_______________________________________________
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