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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -