LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual > 2 Objective-C Reference

NextPrevUpTopContentsIndex

alloc-init-object

Function
Summary

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:

(invoke (invoke class "alloc") "init")
See also

invoke


LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex