Stone Design Stone Design
News Download Buy Software About Stone
software

Features
Installation
Quick Start
Loading
    Automatic
    File Types
    Combining Files
    Making a Poster
Options
Preferences
    Misc
    
Watched Folders
    PDF
    Hidden
Font Management
Job Management
View EPS Everywhere
Support
Developer's API
Developer’s API - 3
Call the Engine, cont.

#define USAGE NSLog(@"This Print Filter requires PStill for Mac OS X by Stone Design and Frank Siegert. Visit www.stone.com to download and full information.")


#define WAKE_UP_WAIT    5

static id<PStillVended> lookupPStillDOServer(void) {
port_t sendMachPort;
NSDistantObject *rootProxy = nil;
id<PStillVended> result;

// First, try look up PStill's DO object in the bootstrap server.
// This is where the app registers it by default.
if ((BOOTSTRAP_SUCCESS == bootstrap_look_up(bootstrap_port, (char *)([PStillFilterServer cString]), &sendMachPort)) && (PORT_NULL != sendMachPort)) {
NSConnection *conn = [NSConnection connectionWithReceivePort:[NSPort port] sendPort:[NSMachPort portWithMachPort:sendMachPort]];
rootProxy = [conn rootProxy];
}

// If the previous call failed, the following might succeed if the user
// logged in is running Terminal with the PublicDOServices user default
// set.
if (!rootProxy) {

PreviousTopIndexNext
©1997-2005 Stone Design top