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. An AUView is a subclass of AppKit's NSView, which defines all the infrastructure for drawing, handling events, etc. Specifically, to draw your own content you override the -drawRect: method. Although usually, you would instead use that view as a container, putting subviews (buttons, sliders, text fields...) into it with Interface Builder and wiring up your code to those.
If you haven't read up on Cocoa or gone through any of the AppKit tutorials, you really should do that first!
--Jens |