function pointer in Cocoa
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.