On 23-Oct-09, at 2:19 PM, vade wrote:
Would it be possible to normalize the input values to a floating
point value and scale them on the plugin side? if device a is -10
to 100, and device b is 5 to 10,000, just map the floating point
ranges to the device ranges? I know its not ideal..
That only addressed fixed devices. It may works for the DFG, but not
for devices where input ports are dynamic and may or may not be
accessible depending on what device you are opening. You really need
to open he device and query it before you can configure an input ports
properly or even know if an input port applies or not.
Another option that I have done in the past with a web -> image
plugin, is to alloc a brand new window manually at init, and then
have a boolean input port that triggers the window to be made key
and ordered front. This allowed me to get around my limitations of
the setting info pane not being made available in a QC powered app,
and was able to set it and fiddle with it outside of executeAtTime.
Okay. And how does your window get disposed of?
Your Plugin never receives a "-close" or "-finalize" call after the -
init" phase of the QCPlugin to tell it it's shutting down.
So is it leaking a window each time it's used?
So I was able to use traditional cocoa bindings, change views, and
all those things, and just used an input port to trigger the window
to order in or out.
Perhaps thats an option for you?
It really don't see it being be any better that doing a window in the -
createViewController method. It also leaves a window around that a
User has to deal with as well. If they close it, there is no way to
get it back except by stopping / restarting the output port.
Thanks for the suggestion though.
Milton J. Aupperle
President
ASC - Aupperle Services and Contracting
Mac Software (Drivers, Components and Application) Specialist
#1106 - 428 Chaparral Ravine View SE.
Calgary Alberta T2X 0N2
1-(403)-453-1624
[email protected]
www.outcastsoft.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]