• 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
Private methods in ObjC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Private methods in ObjC


  • Subject: Private methods in ObjC
  • From: Glen Low <email@hidden>
  • Date: Wed, 25 Feb 2004 20:48:54 +0800

Dear All,

I note there's no direct way of making your ObjC methods private to clients. What's the usual idiom for doing this?

1. Define a category on the object and put it into the .m file?
2. Declare methods in the interface but preface them with something?
3. Don't declare the methods in the interface, but simply use them from your code. Presumeably then you have to define those private methods first in the .m implementation before you call them?
4. Put comments like "don't touch!" -- just joking...
5. Any funky techniques like multiple interface declarations?

Cheers, Glen Low


---
pixelglow software | simply brilliant stuff
www.pixelglow.com
_______________________________________________
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.


  • Follow-Ups:
    • Re: Private methods in ObjC
      • From: Troy Dawson <email@hidden>
    • RE: Private methods in ObjC
      • From: "Jason Vowell" <email@hidden>
  • Prev by Date: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs
  • Next by Date: Re: Tuning KVO validation.
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs
  • Next by thread: RE: Private methods in ObjC
  • Index(es):
    • Date
    • Thread