Re: Rendevous/Zeroconfig with Carbon CFM
Re: Rendevous/Zeroconfig with Carbon CFM
- Subject: Re: Rendevous/Zeroconfig with Carbon CFM
- From: Dan Crevier <email@hidden>
- Date: Thu, 16 May 2002 10:06:25 -0700
On 5/16/2002 9:38 AM, "Dean Dauger" <email@hidden> wrote:
>
Hi All,
>
>
I've written a Carbon CFM app using CW Pro 6, and I'd like to be able to
>
call CFNetServices so I can incorporate the new features into my code.
>
(Obviously, I'll check the OS version, etc.) I've been able to use Bundles
>
to access the right routines (CFNetServiceRegister,
>
CFNetServiceScheduleWithRunLoop, etc.) in Jaguar, but there are still a few
>
details missing. For example, I think I need to specify a runLoopMode using
>
one of these:
>
>
CF_EXPORT const CFStringRef kCFRunLoopDefaultMode;
>
CF_EXPORT const CFStringRef kCFRunLoopCommonModes;
>
>
However, I can't directly #include CFRunLoop.h or simply paste in these
>
references because CW's linker can't find these extern's. CarbonLib 1.5
>
doesn't seem to know about CFRunLoop.h or any of its pieces.
>
>
Is there another way to access these const's? Or is there entirely another,
>
better way to access CFNetServices from Carbon CFM?
You can just use CFSTR("kCFRunLoopDefaultMode"). I assume
kCFRunLoopCommonModes works the same way, but I haven't used it.
Dan
_______________________________________________
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.