Notification Sent When Window Is Ordered Back?

2008-12-14 Thread Chunk 1978
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 =

Re: Notification Sent When Window Is Ordered Back?

2008-12-14 Thread Michael Babin
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 {

Re: Notification Sent When Window Is Ordered Back?

2008-12-14 Thread Chunk 1978
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 -=-=-=- -

Re: Notification Sent When Window Is Ordered Back?

2008-12-14 Thread Chunk 1978
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? -

Re: Notification Sent When Window Is Ordered Back?

2008-12-14 Thread Andy Lee
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

Re: Notification Sent When Window Is Ordered Back?

2008-12-14 Thread Chunk 1978
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

Re: Notification Sent When Window Is Ordered Back?

2008-12-14 Thread James Bucanek
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

Re: Notification Sent When Window Is Ordered Back?

2008-12-14 Thread Chunk 1978
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: -=-=-=- -

Re: Notification Sent When Window Is Ordered Back?

2008-12-14 Thread jonat...@mugginsoft.com
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: -=-=-=- -