• 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: Strong language about Cocoa and Qt.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strong language about Cocoa and Qt.


  • Subject: Re: Strong language about Cocoa and Qt.
  • From: Jeff Harrell <email@hidden>
  • Date: Tue, 1 Jul 2003 18:02:38 -0500

On Tuesday, July 1, 2003, at 10:58 AM, Rich Warren wrote:

I assume (though I haven't really tried) that you can hide a method (by putting it in a category instead of in the header file), but you can't prevent people from calling it.

Many people don't realize that you do *not* have to declare your methods in your interface. It's perfectly acceptable to have methods in the implementation that are not declared in the interface. The worst you'll get is a compiler warning, and if you order your methods right you won't even get one of those.

This doesn't prevent people from calling your methods, but it saves a lot of trouble in documentation. Don't bother documenting a public interface for a method that is never meant to be called.

Again, this is probably because of the way I've been trained, but using a dynamic language always makes me a little uneasy.

It is not generally necessary for you to use id. I'm in the habit of declaring a type for all of my variables.

--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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: Strong language about Cocoa and Qt.
      • From: Sailor Quasar <email@hidden>
References: 
 >Re: Strong language about Cocoa and Qt. (From: Rich Warren <email@hidden>)

  • Prev by Date: Re: Cocoa Design Patterns Book and Online Resources?
  • Next by Date: NSString stringByTrimmingCharactersInSet: strangeness
  • Previous by thread: Re: Strong language about Cocoa and Qt.
  • Next by thread: Re: Strong language about Cocoa and Qt.
  • Index(es):
    • Date
    • Thread