Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ICA notifications



[Sorry 'bout my previous message, I'm still getting used to the command key differences between Eudora and Mail, and keep forgetting that cmd-E doesn't enter a search term in Mail. :( ]

I hope this is the right list for this...I tried to do some searches on the archives, but it appears that searching is borked (several searches on several different lists just sat there with a spinning control "forever"). If not, feel free to point me in the better direction.

I'm using Image Capture Architecture to talk to a digital camera. I've registered for various notifications, and successfully sent messages to the camera. However, some notifications I'm getting, others I'm not.

ICARegisterForEventNotificationPB pb = {};
pb.objectOfInterest = deviceList;
pb.eventsOfInterest = (CFArrayRef)eventsOfInterest;
pb.notificationProc = icaNotificationProc;
pb.options = nil;
ICAError err = ICARegisterForEventNotification(&pb, NULL);

"eventsOfInterest" is contains various notification names, including

kICANotificationTypeDeviceAdded
kICANotificationTypeDeviceRemoved
kICANotificationTypeCaptureComplete
kICANotificationTypeObjectAdded

When I [dis]connect the camera, I get the first 2, so I know my notification proc is set up correctly.

However, when I successfully send a "capture new image" command to the camera (I know it's correct because the camera activates, and I can see the new image in the Image Capture application), I never receive the 3rd notification (nor the 4th, which appears to be used by the included sample application, which, honestly, I've not run, just looked at the source code).

Have I missed a step along the way or something? What did I forget to do that's causing me to not get the Capture Complete notification?

Thanks!
randy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.