Re: Carbon CFM callbacks for CFNetServices
Re: Carbon CFM callbacks for CFNetServices
- Subject: Re: Carbon CFM callbacks for CFNetServices
- From: "Dean Dauger" <email@hidden>
- Date: Tue, 21 May 2002 07:10:47 -0700
>
Check out the CFMMachOCFM example. I *believe* it can be found in the Carbon
>
SDK.
Hi,
Thanks! That does work. The code isn't crashing now that I use the
MachOFunctionPointerForCFMFunctionPointer() routine, and I'm successfully
seeing registrations and deregistrations via the browse mechanism just fine.
You were correct that the code was present in the Sample Code of the
CarbonLib 1.5 SDK. Thanks for the tip!
I do have a concern about this mechanism though. It looks to me like that
code creates a UPP by manually constructing machine language (as opposed to
a standardized API call blessed by Apple). Is that safe to do? That is,
can I depend on this mechanism working in current and future versions of OS
X?
Thanks!
Dean
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.