Re: NSXMLParser bug?
Re: NSXMLParser bug?
- Subject: Re: NSXMLParser bug?
- From: Graham Cox <email@hidden>
- Date: Thu, 11 Sep 2008 23:09:56 +1000
On 11 Sep 2008, at 10:50 pm, Karan, Cem (Civ, ARL/CISD) wrote:
I thought that all initializers had to call through the designated
initializer, which means that init should be overridden to call
initWithData:. Am I wrong?
Re-reading the docs:
file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_6.html
I don't see any requirement that init must be overridden to call the
designated initializer, only that clients of a class must use the
designated initializer. For some classes (NSView springs to mind) I
can't see an effective way that init could be overridden for all
possible classes. (That said I often do try to do this for my home-
grown classes, so that calling plain -init usually gives you something
that works).
Anyway try passing a dummy data object - does the crash go away?
G.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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