Module Runtime.Property

val get : string -> 'a Objc_type.t -> Objc.objc_object Ctypes.structure Ctypes_static.ptr -> 'a

Get the value of a property.

val set : string -> 'a -> 'a Objc_type.t -> Objc.objc_object Ctypes.structure Ctypes_static.ptr -> unit

Set the value of a property.

val getter : typ:'a Objc.typ -> enc:string -> string -> Define.method_spec'

Getter for non-object values.

val setter : ?notify_change:bool -> typ:'a Objc.typ -> enc:string -> string -> Define.method_spec'

Setter for non-object values.

val obj_getter : typ: Runtime__.Type_description.Types.objc_object Ctypes.structure Ctypes_static.ptr Objc.typ -> enc:string -> string -> Define.method_spec'

Getter for object values.

val obj_setter : ?assign:bool -> ?copy:bool -> ?notify_change:bool -> typ:Objc.objc_object Ctypes.structure Ctypes_static.ptr Objc.typ -> enc:string -> string -> Define.method_spec'

Setter for object values.

val accessor_methods : 'a. ?assign:bool -> ?copy:bool -> ?readonly:bool -> ?notify_change:bool -> string -> 'a Objc_type.t -> Define.method_spec' list

Define a property getter and setter (unless readonly is true).

val define : ?retain:bool -> ?copy:bool -> ?readonly:bool -> ?notify_change:bool -> string -> 'a Objc_type.t -> Define.prop_spec'

Define a property with an ivar, getter, and setter (unless readonly is true).