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

Re: Beginner with Cocoa


  • Subject: Re: Beginner with Cocoa
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 24 Mar 2008 11:39:09 -0700

On Mar 24, 2008, at 10:01 AM, Jack Repenning wrote:
On Mar 24, 2008, at 7:13 AM, Erik Buck wrote:
For the record, reference counting for memory management is one of the oldest techniques in software and is not unique to Objective-C or Cocoa. Microsoft Foundation Class CString uses it. COM/Active- X IUnknown uses it. It's essential to using DirectX. It's essential to using embedded controls.

Reference counting is well established. Retain/release is not reference counting.

Yes, it is. Aside from the availability of autorelease, Objective-C's retain/release rules are not significantly different from those for AddRef/Release in Microsoft COM & ActiveX. And as others have pointed out, there are even reference-counted smart pointers in Standard C++; these have explicit (C++-style) API.


Some programming environments hide the fact that reference counting is taking place. Not all do. Objective-C and Cocoa are not unique in this respect.

  -- Chris

_______________________________________________

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


References: 
 >Re: Beginner with Cocoa (From: Erik Buck <email@hidden>)
 >Re: Beginner with Cocoa (From: Jack Repenning <email@hidden>)

  • Prev by Date: How to get NSURL* form NSURLConnection?
  • Next by Date: Re: Beginner with Cocoa
  • Previous by thread: Re: Beginner with Cocoa
  • Next by thread: Re: Beginner with Cocoa
  • Index(es):
    • Date
    • Thread