简体   繁体   中英

Mix NSXPCConnection and xpc C API

I am working with XPC services using NSXPCConnection wrapper, and since the Objective-C wrapper can't handle IOSurfaceRef objects, I would like to make some direct functions calls to the C API defined in xpc.h. But I can't find a way to retrieve the underlying xpc_connection_t reference (as I can see in NSXPCConnection.h, there is a private ivar called _xconnection that could be the reference I need). Am I missing something stupid, or can't the Objective-C wrapper and the C API simply be used together?

不,但是XPCKit提供了这种转换机制,并且与10.7兼容。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM