Mailing Lists: Apple Mailing Lists

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

Using QT API in a Carbon-Windows/Controls App.



Hello everyone.

I'm writing a Carbon App (must run on 9 and X) that aids scientists in
measuring shapes and sizes of objects on a microscope that is connected
to a mac via DV connection.

Essentially, I need to create a "full-screen" window with a constant
preview of the "camera", (probably using a sequence grabber). The user
"draw-selects" a poligonal shape streight on the running video image. As
he finishes a shape, The program records some data about the shape to a
database. That's about it.

My employers request is that i don't use any external framework and I
cannot use cocoa (I must run on 9). I'll be using C++, and the MacOS
Carbon managers, and QuickTime API. Alas, i find QT API very much
inclined to the old Mac programming, before the
Carbon Events model for windows and controls.

My Questions are:
1. Has anybody here implemented a custom control, or a User pane that
embeds a sequence grabber preview?
How do i do it?

2. How do i implement a carbon window-drag event handler, so that it
remains aligned right for the
sequence grabber? In the past, i'd catch the "inDrag" click event,
and call the "DragAlignedWindow() QT API,
but now it's very awkward, and does not fit into the callback model
recommended by Apple.

3. How often should I call SGIdle() for a camera, in the new Carbon-
Timers model?

Any advice, or guidance will be appreciated.

Motti Shneor,
CEO, suMac LTD.
Software Development for the Macintosh
-----
ceterum censeo microsoftiem delendam esse
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.



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.