GadgetHidden() causes error with tabbers
Archives Forums/MaxGUI Bug Reports/GadgetHidden() causes error with tabbers
| ||
Strange bug here (OSX 10.6):SuperStrict Import MaxGui.Drivers Local window:TGadget Local tabber:TGadget window=CreateWindow("My Window",30,20,400,300) tabber=CreateTabber(0,0,ClientWidth(window),ClientHeight(window),window) Print GadgetHidden(tabber) Output: Building untitled2 Compiling:untitled2.bmx Linking:untitled2 Executing:untitled2 2011-07-02 16:50:38.716 untitled2[70107:60b] -[TabView isEnabled]: unrecognized selector sent to instance 0x5061b0 2011-07-02 16:50:38.718 untitled2[70107:60b] -[TabView isEnabled]: unrecognized selector sent to instance 0x5061b0 This may or may not be related: SuperStrict Import MaxGui.Drivers Local window:TGadget Local tabber:TGadget window=CreateWindow("My Window",30,20,400,300) tabber=CreateTabber(0,0,ClientWidth(window),ClientHeight(window),window) Local canvas:TGadget=CreateCanvas(0,0,tabber.ClientWidth(),tabber.ClientHeight(),tabber) SetGraphics CanvasGraphics(canvas) End Building untitled1 Executing:untitled1 2011-07-02 17:01:22.599 untitled1[70190:60b] invalid drawable Process complete Last edited 2011 |
| ||
If you add this case statement into the int NSState(nsgadget *gadget) function of cocoa.macos.m, it seems to fix it (line 3051):case GADGET_TABBER: view=(NSView*)gadget->handle; if ([view isHidden]) state|=STATE_HIDDEN; break; |