Allocates and initializes a foreign Objective-C object.
Package
objc
Signature
alloc-init-object
class
=>
pointer
Arguments
class
A string or Objective-C class pointer.
Values
pointer
A foreign pointer to new Objective-C object.
Description
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: