change the #ifdef's to #if's
Change interface from 'setNestedObject:' to simply 'setObject:', as suggested by @karlvr