On Feb 20, 2010, at 10:26 AM, Sandro Noël wrote:

>> Are both of these applications yours? If so, then 
>> NSDistributedNotificationCenter is your friend.
> 
> No unfortunately now, one of the is a apple system application.
> Thank you all for your valuable input.

If I remember correctly, the Apple application you're interested in is the Dock.

As I mentioned previously, you'll receive 
NSApplicationDidChangeScreenParametersNotification notifications (and 
-applicationDidChangeScreenParameters: delegate method invocations) when the 
Dock's position or size changes in such a way that the visible frame of one of 
the screens changes.

Otherwise, what you're trying to do is unsupported.  However, you can still use 
NSDistributedNotificationCenter to learn the undocumented, unsupported, 
unreliable distributed notifications that Apple is using to broadcast the 
changes in its preferences.  Just register yourself as an observer of all 
distributed notifications and log them.  Then, poke at the Dock's preferences 
in System Preferences and/or the Dock's contextual menu.  You'll see the 
distributed notifications go by.  Whether you want to base a commercial product 
on such unreliable Apple-private mechanisms is a judgment call.

Regards,
Ken

_______________________________________________

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/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to