• 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: Cocoa Dev Style: Using Class versus Object Methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Dev Style: Using Class versus Object Methods


  • Subject: Re: Cocoa Dev Style: Using Class versus Object Methods
  • From: Uli Kusterer <email@hidden>
  • Date: Fri, 8 Aug 2008 17:33:49 +0200

On 08.08.2008, at 07:28, Nick Zitzmann wrote:
On Aug 7, 2008, at 11:08 AM, Lee, Frederick wrote:

1) why use instantiated objects versus classes (via class methods)?

Because class methods other than +new return autoreleased objects, which makes non-GC memory management a little bit easier.


This is simply wrong. Ignore that. A counterexample would be +alloc. Better read Apple's memory management rules if you want to know the correct story.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cocoa Dev Style: Using Class versus Object Methods
      • From: Christopher Nebel <email@hidden>
References: 
 >Cocoa Dev Style: Using Class versus Object Methods (From: "Lee, Frederick" <email@hidden>)
 >Re: Cocoa Dev Style: Using Class versus Object Methods (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Application control
  • Next by Date: Control-dragging from menu item in MainMenu.nib to File's Owner object in MyDocument.nib
  • Previous by thread: Re: Cocoa Dev Style: Using Class versus Object Methods
  • Next by thread: Re: Cocoa Dev Style: Using Class versus Object Methods
  • Index(es):
    • Date
    • Thread