Re: AUView painting
Re: AUView painting
- Subject: Re: AUView painting
- From: "john smith" <email@hidden>
- Date: Fri, 23 Sep 2005 21:20:21 +0200
Thanks a bunch. I was considering whether installing a handler was the way
to go, and now I have it confirmed.
Greets,
Michael
From: Michael Hopkins <email@hidden>
To: john smith <email@hidden>
CC: email@hidden, email@hidden
Subject: Re: AUView painting
Date: Fri, 23 Sep 2005 10:03:11 -0700
Michael,
CoreAudio does not provide any specific API for drawing. Drawing your view
is accomplished via the standard mechanisms that MacOS provides based on
the api you choose (carbon, or cocoa). That being said, since you are
using carbon, your best bet is probably to use HIViews to implement your
custom UI. You would register specific handlers for drawing in response to
the kEventControlDraw message.
For more information about HIViews, see:
http://developer.apple.com/documentation/Carbon/Conceptual/HIViewDoc/
HIView_concept/chapter_1_section_4.html#//apple_ref/doc/uid/
TP30000923-CH204-TPXREF105
There are also many excellent examples (although not core-audio specific
that can be found on developer.apple.com in the Carbon reference library.
Just do a search on HIView).
If you decide not to go that route, you need to install a window event
handler on your window and draw in response to the kEventWindowDrawContent
event.
See: http://developer.apple.com/documentation/Carbon/Conceptual/
HandlingWindowsControls/index.html
However, if you have never done any carbon programming, your best bet
might be to write your UI in cocoa since it is a bit less complex. You can
use FilterDemo in the SDK as an example.
Hope this helps!
-michael
On Sep 23, 2005, at 9:02 AM, john smith wrote:
Thanks for your answer.
From: Jens Alfke <email@hidden>
To: john smith <email@hidden>
CC: email@hidden
Subject: Re: AUView painting
Date: Fri, 23 Sep 2005 08:18:52 -0700
On Sep 23, 2005, at 5:12 AM, john smith wrote:
I have an AU, with an attached AUView. The view generates it's window,
but I cannot figure out how to update it.
Using VST etc. I'm used to doing my painting in response to a paint ()
or similiar call.
However, I'm unable to find anything similiar in the AUView class.
If you're implementing an AUView, you'll need to know how to use the
Cocoa frameworks.
No, sorry, I was not being precise enough: I'm doing a Carbon plug- in,
not Cocoa.
Thanks for the try though.
Greets,
Michael Olsen
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://
search.msn.click-url.com/go/onm00200636ave/direct/01/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden