• 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
(resend) Problem subclassing NSXMLElement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(resend) Problem subclassing NSXMLElement


  • Subject: (resend) Problem subclassing NSXMLElement
  • From: Joseph Jones <email@hidden>
  • Date: Mon, 27 Jun 2005 19:46:05 -0700

(Don't see that this made it to the list...)

HI all,

I am trying to subclass NSXMLElement to expand the functionality of element instances. I followed the rules in the docs for doing this with the exception of overriding initWithLocalName:URI: because there is NO message of that description on NSXMLElement. I instead overrode initWithName:URI:. I am returning my class from the replacementClassForClass class method on my subclass of NSXMLDocument. I put a breakpoint and I am successfully returning the class for the subclass I created. Unfortunately it appears that the class is being ignored. My subclass of NSXMLNode is working fine for those items being created as nodes and not elements.

I am at a total loss as to why this is happening. If anyone has a clue to what is going on or any tips on this it would be greatly appreciated.

Thanx,
joe


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Where is NSXMLChildren defined?
  • Next by Date: Re: Why add a nil item to an NSArray ?
  • Previous by thread: Re: Where is NSXMLChildren defined?
  • Next by thread: (resend) Problem subclassing NSXMLElement
  • Index(es):
    • Date
    • Thread