[MAX 5]newDefault args broken?

May 9, 2008 at 11:31am

[MAX 5]newDefault args broken?

Hi,

newDefault() appears to fail to pass on arguments to objects in 5. Thus:

MaxBox buf = p.newDefault(80,20,”buffer~”, Atom.parse(“fred”));

works fine in Max 4, but in 5 will give an object with as the argument (i.e. buffer~ ).

Workaround is to rewrite everything using newObject, e.g.

MaxBox buf = p.newObject(“newex”,Atom.parse(“80 20 100 196617 buffer~ fred”));

tested on Max 5.0.1, PowerBook G4 1.3GHz, Mac OS X 10.4.11 and MacBook Pro 2.16GHz, Windows XP SP2, jdk 1.6.0_03

rp

ps is the font spec (magic number 196617) documented anywhere?

#37652
May 9, 2008 at 11:42am

RE the font spec – found Peter Castine’s explanation in message #30323 (should have looked harder earlier…).

#130217
May 12, 2008 at 2:59pm

hey rp, can you link to the right thread, I’m having the same problem but you cant search by post number on this forum

#130218
May 12, 2008 at 6:44pm
#130219

You must be logged in to reply to this topic.