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 skip to the last one, since the answer to it makes the others
moot. :-)


> 3. Can one mix C and Objective-C in the same file?


Yes. Objective-C is a superset of C, so C functions can be called directly
from Objective-C.


> Maybe I can keep the Objective-C stuff I already have done and just write
> the c code for QT integration that I need?


Yep.


> If I pass in an NSString from AppleScript do I need to convert it a
> C-String?


Assuming the C function to which you're passing it was declared as taking a
char*, i.e. a C string, then yes, you'll have to convert it. NSString's
-cStringUsingEncoding: will do that for you.

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to