• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to terminate the application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >how to terminate the application? (From: Silicon <email@hidden>)

  • Prev by Date: Re: Linking against libcrypto.dylib fails at strip
  • Next by Date: Binding a Popup to an Array of Images?
  • Previous by thread: Re: how to terminate the application?
  • Next by thread: NSDirectoryEnumerator question
  • Index(es):
    • Date
    • Thread