• 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 get notification of rerun application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get notification of rerun application


  • Subject: Re: How to get notification of rerun application
  • From: Macarov Anatoli <email@hidden>
  • Date: Wed, 26 Nov 2008 06:24:31 -0800 (PST)

Example: http://www.cocoabuilder.com/archive/message/cocoa/2001/7/8/41850

- (BOOL)applicationShouldHandleReopen:(NSApplication *)sender
hasVisibleWindows:(BOOL)flag

{
     NSBeep();
     NSLog(@"Hi");

     return YES;
}

And in awakeFromNib in the same class

[NSApp setDelegate:self];



      ________________________________________________________
Вы уже с Yahoo!?
Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Prev by Date: Re: Number of Files on Volume
  • Next by Date: NSTrackingArea strange requirement
  • Previous by thread: Re: How to get notification of rerun application
  • Next by thread: Programmatic NSTableView selection changes
  • Index(es):
    • Date
    • Thread