> 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>
>
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
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,
> 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
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)
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
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/
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
>
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
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
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
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__
12 matches
Mail list logo