• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using NSWindowDidChangeScreenNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Using NSWindowDidChangeScreenNotification
      • From: Robert Cerny <email@hidden>
  • Prev by Date: NSNumber subclassing oddity
  • Next by Date: Re: .webloc files and Safari (newbie)
  • Previous by thread: Re: NSNumber subclassing oddity
  • Next by thread: Re: Using NSWindowDidChangeScreenNotification
  • Index(es):
    • Date
    • Thread