Private Methods
Private Methods
- Subject: Private Methods
- From: Philip Bridson <email@hidden>
- Date: Fri, 22 Feb 2008 11:00:37 +0000
How do I make a method private?
I have tried putting @private before the method that I want to make
private but the compiler flags a parse error. I read the
documentation and I can only find reference to private member
variables. I want to make sure that a method can only be accessed via
another method in the same class. Is this possible in Objective-C or
do I need to write this class in C++?
Many thanks.
Phil.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden