COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Prev Previous Post   Next Post Next
Old 08-11-2011, 07:50 PM   #1
HoRNet
Human being with feelings
 
Join Date: Feb 2011
Posts: 171
Default IGraphic resize on OSX (wdl-ce)

Hi, I searched the forum but I haven't been able to find any thread about multi size GUIs.

I need to develop a plugin wich can display itself using different sizes for the gui, i don't neet a completely resizable gui, just a switch that doubles the plugin editor for example.

I've seen that IGraphics::Resize method, but at least on mac it doesn't seems to work. The code is there but i think (from what i understand from the carbon docs) it's wrong in the carbon implementation, and while the cocoa seems right, my test plugin crashes reaper64.

In carbon there is a call to HIViewSetFrame inside the IGraphicCarbon class that, from what i understand, is run in the graphic thread, now the carbon docs states that that method is not thread safe and should be only be called from main thread, so it should be the host that owns the window the one who calls the resize, in fact the crash occurs occasionally and, looking to the crash report, always inside some apple stuff, never in the same spot.

The problem is i really don't know how to fix it, how does VSTGUI deal with it for example? i've had a look at the code and it doesn't seems different from the IPlug implementation, so must be something els in IPlug that i ignore...

Regarding cocoa, if i draw an empty frame (just attach graphic and then resize) it works fine, i can resize the frame as much as i want, if then i attach a control, simply subclassing IControl and drawing a black rectangle in the Draw method, reaper64 crashes in the draw method of the subclassed IControl, and i have yet to investigate the reason...

Now this long post comes to an end, has anybody successfully done a resizable gui with IPlug?
HoRNet is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.