On 28 Aug 08, at 13:38, Wayne Shao wrote:
What is the correct way to quit a cocoa app? I could use C exit()
but that
would loose the chance to invoke the right callbacks for clean up.
What is the call that would be equivalent to user explicitly
selecting the
Quit from the menu.
I only found this
[[NSApplication sharedApplication] teminate:??];
But the terminate function takes an id for sender. What shall I use?
"self" or "nil" are both perfectly acceptable.
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]