What is responsible for releasing NSWindowController objects?

后端 未结 2 1093
情深已故
情深已故 2021-01-14 20:06

Lets say I display a window like so:

[[TBAddTaskWindowController new] showWindow:self];

Where is the TBAddTaskWindowController o

2条回答
  •  春和景丽
    2021-01-14 20:52

    The same code that instantiated the window controller by sending the new message to the class, just the same as if it had done it by alloc and init messages.

提交回复
热议问题