Hi,
I have been using, the following macro, for releasing the objects
#define RELEASE_NIL(object) if(nil!=object){[object release]; object=nil; }
But when I use this macro for releasing a class object(SubClass of NSObject), following are my responses..
RELEASE_NIL(mAppDelegate_.myObject); - No Error
RELEASE_NIL([mAppDelegate_ myObject]); - error: lvalue required as left operand of assignment
Do anyone know, whats the problem with the second way throwing error and what it is expecting..????
I have been using, the following macro, for releasing the objects
#define RELEASE_NIL(object) if(nil!=object){[object release]; object=nil; }
But when I use this macro for releasing a class object(SubClass of NSObject), following are my responses..
RELEASE_NIL(mAppDelegate_.myObject); - No Error
RELEASE_NIL([mAppDelegate_ myObject]); - error: lvalue required as left operand of assignment
Do anyone know, whats the problem with the second way throwing error and what it is expecting..????