about memory
about memory
- Subject: about memory
- From: "Chong Hiu Pun" <email@hidden>
- Date: Thu, 25 Jul 2002 11:23:22 +0800
In using NSOpenPanel, do we need to call alloc and dealloc?
e.g
NSOpenPanel *panel = [[NSOpenPanel alloc] init]
panel = [NSOpenPanel openPanel];
....
[NSOpenPanel dealloc]
or just
NSOpenPanel *panel = [NSOpenPanel openPanel];
......
Thank you very much ( as my concept on cocoa memory management is not so good
)
Mr Chong
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.