• 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
How do I check if at least one TWAIN device is available
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I check if at least one TWAIN device is available


  • Subject: How do I check if at least one TWAIN device is available
  • From: Ulf Dunkel <email@hidden>
  • Date: Tue, 16 Sep 2008 15:44:51 +0200
  • Organization: invers Software

In TWAINhandler.cpp (by Apple Inc.) and the relevant files, I get all that nice stuff to access a TWAIN data source etc. in my app.

The following line in TWAINHandler::selectDS() e.g. opens the 'Select Device' window provided by Mac OS X:

DSM_Entry(&mAppIdentity, NULL, DG_CONTROL, DAT_IDENTITY, MSG_USERSELECT, (TW_MEMREF)&newDSIdentity);

But until I don't know how to check first, if there are any TWAIN devices available at all, before I open this window, it even opens without any device (causing silly results when the user clicks on "Select" or the red closer button in the window title bar).

How do I check if at least one TWAIN device is available?

Regards,
    UlfDunkel
_______________________________________________

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: How do I check if at least one TWAIN device is available
      • From: Ulf Dunkel <email@hidden>
  • Prev by Date: Re: Using NSAlert with PyObjc - basics
  • Next by Date: Re: async NSOperation and NSOperationQueue
  • Previous by thread: Re: structs in Mutable containers
  • Next by thread: Re: How do I check if at least one TWAIN device is available
  • Index(es):
    • Date
    • Thread