Using NSWindowDidChangeScreenNotification
Using NSWindowDidChangeScreenNotification
- Subject: Using NSWindowDidChangeScreenNotification
- From: Nick Nallick <email@hidden>
- Date: Mon, 8 Dec 2003 06:50:06 -0700
I need to be notified when the Font Panel first opens other panels like
Color and Typography. I thought this would be easy enough if I
installed a NSWindowDidChangeScreenNotification notification and
watched for those windows. Unfortunately I can't seem to get this
notification to do anything with either the above panels or my own
windows. Other window notifications (e.g.,
NSWindowDidMoveNotification) seem to work fine with the same code so
I'm stumped. Can anybody tell me what I'm doing wrong or suggest a
better way to accomplish this?
My code looks like the following:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(windowChangedScreen:)
name:@"NSWindowDidChangeScreenNotification" object:nil];
- (void)windowChangedScreen:(NSNotification*)notification
{
// this is never called
}
Thanks,
Nick Nallick
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.