Re: Writing a protected method in Obj-C
Re: Writing a protected method in Obj-C
- Subject: Re: Writing a protected method in Obj-C
- From: John Randolph <email@hidden>
- Date: Thu, 18 Sep 2003 14:40:56 -0700
How can one write a protected method in Obj-C, I mean protected in
sense of C++ protected member function.
There's no such thing in Objective-C. At runtime, you can always
search the method tables and find it. If you want to prevent someone
from calling a particular method, just leave it out of the public
headers.
What are you trying to do?
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.