Forums > Dev

Tim's "Writing Externals with Xcode 2.2" little problem

Jun 06 2006 | 1:25 pm

Hi all,

I walked through Tim’s tutorial in the articles/developers section. The example code provided didn’t work by default. In max the object gave me the following error:

error: #N: missing arguments for message "round".

When providing 1 argument the message persists, with 2 it disappears, but the object is still not properly initialized, it won’t show in- or outlets.

Only after changing the argument A_DEFLONG in the class instantiation to A_GIMME, the object worked.

Anyone recognizes this? ‘Writing Externals for Max.pdf’ says A_DEFLONG defaults to a 0 if no argument is provided. I don’t understand the error.


Jun 06 2006 | 1:43 pm

Btw, in ‘pattrsdk.pdf’ is stated that "in order to support attribute arguments objects using attributes MUST BE DEFINED as A_GIMME in class_new()" .. although Tim’s example doesn’t use attributes, maybe this can still be the cause of the problem?

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

Forums > Dev