(pytype, objcclass)
Register a conversion from an Objective-C class to an :class:`ObjCInstance` subclass.

    After a call of this function, when Rubicon wraps an Objective-C object that is an instance of ``objcclass``
    (or a subclass), the Python object will have the class ``pytype`` rather than :class:`ObjCInstance`.
    See :func:`type_for_objcclass` for a full description of the lookup process.

    .. warning::

        This function should only be called if no instances of ``objcclass`` (or a subclass)
        have been wrapped by Rubicon yet. If the function is called later, it will not fully take effect:
        the types of existing instances do not change, and mappings for subclasses of ``objcclass`` are not updated.
Register a conversion from an Objective-C class to an :class:`ObjCInstance` subclass.
Register a conversion from an Objective - C class to an : class : ObjCInstance subclass .
def register_type_for_objcclass(pytype, objcclass):
    """Register a conversion from an Objective-C class to an :class:`ObjCInstance` subclass.

    After a call of this function, when Rubicon wraps an Objective-C object that is an instance of ``objcclass``
    (or a subclass), the Python object will have the class ``pytype`` rather than :class:`ObjCInstance`.
    See :func:`type_for_objcclass` for a full description of the lookup process.

    .. warning::

        This function should only be called if no instances of ``objcclass`` (or a subclass)
        have been wrapped by Rubicon yet. If the function is called later, it will not fully take effect:
        the types of existing instances do not change, and mappings for subclasses of ``objcclass`` are not updated.
    """

    if isinstance(objcclass, ObjCClass):
        objcclass = objcclass.ptr

    _type_for_objcclass_map[objcclass.value] = pytype
def register_type_for_objcclass ( pytype , objcclass ) : if isinstance ( objcclass , ObjCClass ) : objcclass = objcclass . ptr _type_for_objcclass_map [ objcclass . value ] = pytype