Sep 1, 2011 at 5:54pm
Another probably easy question for someone who knows how to read the docs… I just can’t find the info I need or if I did find it, I don’t know that I did :(
Ok, so I have an object for which I would like more than 1 @attribute.
I use the following to setup the args for the inspector:
In my _new(…) routine I then use attr_args_process(x, argc, argv);
That seems to work fine for the first attribute, but not the second or third (specially if the arguments are typed in in a different order than they were implemented). How do I implement several @-style attributes? Is there a convenience function or do I have to do it manually?
I did read the “Sending Messages, Calling Methods” part of the docs, but am none-the-wiser… where can I read up on this? any code examples I could study.
Thanks for any pointers!!
Sep 2, 2011 at 5:54am
there is nothing to do more than you did ; sadly the “attrtester.c” in sdk examples use another method (dictionary) ; you should have a mistake somewhere else …
… i joined an example you could study ;-)
Sep 2, 2011 at 6:07pm
Thanks so much!! Yours works like a charm. I knew I was missing something simple. By the look of it, the only difference in your code to mine is that in my _new(…) routine I don’t do this:
I allocate the object straight away… once I added the above code it works perfectly. THANKS!!
You must be logged in to reply to this topic.