Re: rapp events
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