MonobjcMonobjc Documented Class Library
New Method
NamespacesMonobjc.FoundationNSObjectNew()()()()

Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object.

Original signature is '+ (id)new'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static Id New()
Public Shared Function New As Id
public:
static Id^ New()
Return Value
A new instance of the receiver.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)