• 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: overloading release
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: overloading release


  • Subject: Re: overloading release
  • From: Shawn Erickson <email@hidden>
  • Date: Tue, 27 Dec 2005 15:46:30 -0800

On 12/27/05, David Alter <email@hidden> wrote:
> I just wondering if it is a bad idea to over load release. I have an
> object that on init allocates a NSMutableArray. So I was thinking on
> release I should make sure I deallocated it. Kind of simulating
> distructors in C++. Here is a sample of what I'm doing.

Overriding release is not the proper way to do this. Review...

<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/RuntimeOverview/chapter_5_section_2.html#//apple_ref/doc/uid/20001425-TPXREF108>

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >overloading release (From: David Alter <email@hidden>)

  • Prev by Date: Re: overloading release
  • Next by Date: Re: KVO one-step listening but two-step notifying?
  • Previous by thread: Re: overloading release
  • Next by thread: NSTableView: computing ideal row height for arbitrary font?
  • Index(es):
    • Date
    • Thread