• 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: C/Obj-C API Confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >C/Obj-C API Confusion (From: "J. Todd Slack" <email@hidden>)
 >Re: C/Obj-C API Confusion (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: menu with checkbox
  • Next by Date: Accessibility Voiceover questions
  • Previous by thread: Re: C/Obj-C API Confusion
  • Next by thread: Re: C/Obj-C API Confusion
  • Index(es):
    • Date
    • Thread