Re: Strong language about Cocoa and Qt.
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.