About notification NSWindowDidMiniaturizeNotification
About notification NSWindowDidMiniaturizeNotification
- Subject: About notification NSWindowDidMiniaturizeNotification
- From: Ivan Chen <email@hidden>
- Date: Tue, 08 Mar 2011 15:31:23 +0800
Hi,
Guys
I write the following code and try to observe the window miniaturized notification, it doesn't work, can anyone tell me why?
- (void)windowMiniaturized:(NSNotification*)notification
{
NSLog(@"%@", notification);
}
- (void)registerDefaultNotification:(NSString*)notification withSelector:(SEL)selector onObject:(id)object
{
[[NSNotificationCenter defaultCenter] addObserver:self
selector:selector
name:notification
object:object];
}
// Observing window status
[self registerDefaultNotification:NSWindowDidMiniaturizeNotification withSelector:@selector(windowMiniaturized:) onObject:nil];
Thanks
Ivan Chen_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden