Creating original object in C

redFur's icon

Hello,

I have recently started making objects in C, but having a trouble with creating one from scratch or simply renaming the existing one. I have successfully played around with examples editing them, but I hit the wall when I simply want to create an object with another name. If I make a copy of the example and rename the project it does create the object with the new name but in Max it shows up with no inlets or outlets and not working properly.

What do I do?

Thanks,

Ivan

redFur's icon

I am using Xcode 4.6.3 with Max 6, and SDK 6.1.3 if that helps

Pierre Guillot's icon

Hi,
Copy the project, open it and rename the project (and the target) in XCode (project inspector -> identity -> project name). Don't forget to rename the class name in your main function.
Cheers

$Adam's icon

Hi,

did you also rename the object in the class_new() method of the main function of your external?

HTH,
Ádám

redFur's icon

That was it, missed the class name.

Thanks a lot.