有人可以为我澄清这两者之间的语义差异:
self.foo = [NSMutableDictionary dictionaryWithCapacity:theCapacity];
self.foo = [[[NSMutableDictionary alloc] initWithCapacity:theCapacity] autorelease];
可以互换吗?如果不是,它们究竟有何不同。
提前致谢。
干杯,道格
有人可以为我澄清这两者之间的语义差异:
self.foo = [NSMutableDictionary dictionaryWithCapacity:theCapacity];
self.foo = [[[NSMutableDictionary alloc] initWithCapacity:theCapacity] autorelease];
可以互换吗?如果不是,它们究竟有何不同。
提前致谢。
干杯,道格