• 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
ImageCapture + ImageKit problem...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ImageCapture + ImageKit problem...


  • Subject: ImageCapture + ImageKit problem...
  • From: Eric Matecki <email@hidden>
  • Date: Thu, 23 Feb 2012 09:12:00 +0100

Hi,

I have a problem with ImageCapture + ImageKit.

My IKDeviceBrowserView stays desperately empty.

So I added the following code to the start of my app :
    ICDeviceBrowser*  db = [[ICDeviceBrowser  alloc]  init];
    [db  setDelegate: (id<ICDeviceBrowserDelegate>)self];
    db.browsedDeviceTypeMask = db.browsedDeviceTypeMask
        | ICDeviceTypeMaskScanner
        | ICDeviceTypeMaskCamera
        | ICDeviceLocationTypeMaskLocal
        | ICDeviceLocationTypeMaskShared
        | ICDeviceLocationTypeMaskBonjour
        | ICDeviceLocationTypeMaskBluetooth
        | ICDeviceLocationTypeMaskRemote;
    [db  start];

and deviceBrowser:didAddDevice:moreComing: *IS* called once, with the only scanner connected to my computer.
Still, the IKDeviceBrowserView stays empty.

What can be wrong ?

Oh, something that may be part of the problem (or of the solution...):

I don't call run on my app for multiplatform portability reasons.
Instead I call this in a customized event loop:
    NSEvent*  event = [[NSApplication  sharedApplication]
                          nextEventMatchingMask: NSAnyEventMask
                                      untilDate: [NSDate  dateWithTimeIntervalSinceNow: 0.000001]
                                         inMode: NSDefaultRunLoopMode
                                        dequeue: YES];
    /* OMITED: do some checks for tablet proximity events */
    [[NSApplication  sharedApplication]  sendEvent: event];

Any help will be greatly appreciated.

Thanks.

--
Eric M.
http://www.tvpaint.fr
--
Keep intel OUTSIDE my Mac !
Hiii !!! I can see Intel chips creeping around my G5 !

Eric M.
_______________________________________________

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: ImageCapture + ImageKit problem...
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: NSStepper - useless?
  • Next by Date: Re: allow users to opt-out of iCloud
  • Previous by thread: Re: Determining user's clock preference on iOS
  • Next by thread: Re: ImageCapture + ImageKit problem...
  • Index(es):
    • Date
    • Thread