Re: OT: Meaning of .m extension
Re: OT: Meaning of .m extension
- Subject: Re: OT: Meaning of .m extension
- From: Terrence Talbot <email@hidden>
- Date: Sun, 23 Nov 2003 09:08:08 -0800
On Nov 23, 2003, at 2:47 AM, Dietrich Epp wrote:
On Nov 23, 2003, at 2:28 AM, Florent Pillet wrote:
Except that you got it wrong, because in the Objective C terminology,
we call these "selectors" and not "methods". Makes a difference, and
".s" is already taken ;-)
The selector is how you choose a method.
[foo doSomething]
Uses the selector 'doSomething' to call foo's method for doSomething.
Correct. doSomething is the (method) selector for the method
(definition)
- (void)doSomething
{
;
}
found in Foo's (or one of Foo's superclass's) .m file. [foo
doSomething], itself, is known as a message expression, or "sending the
message doSomething to the object foo".
I actually haven't found a definitive answer to the original question,
but I was thinking that Cox (principal author of Objective-C) spends
much of his discussion presenting the language in terms of methods,
taking the concept directly from Smalltalk-80. I think it's easy to
make the leap that .m is for methods. The word module seems to be
consciously avoided.
_______________________________________________
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.