• 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
calling carbon functions from Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: calling carbon functions from Cocoa
      • From: Matthew Formica <email@hidden>
  • Prev by Date: Recognising multiple selection dropped on app icon
  • Next by Date: Re: Closing Drawers
  • Previous by thread: Recognising multiple selection dropped on app icon
  • Next by thread: Re: calling carbon functions from Cocoa
  • Index(es):
    • Date
    • Thread