• 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: Selector callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selector callback


  • Subject: Re: Selector callback
  • From: Thomas Castiglione <email@hidden>
  • Date: Fri, 4 Oct 2002 23:13:51 +0800

On Friday, October 4, 2002, at 07:02 AM, email@hidden wrote:

How do I create a selector callback? I need one that I can have Cocoa ask
the user to save their unsaved docs with 'closeAllDocumentsWithDelegate' in
my delegate's implementation of applicationShouldTerminate.
'closeAllDocumentsWithDelegate' takes a selector but I can't find docs
anywhere on how I instantiate one.

BTW if I'm not going about the implementation of asking the user to save all
unsaved, let me know. From the docs it looks like this is the way.

-Jim

@selector(theSelectorYouWant) should do it. For example, @selector(showWindow:)

- Thomas Castiglione
_______________________________________________
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.

References: 
 >Selector callback (From: email@hidden)

  • Prev by Date: Re: C to Objective-C
  • Next by Date: Re: C to Objective-C
  • Previous by thread: Re: Selector callback
  • Next by thread: iTunes style NSTableView and bezeled borders
  • Index(es):
    • Date
    • Thread