Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
DiscRecording callbacks in C++ objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DiscRecording callbacks in C++ objects



Anyone out there incorporating DiscRecording into a C++ object?

I'm having a heck of a time getting a callback to compile in a CodeWarrior class. Within the class, I declare it as:

private:
WaitForBlankMedia( DRNotificationCenterRef, void *, CFStringRef, DRTypeRef, CFDictionaryRef);

and have attempted to get it to compile into functions within that same class via:

DRNotificationCenterAddObserver( notificationCenter, NULL, (void *)WaitForBlankMedia, NULL, device);
DRNotificationCenterAddObserver( notificationCenter, NULL, (void)(DRNotificationCallback)WaitForBlankMedia, NULL, device);
DRNotificationCenterAddObserver( notificationCenter, NULL, (void)(*DRNotificationCallback)WaitForBlankMedia, NULL, device);

and a few other casting combinations, all generating various type errors. Is this a matter of C++ mangling the symbol or I shouldn't be using this callback from an object or I just don't haven't gotten the cast precisely correct?

This may be a C++ F.A.Q., but I couldn't find an easy answer via developer.apple.com or groups.google.com (suprisingly,there's no threads that have "DiscRecording" and "CodeWarrior" together, could I be charting un-navigated territory?).

Thanks for any pointers,
_______________________________________________
discrecording mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/discrecording
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.