Re: how to terminate the application?
Re: how to terminate the application?
- Subject: Re: how to terminate the application?
- From: Jerry Krinock <email@hidden>
- Date: Sat, 10 Feb 2007 17:02:52 -0800
- Thread-topic: how to terminate the application?
on 07/02/10 12:16, Silicon at email@hidden wrote:
> In my controller, I treat the File's owner as an outlet of my
> controller, which named theApp.
> I draw a connection from my controller's theApp outlet to the file's
> owner;
> Then if the user clicks a button, I send the message to [theApp
> terminate], however it doesnt work-the application is still running.
> What's wrong? Can someone tell me how should I accomplish this task?
I'm not sure about those connections, but the message should be instead:
[theApp terminate:self] ;
This is because terminate: ends with a colon and therefore has an argument.
I don't believe the argument is used for anything, but it needs an argument
to be an "action".
The message you send should have caused the compiler to warn that there is
no such selector.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden