Allocates and initializes a foreign Objective-C object.
objc
alloc-init-object class => pointer
class⇩ |
A string or Objective-C class pointer. |
pointer⇩ |
A foreign pointer to new Objective-C object. |
The function alloc-init-object
calls the Objective-C "alloc"
class method for class and then calls the "init"
instance method to return pointer. This is equivalent to doing:
(invoke (invoke class "alloc") "init")
LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 01 Dec 2021 19:38:32