• 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: Functions in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Functions in Cocoa


  • Subject: Re: Functions in Cocoa
  • From: Nathan Day <email@hidden>
  • Date: Thu, 6 Mar 2003 01:15:26 +1030

You can do most things without using functions, but objects and methods in Objective-C are pretty heavy weight things and so sometimes we resort to functions and structs, usually hidden behind classes and methods. Cocoa itself uses stucts and functions for somethings like NSRects, since you don't need dynamic binding, polymorphism and message sending for things like NSRect.

On Wednesday, March 5, 2003, at 08:46 PM, Peter Karlsson wrote:

Is it possible to NOT use functions at all in Cocoa and is this maybe the preffered way? If I am right we can do the same thing with classes and methods. Can someone please sort this out for me?

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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: 
 >Functions in Cocoa (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: custom NSTextContainer problem
  • Next by Date: Re: user id unknown
  • Previous by thread: Re: Functions in Cocoa
  • Next by thread: iTunes playlist and ID number
  • Index(es):
    • Date
    • Thread