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

Re: rapp events


  • Subject: Re: rapp events
  • From: Rosyna <email@hidden>
  • Date: Sun, 8 Jul 2001 05:36:37 -0700

Tried adding this, it worked. Exactly once. I cannot get the event to occur again.

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

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

return YES;
}

And in awakeFromNib in the same class

[NSApp setDelegate:self];

It never beeps or writes anything to the log. Was i missing something?

Ack, at 7/8/01, Andreas Monitzer said:

NSApplication already handles this event. You can use it by implementing applicationShouldHandleReopen:hasVisibleWindows: in the NSApplication's delegate.

--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insane People


  • Follow-Ups:
    • Re: rapp events
      • From: Ali Ozer <email@hidden>
References: 
 >Re: rapp events (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: Re: Cocoa and desktop image
  • Next by Date: [Learning Cocoa Qs] View Hierarchy & Pointers to Cocoa data structures
  • Previous by thread: Re: rapp events
  • Next by thread: Re: rapp events
  • Index(es):
    • Date
    • Thread