• 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 Method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Private Method?


  • Subject: Private Method?
  • From: Bryan Harrison <email@hidden>
  • Date: Sun, 06 Nov 2011 14:10:18 -0800

I'm a total tyro and hope nobody minds if I fire off the occasional incredibly elementary question.

I'm reviewing some sample code and am looking at a class with a method declared in @implementation which isn't mentioned in any @interface.

Is this a private method, something else entirely, or merely sloppy coding?

If the former, how does this technique compare with the trick of putting an…

@interface someClass ()
- (type) somePrivateMethod;
@end

…in the implementation?

Thanks,
Bryan

_______________________________________________

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

  • Follow-Ups:
    • Re: Private Method?
      • From: Jens Alfke <email@hidden>
    • Re: Private Method?
      • From: Wim Lewis <email@hidden>
    • Re: Private Method?
      • From: Joar Wingfors <email@hidden>
    • Re: Private Method?
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: How to bind to a custom controller class?
  • Next by Date: Re: Private Method?
  • Previous by thread: Re: In Praise of ARC
  • Next by thread: Re: Private Method?
  • Index(es):
    • Date
    • Thread