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 protected])
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 [email protected]