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

Problem subclassing NSXMLElement


  • Subject: Problem subclassing NSXMLElement
  • From: Joseph Jones <email@hidden>
  • Date: Sat, 25 Jun 2005 22:35:39 -0700

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: Re: Implementing Safari's incomplete download behavior
  • Next by Date: Re: "No Selection" in Core Data
  • Previous by thread: Re: How to support 'every' object in script interface
  • Next by thread: Date validation
  • Index(es):
    • Date
    • Thread