Number of HIViews check

21 views
Skip to first unread message

Daniel Schaack

unread,
Mar 5, 2014, 3:59:48 AM3/5/14
to symbiosi...@googlegroups.com
I noticed that for the 32Bit case, when effOpenEdit is called, Symbiosis will afterwards check if there actually have been added any HIViews to the passed WindowRef.I'm not sure if this is needed. Right now what I'm doing in my VST plugin (which is actually using Cocoa only for the GUI) is to create a NSWindow out of the WindowRef via NSWindow initWithWindowRef, then I'm adding a NSWindowDelegate to it which will track when it is moved. I Add another NSWindow on top of it which follows its position and contains my own plugin NSView. I don't add any HIView at all. In other hosts this works well, as far as my experiments show. Thus I'm not sure if the HIViews==0 check of Symbiosis is really needed. I'm not a Carbon expert (nor Coco warrior either), so maybe you could tell me if what I'm doing is only half right or completely wrong :)

Daniel Schaack

unread,
Mar 5, 2014, 4:01:07 AM3/5/14
to symbiosi...@googlegroups.com
Oh and btw thanks for this excellent wrapper!

malström

unread,
Apr 9, 2014, 8:52:48 AM4/9/14
to symbiosi...@googlegroups.com
You are probably right about this. The assert looks unnecessary. I must have added it cause I couldn't imagine that a plug-in GUI without any views could be anything but incorrect.

I'll double-check any consequences of removing the assert and if it is safe I'll drop it.

(I had missed this message, and some other ones on the list too, due to an over-aggressive spam-filter.)
Reply all
Reply to author
Forward
0 new messages