• 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: { Semi-Newbie } Inverse of +initialize?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: { Semi-Newbie } Inverse of +initialize?


  • Subject: Re: { Semi-Newbie } Inverse of +initialize?
  • From: David Remahl <email@hidden>
  • Date: Sat, 12 Oct 2002 14:21:18 +0200

> That's interesting, and coincidentally exactly what the Objective-C
> reference in the current devtools says (p141).
>
> I have been treating -dealloc as an analogue of a C++ destructor, which
> clearly it isn't.


Me too. I think this is a pretty peculiar design detail in the cocoa
runtime.

Objects doing different kinds of cleanup when destroyed is pretty common.
This isn't just about cleanup when the application/process is terminating,
but also during run. An example is the connection termination.

What is the suggested approach for doing 'destructor' work which isn't
simple deallocation of memory?

/ Regards, David
_______________________________________________
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: { Semi-Newbie } Inverse of +initialize?
      • From: Eric Dahlman <email@hidden>
References: 
 >Re: { Semi-Newbie } Inverse of +initialize? (From: Chris Ridd <email@hidden>)

  • Prev by Date: Re: STL vector not working
  • Next by Date: Re: Cocoa Books (was New to Cocoa)
  • Previous by thread: Re: { Semi-Newbie } Inverse of +initialize?
  • Next by thread: Re: { Semi-Newbie } Inverse of +initialize?
  • Index(es):
    • Date
    • Thread