• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Image Capture in 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image Capture in 10.5


  • Subject: Re: Image Capture in 10.5
  • From: Nick Forge <email@hidden>
  • Date: Wed, 16 Jan 2008 00:36:46 +1100


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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Image Capture in 10.5
      • From: Dominik Pich <email@hidden>
  • Prev by Date: Re: Core Data performance advice... creating relationships.
  • Next by Date: Re: CALayer/CAAnimation doesn't animate
  • Previous by thread: Re: NSWindow and autorelease with dynamic binary
  • Next by thread: Re: Image Capture in 10.5
  • Index(es):
    • Date
    • Thread