Topic
1 reply Latest Post - ‏2014-03-11T16:33:36Z by Govind_Baliga
Govind_Baliga
Govind_Baliga
7 Posts
ACCEPTED ANSWER

Pinned topic IE10 browser - PBCK test

‏2014-03-11T16:31:59Z |
this is a test on IE10 browser.

 

  • This reply was deleted by Govind_Baliga 2014-03-11T19:10:55Z. Reason for deletion: testing delete.
  • Govind_Baliga
    Govind_Baliga
    7 Posts
    ACCEPTED ANSWER

    Re: IE10 browser - PBCK test

    ‏2014-03-11T16:33:36Z  in response to Govind_Baliga
    #import <Foundation/Foundation.h>
     
    // When the app is sandboxed it can't install the helper tool or even talk to it directly. 
    // In that case it uses an non-sandboxed XPC server to do that work.
     
    #define kXPCServiceName @"com.example.apple-samplecode.EBAS.XPCService"
     
    @protocol XPCServiceProtocol
     
    @required
     
    - (void)installHelperToolWithReply:(void(^)(NSError * error))reply;
        // Called by the app to install the helper tool.
     
    - (void)setupAuthorizationRights;
        // Called by the app at startup time to set up our authorization rights in the 
        // authorization database.
     
    - (void)connectWithEndpointAndAuthorizationReply:(void(^)(NSXPCListenerEndpoint * endpoint, NSData * authorization))reply;
        // Called by the app to get an endpoint that's connected to the helper tool. 
        // This a also returns the XPC service's authorization reference so that 
        // the app can pass that to the requests it sends to the helper tool.  
        // Without this authorization will fail because the app is sandboxed.
     
    @end
     
    // The following is the interface to the class that implements the XPC service.
    // It's called by the XPC service's main() function, but not by the app directly.
     
    @interface XPCService : NSObject
     
    - (id)init;
     
    - (void)run;
     
    @end