Quelqu'un pourrait clarifier pour moi la différence sémantique entre les deux:Cocoa-Touch. Quelle est la différence sémantique entre les méthodes d'initialisation de la classe init alloc/init?
self.foo = [NSMutableDictionary dictionaryWithCapacity: theCapacity];
self.foo = [[[NSMutableDictionary alloc] initAvecCapacité: laCapacité] autorelease];
Les interchangeables? Sinon, comment exactement ils diffèrent.
Merci d'avance.
Cheers, Doug