Runtimemodule Protocol : sig ... endmodule Inspect : sig ... endmodule Objc_type : sig ... endmodule Define : sig ... endmodule Sel : sig ... endmodule Object : sig ... endval selector :
string ->
Runtime__.Type_description.Types.objc_selector Ctypes.structure
Ctypes_static.ptrRegisters a method with the Objective-C runtime system, maps the method name to a selector, and returns the selector value. If the method name has already been registered, this function simply returns the selector.
val string_of_selector :
Runtime__.Type_description.Types.objc_selector Ctypes.structure
Ctypes_static.ptr ->
stringReturns the selector name as string.
module Objc : sig ... endval nil : Objc.objc_object Ctypes.structure Ctypes_static.ptrval alloc :
Objc.objc_object Ctypes.structure Ctypes_static.ptr ->
Objc.objc_object Ctypes.structure Ctypes_static.ptrReturns a new instance of the receiving class.
val _new_ :
Objc.objc_object Ctypes.structure Ctypes_static.ptr ->
Objc.objc_object Ctypes.structure Ctypes_static.ptrAllocates a new instance of the receiving class, sends it an init message, and returns the initialized object.
val init :
Objc.objc_object Ctypes.structure Ctypes_static.ptr ->
Objc.objc_object Ctypes.structure Ctypes_static.ptrImplemented by subclasses to initialize a new object (the receiver) immediately after memory for it has been allocated.
val _copy_ :
Objc.objc_object Ctypes.structure Ctypes_static.ptr ->
Objc.objc_object Ctypes.structure Ctypes_static.ptrReturns the object returned by copyWithZone:
val retain :
Objc.objc_object Ctypes.structure Ctypes_static.ptr ->
Objc.objc_object Ctypes.structure Ctypes_static.ptrIncrements the receiver’s reference count.
val release : Objc.objc_object Ctypes.structure Ctypes_static.ptr -> unitDecrements the receiver’s reference count.
val autorelease : Objc.objc_object Ctypes.structure Ctypes_static.ptr -> unitDecrements the receiver’s retain count at the end of the current autorelease pool block.
val gc_autorelease :
Objc.objc_object Ctypes.structure Ctypes_static.ptr ->
Objc.objc_object Ctypes.structure Ctypes_static.ptrRelease ObjC object when OCaml ptr is garbage collected.
val alloc_object :
string ->
Objc.objc_object Ctypes.structure Ctypes_static.ptrAllocates an object given a class name.
val new_object : string -> Objc.objc_object Ctypes.structure Ctypes_static.ptrAllocates an object and sends it init and gc_autorelease.
val new_string : string -> Objc.objc_object Ctypes.structure Ctypes_static.ptrCreates a new NSString object autoreleased by OCaml's GC.
val msg_send :
Objc.objc_selector Ctypes.structure Ctypes_static.ptr ->
self:Objc.objc_object Ctypes.structure Ctypes_static.ptr ->
args:('a, 'b) Objc_type.tlist ->
return:'b Objc_type.t ->
'aSends a message with a simple return value to an instance of a class.
val msg_super :
Objc.objc_selector Ctypes.structure Ctypes_static.ptr ->
self:
Runtime__.Type_description.Types.objc_object Ctypes.structure
Ctypes_static.ptr ->
args:('a, 'b) Objc_type.tlist ->
return:'b Objc_type.t ->
'aSends a message with a simple return value to the superclass of an instance of a class.
val get_ivar :
'a. string ->
'a Objc_type.t ->
Runtime__.Type_description.Types.objc_object Ctypes.structure Ctypes.ptr ->
'aReturns the value of an ivar reading it directly.
val set_ivar :
'a. string ->
'a ->
'a Objc_type.t ->
Runtime__.Type_description.Types.objc_object Ctypes.structure Ctypes.ptr ->
unitSets the value of an ivar writing it directly.
val get_property :
string ->
'a Objc.typ ->
Objc.objc_object Ctypes.structure Ctypes_static.ptr ->
'aval set_property :
string ->
'a ->
'a Objc.typ ->
Objc.objc_object Ctypes.structure Ctypes_static.ptr ->
unitmodule Property : sig ... endmodule Class : sig ... endmodule Bitmask : sig ... endRepresents a set of options or flags using a single integer value.
module Block_descriptor : sig ... endmodule Block : sig ... endRepresents a single task or unit of behavior. Blocks are Objective-C objects, which means they can be added to collections like NSArray or NSDictionary.
module Method : sig ... endmodule Ivar : sig ... endval set_uncaught_exception_handler :
(Runtime__.Type_description.Types.objc_object Ctypes.structure
Ctypes_static.ptr ->
unit) ->
unitChanges the top-level error handler.
val default_uncaught_exception_handler :
Objc.objc_object Ctypes.structure Ctypes_static.ptr ->
'a