Re: Init with something....
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