When declaring a variable, these two are essentially the same. Best practices depend on your style guide, and when contributing to a larger codebase, consistency with existing style.
However, there's one subtlety that leads me to prefer the second option Object *myObject
in cases where this does not clash with an existing style guide. Specifically, the following code declares an Object pointer, and an Object (not a pointer):
Object *obj1, obj2;
When the asterisk is attached to the name, this is a bit clearer - at a rapid glance, the following equivalent code could mislead someone (especially a newer programmer who isn't aware of this gotcha) into thinking two pointers are being declared:
Object* obj1, obj2;
Furthermore, I probably wouldn't recommend mixing types like this anyway, and if I did want to declare two pointers then
Object *obj1, *obj2; // declarations look consistent
seems a tad cleaner than
Object* obj1, *obj2; // need to use second style anyway
or
Object* obj1, * obj2; // ???