• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Writing a protected method in Obj-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Writing a protected method in Obj-C (From: "Umed Zokirov" <email@hidden>)

  • Prev by Date: Newbie - best time to set filename
  • Next by Date: Re: Writing a protected method in Obj-C
  • Previous by thread: Writing a protected method in Obj-C
  • Next by thread: Re: Writing a protected method in Obj-C
  • Index(es):
    • Date
    • Thread