• 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: dealloc strangeness in my custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dealloc strangeness in my custom view


  • Subject: Re: dealloc strangeness in my custom view
  • From: Chris Ridd <email@hidden>
  • Date: Tue, 28 Jan 2003 16:29:30 +0000

On 28/1/03 3:48 pm, Josh Ferguson <email@hidden> wrote:
> Sascha,
>
> I know this is true for C++ and I assume this is true in Objective-C. Since
> this object doesn't need to be deallocated while the application is running,
> it's perfectly safe to allow it to be cleaned up when the application's memory
> is freed when the process is terminated.

Nod. It is probably quicker to exit the process instead of potentially
paging in every object you've got allocated, just to dealloc it :-)

Objective-C's -dealloc method is also not an exact equivalent of a C++
destructor, as it is only meant to be used to free up memory. Other sorts of
cleanup (removing temporary files etc) should be done by waiting for an
applicationWillTerminate notification.

Cheers,

Chris
_______________________________________________
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: 
 >RE: dealloc strangeness in my custom view (From: "Josh Ferguson" <email@hidden>)

  • Prev by Date: RE: dealloc strangeness in my custom view
  • Next by Date: Re: FindFolder() and Cocoa
  • Previous by thread: RE: dealloc strangeness in my custom view
  • Next by thread: Clickable link in an NSTextField
  • Index(es):
    • Date
    • Thread