Если вы посмотрите на документацию, там написано, что она доступна только в Mac OS X.
className
Returns a string containing the name of the class.
- (NSString *)className
Return Value
A string containing the name of the class.
Discussion
This method is invoked by Cocoa’s scripting support classes.
Availability
Available in Mac OS X v10.0 and later.
Какова ваша цель найти имя класса.