getNextMessage() in ofxOsc depricated?

Hello,

I’m working on a project that requires OSC and I’m using ofxOsc. Everything’s going okay, but xCode is complaining that the function getNextMessage() is deprecated. There’s no mention of this being the case in the documentation for this function though.

Is xCode just wrong on this? Thanks for any insight!

what is deprecated is passing a pointer and you should instead just pass a reference as in:

osc.getNextMessage(msg);

instead of:

osc.getNextMessage(&msg);
2 Likes

AHHH, that makes sense! Thanks so much Arturo, I’ve been puzzling over this for awhile. I appreciate it!