Possible Duplicate:
How does an underscore in front of a variable in a cocoa objective-c class work?
I found that in Apple's frameworks' header files , Apple name instance variable with prefix underscope inside a class interface. like the _delegate instance below:
@interface ClassName : NSObject {
id _delegate;
}
@end
But is there any side effects if we follow this naming convention when defining our own instance variable? I've been searching the answer for this question for quite a long time.
In apple's Code Guideline, apple just said they reserve the methods name begin with underscore, they haven't mention any restriction about instance variable's naming problem.
My colleague said if you define instance variable begin with underscore might get collide with the framework if the name you pick exist in the framework's private header file. Is this possible or does this become a reason that we shouldn't use the name begin with underscore because apple might already used it?