Object ele=a.get(i);
if(ele instanceof java.lang.Integer){//cast to integer:
print("found Int");
}else{ //cast to string:
print("found: "+ele.getClass());
}
//prints: found: class com.cycling74.max.Atom$IntAtom
This is part of a larger chunk of code but this is the relevant part. I need to know how to check the type of an element in the Atom class by cycling74.
if(ele instanceof com.cycling74.max.Atom$IntAtom)
//ERROR: com.cycling74.max.Atom.IntAtom has private access in com.cycling74.max.Atom
Any ideas?? Thanks a lot - this is really doing my head in!!