tags:

views:

41

answers:

1

At the moment I am just learning Objective-C, one thing that I have noticed is two different notations for defining an instance of a Class. (i.e.)

EngineClass *engine;
engine = [EngineClass new];

AND

EngineClass *engine;
engine = [[EngineClass alloc] init];

are they essentially the same?

cheers -gary-

+4  A: 

Duplicate of Obj-C: Why is alloc init used instead of new

Paul Dixon
thank you, I did a search but must have missed that, my mistake.
fuzzygoat