Forums > Java

Bug in MaxBox.isPatcher(): always return false

February 11, 2009 | 11:31 am

Hi,

I have a problem with MaxBox.isPatcher(), it always return false.
I have subpatcher in my patch, and even MaxBox.getSubMatcher()
is returning good result for them.

MaxBox[] boxes = getParentPatcher().getAllBoxes();
for (int i = 0; i < boxes.length; i++)
{
MaxBox b = boxes[i];

if (b.isPatcher())
{
post(" got patcher from isPatcher");
}
if (b.getSubPatcher()!=null)
{
post(" get patcher from b.getSubPatcher()!=null");
}
}

Will return :
get patcher from b.getSubPatcher()!=null

Thanks for correcting this
Best regards
Chris


February 11, 2009 | 1:11 pm

Hi,

see this discussion for a workaround :

http://www.cycling74.com/forums/index.php?t=msg&th=36184&start=0&rid=2582&S=014b3cb5c19f9ccf6700fa773321b167

Leo


Viewing 2 posts - 1 through 2 (of 2 total)