calling carbon functions from Cocoa
calling carbon functions from Cocoa
- Subject: calling carbon functions from Cocoa
- From: Ruben Smits <email@hidden>
- Date: Mon, 8 Apr 2002 09:56:54 +0200
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.