Re: calling carbon functions from Cocoa
Re: calling carbon functions from Cocoa
- Subject: Re: calling carbon functions from Cocoa
- From: Matthew Formica <email@hidden>
- Date: Mon, 08 Apr 2002 11:21:03 -0700
That should work. I bet your resource file got hosed somehow - open up your
built application, find the resource file, and check the size. Perhaps the
resource fork of the file got stripped out by mistake.
- Matthew
On 4/8/02 12:56 AM, "Ruben Smits" <email@hidden> wrote:
>
Hi,
>
>
How do I use Carbon-functions within a Cocoa-project?
>
I put the Carbon-framework in my project and included the
>
<Carbon/Carbon.h> in top of my file.
>
I found an example from Apple showing how to do so (alerts in Cocoa,
>
Carbon and C++) and tried to test this in a very simple project.
>
>
I created the following method:
>
>
- (IBAction)sayHello:(id)sender
>
{
>
Alert(128,NULL); //This calls into Carbon
>
NSBeep();
>
}
>
>
When I press a button, I' expect an alert to show. I do hear the beep,
>
but there's no alert. While debugging it seems the Alert-function is
>
executed normal. The resource is included in the project as well.
>
>
What am I missing here? What action do I have to take, to be able to use
>
Carbon functions in Cocoa?
>
Thanks!
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
>
--
Matthew Formica
DTS Engineer - Developer Tools and Cocoa
Apple Computer, Inc.
email@hidden
Mac OS X Development Tools:
http://developer.apple.com/tools/
Project Builder on the web:
http://developer.apple.com/tools/projectbuilder/
Project Builder FAQ:
http://developer.apple.com/tools/projectbuilder/faq.html
Cocoa docs on the web:
http://developer.apple.com/techpubs/macosx/Cocoa/CocoaTopics.html
Cocoa sample code:
http://developer.apple.com/samplecode/Sample_Code/Cocoa.htm
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.