---
title: new
framework: objectivec
role: symbol
role_heading: Type Method
path: objectivec/nsobject-swift.class/new
---

# new

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

## Declaration

```occ
+ (instancetype) new;
```

## Return Value

Return Value A new instance of the receiver.

## Discussion

Discussion This method is a combination of alloc and init(). Like alloc, it initializes the isa instance variable of the new object so it points to the class data structure. It then invokes the init() method to complete the initialization process.

## See Also

### Creating, Copying, and Deallocating Objects

- [alloc](objectivec/nsobject-swift.class/alloc.md)
- [allocWithZone:](objectivec/nsobject-swift.class/allocwithzone:.md)
- [init()](objectivec/nsobject-swift.class/init().md)
- [copy()](objectivec/nsobject-swift.class/copy().md)
- [copyWithZone:](objectivec/nsobject-swift.class/copywithzone:.md)
- [mutableCopy()](objectivec/nsobject-swift.class/mutablecopy().md)
- [mutableCopyWithZone:](objectivec/nsobject-swift.class/mutablecopywithzone:.md)
- [dealloc](objectivec/nsobject-swift.class/dealloc.md)
