• 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
Re: Using NSWindowDidChangeScreenNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSWindowDidChangeScreenNotification


  • Subject: Re: Using NSWindowDidChangeScreenNotification
  • From: Robert Cerny <email@hidden>
  • Date: Mon, 8 Dec 2003 15:41:27 +0100

NSWindowDidChangeScreenNotification
Posted whenever a portion of an NSWindows frame moves onto or off of a
screen. The notification object is the NSWindow that has changed
screens. This notification does not contain a userInfo dictionary.

I believe this notification is sent when changing screen dimensions in
monitors panel.

HTH
Robert

On 8.12.2003, at 14:50, Nick Nallick wrote:

> 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.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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:
    • Window Open Notification (was Using NSWindowDidChangeScreenNotification)
      • From: Nick Nallick <email@hidden>
References: 
 >Using NSWindowDidChangeScreenNotification (From: Nick Nallick <email@hidden>)

  • Prev by Date: Re: NSNumber subclassing oddity
  • Next by Date: Window Open Notification (was Using NSWindowDidChangeScreenNotification)
  • Previous by thread: Using NSWindowDidChangeScreenNotification
  • Next by thread: Window Open Notification (was Using NSWindowDidChangeScreenNotification)
  • Index(es):
    • Date
    • Thread