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
{
NSString *updateWindowNotification = @"updateWindowNotification";
[notificationCenter postNotificationName:updateWindowNotification
object:self];
}
-=-=-=-
Look at the documentation for -[NSWindow resignKeyWindow] and/or -
[NSWindow resignMainWindow]:
<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/resignKeyWindow
>
Note that you don't need to actually override the method for this one
behavior (delegate method windowDidResignKey and notification
NSWindowDidResignKeyNotification are both available).
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com