• 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: OT: Meaning of .m extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Fwd: OT: Meaning of .m extension (From: Lars Sonchocky-Helldorf <email@hidden>)
 >Re: OT: Meaning of .m extension (From: Terrence Talbot <email@hidden>)
 >Re: OT: Meaning of .m extension (From: Florent Pillet <email@hidden>)
 >Re: OT: Meaning of .m extension (From: Dietrich Epp <email@hidden>)

  • Prev by Date: Re: Enter in NSTableView
  • Next by Date: Re: OT: Meaning of .m extension
  • Previous by thread: Re: OT: Meaning of .m extension
  • Next by thread: Re: OT: Meaning of .m extension
  • Index(es):
    • Date
    • Thread