• 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: obj-c functions versus class methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: obj-c functions versus class methods


  • Subject: Re: obj-c functions versus class methods
  • From: Kaelin Colclasure <email@hidden>
  • Date: Wed, 10 Mar 2004 14:52:49 -0800

On Mar 10, 2004, at 1:55 PM, Mark Eissler wrote:

Every now and then you're cruising right along and then all of a sudden massive confusion sets in! It all seemed so clear just moments ago and now? now(!) What was I thinking?? I hate it when this happens...

In the grand scheme of things, what is the practical difference between implementing functionality in a plain C function versus an obj-c class method? Don't they accomplish the exact same thing except the latter associates the functionality very specifically with a particular group of functionality?

Class methods are inherited by, and may be overridden by, subclasses. Also, since they're dispatched dynamically, they can be intercepted by poseAsClass, etc. where a POC (plain-old C) function cannot.

-- Kaelin


-mark

--
Mark Eissler, email@hidden
Mixtur Interactive, Inc. _______________________________________________
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.
_______________________________________________
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: obj-c functions versus class methods
      • From: Shawn Erickson <email@hidden>
References: 
 >obj-c functions versus class methods (From: Mark Eissler <email@hidden>)

  • Prev by Date: Re: Wisdom of overriding isEqual:
  • Next by Date: Re: obj-c functions versus class methods
  • Previous by thread: obj-c functions versus class methods
  • Next by thread: Re: obj-c functions versus class methods
  • Index(es):
    • Date
    • Thread