• 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: Ali Ozer <email@hidden>
  • Date: Mon, 9 Jul 2001 09:50:25 -0700

As an example, TextEdit implements this, and it's why you get a new untitled window everytime TextEdit is reactivated. So, it will come multiple times, based on reactivation. Note that the kit sends it whether or not there are visible windows; you decide what you do based on the value of the flag.
Ali


On Sunday, July 8, 2001, at 05:36 , Rosyna wrote:

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
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Re: rapp events (From: Rosyna <email@hidden>)

  • Prev by Date: Re: Let's hope XP doesn't keep this "one-up" on OS X!
  • Next by Date: Re: objc_getClassList, pointers, and NSArray
  • Previous by thread: Re: rapp events
  • Next by thread: Re: rapp events
  • Index(es):
    • Date
    • Thread