• 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: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
  • Date: Thu, 11 Sep 2008 10:50:53 -0400
  • Thread-topic: NSXMLParser bug?

Yup, it does.  I'll have to keep that in mind the future.

Thanks for saving me from writing a useless bug report!

Thanks,
Cem Karan

-----Original Message-----
From: Graham Cox [mailto:email@hidden]
Sent: Thursday, September 11, 2008 9:10 AM
To: Karan, Cem (Civ, ARL/CISD)
Cc: email@hidden
Subject: Re: NSXMLParser bug?


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/Co
nceptual/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

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>)
 >Re: NSXMLParser bug? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Rounding very small numbers.
  • Next by Date: Re: 9/11 was an INSIDE JOB!
  • Previous by thread: Re: NSXMLParser bug?
  • Next by thread: Re: NSXMLParser bug?
  • Index(es):
    • Date
    • Thread