> > I write the following code and try to observe the window miniaturized > notification, it doesn't work, can anyone tell me why? > ... > // Observing window status > [self registerDefaultNotification:NSWindowDidMiniaturizeNotification > withSelector:@selector(windowMiniaturized:) onObject:nil]; >
with "onObject:nil" you are not providing an NSWindow instance to observe Jim _______________________________________________ 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