XML Feeds

.

[java-dev] new MaxPatcher() not working in Max 5

Richard Polfreman r.polfreman at soton.ac.uk
Fri May 2 14:46:43 MDT 2008


Hello,

I'm having some problems with an mxj object in Max 5, which
is working fine in 4.6.3. Under Max 5, new patcher windows do not appear to be made correctly:

public void bang()
{
    MaxPatcher p  = new MaxPatcher(50,50,200,200);
    p.getWindow().setVisible(true);
    p.getWindow().setTitle("TEST PATCH");
}

Will give a window as expected under Max 4.6.3, but nothing under Max 5 -  p.getWindow().isVisible() remains false, even after calling p.getWindow().setVisible(true);

This is on a Powerbook G4, Mac OS X 10.4.11,  Max 5.0.1.

As a follow up, I tried similar code in a js object, which I believe should be:

function bang()
{
    p  = new Patcher(50, 50, 200, 200);
    p.wind.visible = 1;
    p.wind.title="TEST PATCH";  
    post(p.wind.visible);
}

but this gives no window in Max 5, or Max 4.6.3 or Max 4.5.6 (and the visible setting remains false) - am I missing something in the JavaScript version?


More information about the java-dev mailing list