I'm new to obj-c . During these day's practices I noticed that every class based on NSObject can't have an entity like : NSObject en;
in c++ but NSObject* en
instead.
But, sometimes I need to know the Size of an Object.I can't simply write sizeof(en)
because en
is a pointer var.I can't simply use sizeof(NSObject)
neither for the compiler telling me Application of sizeof to interface 'XXXX' is not supported on this architecture and platform
.
I want to know if there is a way to get sizeof(NSObject) .If not,what the syntax is designed this for & any other ways to get the size.