Re: C/Obj-C API Confusion

2008-09-10 Thread Charles Srstka
On Sep 10, 2008, at 4:50 PM, Nick Zitzmann wrote: If you're trying to convert an MP3 to WAV, then you probably ought to use the AudioToolbox instead of QuickTime. Some more setup will be necessary, but it's more future-proof. Indeed, particularly since the C API for QuickTime is, AFAIK, not

Re: C/Obj-C API Confusion

2008-09-10 Thread Charles Steinman
--- On Wed, 9/10/08, J. Todd Slack <[EMAIL PROTECTED]> wrote: > So if I have an objective C class, how can I call a .c > class? and pass > my arguments from the objective-c class? C doesn't have classes. That's almost the entire difference between it and Objective-C. Have you called NSLog? NSM

Re: C/Obj-C API Confusion

2008-09-10 Thread Nick Zitzmann
On Sep 10, 2008, at 3:43 PM, J. Todd Slack wrote: So passing a Movie (Which I have created), not sure what to pass in for FSSpec yet. FSSpecs are data structures created by the Carbon File Manager. You'll find out more about them in the documentation by the same name. Keep in mind that

Re: C/Obj-C API Confusion

2008-09-10 Thread J. Todd Slack
Hi Jason, So if I have an objective C class, how can I call a .c class? and pass my arguments from the objective-c class? What kind of ".c class"? And what kind of arguments? It might help to give the prototype of some of the functions that you want to call in the QTKit, or at least the nam

Re: C/Obj-C API Confusion

2008-09-10 Thread Jason Coco
On Sep 10, 2008, at 17:31 , J. Todd Slack wrote: Hi Sherm, So if I have an objective C class, how can I call a .c class? and pass my arguments from the objective-c class? What kind of ".c class"? And what kind of arguments? It might help to give the prototype of some of the functions tha

Re: C/Obj-C API Confusion

2008-09-10 Thread J. Todd Slack
Hi Sherm, So if I have an objective C class, how can I call a .c class? and pass my arguments from the objective-c class? -Jason On Sep 10, 2008, at 12:56 PM, Sherm Pendley wrote: On Wed, Sep 10, 2008 at 3:44 PM, J. Todd Slack <[EMAIL PROTECTED] > wrote: I had a conversation with an Ap

Re: C/Obj-C API Confusion

2008-09-10 Thread J. Todd Slack
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,

Re: C/Obj-C API Confusion

2008-09-10 Thread Ken Thomases
On Sep 10, 2008, at 2:44 PM, J. Todd Slack 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. I have a few questions. 1. Currently I have a .m and I use NSTask, N

Re: C/Obj-C API Confusion

2008-09-10 Thread Sherm Pendley
On Wed, Sep 10, 2008 at 3:44 PM, J. Todd Slack < [EMAIL PROTECTED]> 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. > > I have a few questions. Okay - I'll s

Re: C/Obj-C API Confusion

2008-09-10 Thread Andrew Farmer
On 10 Sep 08, at 12:44, J. Todd Slack wrote: 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? Irrelevant; see below. (For reference, however, a common equivalent to NSTask is popen().) 2. Am I confused? Y

Re: C/Obj-C API Confusion

2008-09-10 Thread I. Savant
On Wed, Sep 10, 2008 at 3:44 PM, J. Todd Slack <[EMAIL PROTECTED]> 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 d

C/Obj-C API Confusion

2008-09-10 Thread J. Todd Slack
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. I have a few questions. 1. Currently I have a .m and I use NSTask, NSString, etc. I would need to change these for C