• 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 with something....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Init with something....


  • Subject: Re: Init with something....
  • From: Shawn Erickson <email@hidden>
  • Date: Sat, 09 Dec 2006 21:55:10 -0800


On Dec 9, 2006, at 9:43 PM, Sandro Noel wrote:

Daniel, thank you!

initWithFile is calling [self init] not [super init]
if ((self = [self init])) {

I am doing it backwards :S

No not really... no forward or backwards really exists. This isn't Java with constructors but Objective-C which don't even have a forced instance initializer. Providing an initializer is a matter of defining the contract you expect (document) and any method could be one that you designate that must be called one way or another for the class to initialized.


Anyway what you had (as outline in your prior email) is perfectly fine.

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Init with something....
      • From: Sandro Noel <email@hidden>
References: 
 >Init with something.... (From: Sandro Noel <email@hidden>)
 >Re: Init with something.... (From: Daniel Jalkut <email@hidden>)
 >Re: Init with something.... (From: Sandro Noel <email@hidden>)

  • Prev by Date: Re: Init with something....
  • Next by Date: Re: What is going wrong with my image coloring?
  • Previous by thread: Re: Init with something....
  • Next by thread: Re: Init with something....
  • Index(es):
    • Date
    • Thread