Mailing Lists: Apple Mailing Lists

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

Re: Image Capture in 10.5




On 15/01/2008, at 8:38 PM, Annard Brouwer wrote:

Hi Nick,

Thank you for getting back to me. Are you sure that check makes a difference? Because in that same method there is a statement "mSessionID = 0", so it would have been executed no matter what the value was. Over here, no matter what I do, it doesn't make a difference. Whether I close the session or not after each scan, I can only scan once and then I have to disconnect the USB cable.
I don't see any effort from Apple's side to look at this so we're looking at a solution that doesn't depend on ImageCapture at the moment.


Good luck with your project!
Annard


I was having exactly the same problem as you - I had to disconnect the cable after using it. The ONLY time that I set mSessionID is in this block of code:


	pb.object = scannerObject;
	err = ICAScannerOpenSession(&pb, NULL);
	if (err == noErr) {
		mSessionID = pb.sessionID;
	}

I don't have any code that initialises mSessionID or anything like that. Something has obviously changed in the API, since even using Apple's SampleScannerApp, the "have to disconnect" problem occurs. Mine now works fine, but I've done a bit of "reverse engineering" (I haven't followed the documentation word-for-word) to get it working. The existing documentation is severely lacking. It's strange, since there are mixed messages coming out of Cupertino. Many of the ICA functional calls were deprecated in 10.5, and a few were added. Clearly someone there is working on it, but the documentation is lacking, and the interface is ridiculous by 2008 standards. Why they don't re-do the interface in Cocoa is beyond me.

Good luck with your coding,
Nick Forge
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-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.