Creates a Bluetooth-based OBEX Session using an incoming RFCOMM channel.
- macOS 10.2+
The channel to use to create a connection to a device.
The selector that gets called when an event occurs on the OBEX Session.
The object that is used to call the above selector.
The reference constant. Pass whatever you wish - it will be returned to you in the selector.
*IMPORTANT NOTE* In Bluetooth framework version 1.0.0, the session returned will NOT be autoreleased as it should be according to objc convention. This has been changed starting in Bluetooth version 1.0.1 and later, so it WILL be autoreleased upon return, so you will need to retain it if you want to reference it later.