• 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
function pointer in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

function pointer in Cocoa


  • Subject: function pointer in Cocoa
  • From: Dingcai Cao <email@hidden>
  • Date: Thu, 3 Jun 2004 10:35:51 -0500

Hi, there,
Is there anyone having experience using function pointer in Cocoa? I am currently developing an application for my experiment using OSX's CoreAudio. In particular, there is a function AudioDeviceStart, which calls a C-type function pointer (*AudioDeviceIOProc). To utilize this function, I create a class called "SoundCard" (I want fully control of the soundcard, Revolution 7.1). The question I have is, how to handle this function pointer? Can I declare it as the instance variable of "SoundCard" class? If so, how and where to define the function? Since the function needs to be implemented in C? I could make the program working if I put the definition of the C-function in the SoundCard.m file. However, it is really ugly. Any idea?
Ding
_______________________________________________
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: function pointer in Cocoa
      • From: "Louis C. Sacha" <email@hidden>
    • Re: function pointer in Cocoa
      • From: Wade Tregaskis <email@hidden>
  • Prev by Date: Re: Feeding NSUnarchiver bad data can cause crash
  • Next by Date: Re: Ugly bug in Foundation, beware!
  • Previous by thread: Re: Problems linking a standalone Java Cocoa app
  • Next by thread: Re: function pointer in Cocoa
  • Index(es):
    • Date
    • Thread