Re: Notification when displays are detected?

2009-12-30 Thread Tobias Zimmerman
> Date: Tue, 29 Dec 2009 19:04:51 - > From: "Paul Sanders" > Subject: Re: Notification when displays are detected? > To: "Jacob Schwartz" > Cc: cocoa-dev@lists.apple.com > Message-ID: <9c9b59cd428b41f89a65b7229db98...@pauls> >

Re: Notification when displays are detected?

2009-12-29 Thread Paul Sanders
ubject: Re: Notification when displays are detected? I tried this one but it doesn't seem to be doing anything, so odds are I am adding the observer wrong. I am a little new at this, if that wasn't obvious haha. // Second notification, when the screens change [nc addObserver:sel

Re: Notification when displays are detected?

2009-12-29 Thread Paul Sanders
reconfigured. I find this useful. Paul Sanders. - Original Message - From: "Jacob Schwartz" To: Sent: Tuesday, December 29, 2009 6:15 PM Subject: Notification when displays are detected? Hey all, After some searching through the API, which apparently I am not good at,

Re: Notification when displays are detected?

2009-12-29 Thread Dave Keck
> What is the difference between that center and my center? The NSWorkspace notification center is usually reserved for system-wide events (WillPowerOffNotification, WillSleepNotification, DidPerformFileOperationNotification), while the +defaultCenter is reserved for events occurring within the cu

Re: Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
Dave, victory is yours. What is the difference between that center and my center? -Jake Schwartz On Dec 29, 2009, at 2:05 PM, Dave Keck wrote: > Does nc == [NSNotificationCenter defaultCenter]? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
No: NSNotificationCenter *nc = [[NSWorkspace sharedWorkspace] notificationCenter]; And Paul, it does exist because the other notification I have set up get recognized works and I c&ped the code. Thanks for all the help guys. -Jake On Dec 29, 2009, at 2:05 PM, Dave Keck wrote: > Does nc == [N

Re: Notification when displays are detected?

2009-12-29 Thread Dave Keck
Does nc == [NSNotificationCenter defaultCenter]? ___ 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/

Re: Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
gt; > - Original Message - > From: "Jacob Schwartz" > To: > Sent: Tuesday, December 29, 2009 6:15 PM > Subject: Notification when displays are detected? > > > Hey all, > > After some searching through the API, which apparently I am not >

Re: Notification when displays are detected?

2009-12-29 Thread Sean McBride
Jacob Schwartz (jakehschwa...@gmail.com) on 2009-12-29 1:15 PM said: >After some searching through the API, which apparently I am not good at, >I figured asking was easier. Does anyone know of a notification that >gets posted when another screen is added/detected. I figured it would be >in NSWorks

Re: Notification when displays are detected?

2009-12-29 Thread Dave Keck
Maybe NSApplicationDidChangeScreenParametersNotification? ___ 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/Uns

Re: Notification when displays are detected?

2009-12-29 Thread Dave DeLong
I just popped up a notification watcher and unplugged my external monitor, and saw lots of "CMDevice(Un)RegisteredNotification" distributed notifications go past. There were also a bunch of "CMDisplayDeviceProfilesNotification" distnotes with the same userInfo dictionaries as the Device(Un)Regi

Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
Hey all, After some searching through the API, which apparently I am not good at, I figured asking was easier. Does anyone know of a notification that gets posted when another screen is added/detected. I figured it would be in NSWorkspace but I didn't see anything. Thanks. -Jake Schwartz__