-2
如果不需要的垃圾收集:Objective-C的垃圾收集
- (void) awakeFromNib{
//Create the NSStatusBar and set its length
statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength] retain];
...
我一定要釋放?如果我這樣做,那會是在一個finalize方法或dealloc方法?
如果需要垃圾回收,那麼上面的保留呼叫是否會被自動忽略?