is this possible? what method do i override when the window is
ordered back, or has resigned as key window... i'm attempting to set
some actions into play when a window is ordered back or no longer key:
-=-=-=-
- (void)orderBack
{
NSString *updateWindowNotification =
On Dec 14, 2008, at 8:50 AM, Chunk 1978 wrote:
is this possible? what method do i override when the window is
ordered back, or has resigned as key window... i'm attempting to set
some actions into play when a window is ordered back or no longer key:
-=-=-=-
- (void)orderBack
{
honest to god, i have zero idea why this isn't working... i've simply
added this to my window's class and declared it in the header, but
when the window resigns key by switching to another app, i see the
window being ordered back, but NSLog does not output the message
-=-=-=-
-
i've set the window class to be it's own delegate:
- (id)init
{
if (self = [super init])
{
[self setDelegate:self];
}
return self;
}
so shouldn't writing this method in the window's class work?
-
NSWindow has no instance method named windowDidResignKey:. Michael
referred you to a *delegate* method with that name, and an *instance*
method named resignKeyWindow.
It might help to slow down and read these emails and the docs they
refer to a little more carefully. :)
--Andy
On Dec
oh... woops! ha... this coffee hasn't kicked in yet... sorry about that... :)
On Sun, Dec 14, 2008 at 11:08 AM, Andy Lee ag...@mac.com wrote:
NSWindow has no instance method named windowDidResignKey:. Michael referred
you to a *delegate* method with that name, and an *instance* method named
Chunk 1978 mailto:chunk1...@gmail.com wrote (Sunday, December 14, 2008 8:28
AM -0500):
honest to god, i have zero idea why this isn't working...
- (void)windowDidResignKey:(NSNotification *)notification
{
NSLog(@window resigned key);
}
Probably because it's resignKeyWindow: not
ok... so here's a strange issue:
resigning the key window works fine
-=-=-=-
- (void)resignKeyWindow
{
NSLog (@Out);
}
-=-=-=-
but if i also include the following method, resignKeyWindow no longer
works, and i only receive logs for becomeKeyWindow:
-=-=-=-
-
ok... so here's a strange issue:
resigning the key window works fine
-=-=-=-
- (void)resignKeyWindow
{
NSLog (@Out);
}
-=-=-=-
but if i also include the following method, resignKeyWindow no longer
works, and i only receive logs for becomeKeyWindow:
-=-=-=-
-