![]() |
NSLURLFilterProcPtr |
||||
Header: | NSL.h | Carbon status: | Supported | |
When you call NSLStandardGetURL to display the Select a Service dialog box that allows the user to specify the services to search for and the neighborhoods in which to search, you can provide a callback routine that filters the search results.
typedef Boolean(* NSLURLFilterProcPtr) ( char *url, Str255 displayString );
You would declare your function like this if you were to name it MyNSLURLFilterCallback:
Boolean MyNSLURLFilterCallback ( char *url, Str255 displayString );
A pointer to a string containing the URL to filter.
A value of type Str255. If your filter callback routine returns TRUE, it could set displayString to a value that you want to be displayed in the directory listing part of the Select a Service dialog box. By default, any data in a URL that follows the tag ?NAME= is for display purposes only and is dropped from the url that is returned to the calling application.
Only those results that pass through your filter callback routine are displayed in the Directory list area of the Select a Service dialog box.
© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)