• 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: Init method needed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Init method needed?


  • Subject: Re: Init method needed?
  • From: email@hidden
  • Date: Mon, 24 Jun 2002 08:58:01 -0500

If you REALLY don't have ANY initialization of any other objects (rare but certainly true) / data structures
than there is no reason that I can see to override the -init method..

likewise, if you don't alloc / retain any objects there is no reason to override -dealloc either..

However, those are both pretty darn rare circumstances if any application of interest.. :-)

-SJM


On Monday, June 24, 2002, at 08:44 AM, Michhle Garoche wrote:

Hello,

In a non-document based application, I use a subclass of NSObject as controller for the application.

I've implemented awakeFromNib and applicationDidFinishLaunching methods.

Should I implement init method too, though I have no need to initialize anything at this level?


Michhle
_______________________________________________
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.
_______________________________________________
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: Init method needed? + Dealloc method needed?
      • From: Michèle Garoche <email@hidden>
References: 
 >Init method needed? (From: Michèle Garoche <email@hidden>)

  • Prev by Date: Dealloc method needed?
  • Next by Date: Re: How to get notified on PPP connect/disconnect?
  • Previous by thread: Init method needed?
  • Next by thread: Re: Init method needed? + Dealloc method needed?
  • Index(es):
    • Date
    • Thread