• 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: NSXMLParser bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSXMLParser bug?
      • From: "Ken Ferry" <email@hidden>
    • RE: NSXMLParser bug?
      • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
References: 
 >NSXMLParser bug? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: NSXMLParser bug? (From: Graham Cox <email@hidden>)
 >RE: NSXMLParser bug? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)

  • Prev by Date: Re: Cocoa application running very slow under 64 bit
  • Next by Date: Re: BOOL array
  • Previous by thread: RE: NSXMLParser bug?
  • Next by thread: RE: NSXMLParser bug?
  • Index(es):
    • Date
    • Thread