Re: Is there a way to detect if user adds Printer?
Re: Is there a way to detect if user adds Printer?
- Subject: Re: Is there a way to detect if user adds Printer?
- From: email@hidden
- Date: Thu, 07 Jun 2012 16:05:03 +0000
- Importance: Normal
hi,
To answer my question:
I used:
https://github.com/kballard/NotificationWatcher
Noticed that
com.apple.ColorSync.DeviceRegisteredNotification
and
com.apple.ColorSync.DeviceUnregisteredNotification
Were send out also this code I saw yesterday
http://www.cocoabuilder.com/archive/cocoa/103082-notification-for-printer-getting-added.html
Also this tech note helps:
http://developer.apple.com/library/mac/#technotes/tn2035/_index.html
Marc
> hi,
>
> Is there a way to detect if the user added/removed a printer while my app
> is running?
>
> I'm currently displaying a popup with the contents of [NSPrinter
> printerNames] but my app would like to be notified when changes are
> happening to this contents.
>
> thanks for some ideas.
>
> marc
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden