objective c - private methods in cocoa? -
possible duplicate:
best way define private methods class in objective-c
hi, can have private methods class in cocoa application? if yse, how?
yes can!
in *.m file (implementation)
#import "myclass.h" @interface myclass() - (void)privatemethod(); @end @implementation myclass - (void)dealloc { [super dealloc]; } - (void)privatemethod { nslog(@"myprivatemethod"); } @end
Comments
Post a Comment