桌面壁纸更改时的通知?

时间:2011-04-15 06:15:26

标签: cocoa macos notifications wallpaper

桌面壁纸更改时是否有任何通知?

谢谢!

1 个答案:

答案 0 :(得分:2)

[[NSDistributedNotificationCenter defaultCenter] addObserver:target
    selector:@selector(desktopImageChanged:)
    name:@"com.apple.desktop"
    object:@"BackgroundChanged"];

应该去工作