ADC Home > Reference Library > Technical Q&As > Legacy Documents > Carbon >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Closing PPC ports


Q: I have two apps that communicate with Apple Events. When I call PPCBrowser to bring up the Program Linking dialog box, I'd like to filter the list of Macs shown only to Macs running my program. However, since the Apple Event Manager opens the PPC port for communication with other systems, my app can't specify an NBP type to pass as theLocNBPType parameter to PPCBrowser. Is there a workaround?

A: The routines AddPPCNBPAlias and RemoveNBPAlias in the file AppleTalk.c in DTS.Lib should help you accomplish your goal of filtering to only systems that are running your application. The complete path to AppleTalk.c on the November 1994 Developer CD is:

Dev.CD Nov 94:Sample Code:AppsToGo:DTS.Lib:AppleTalk.c

The sample Kibitz uses AddPPCNBPAlias and RemoveNBPAlias to allow filtering to only systems that are running a copy of Kibitz, so you can use the Kibitz source code as an example.

[May 01 1995]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.