Re: Bridging (was Re: A CFStringRef that throws EXC_BAD_ACCESS)
Re: Bridging (was Re: A CFStringRef that throws EXC_BAD_ACCESS)
- Subject: Re: Bridging (was Re: A CFStringRef that throws EXC_BAD_ACCESS)
- From: Finlay Dobbie <email@hidden>
- Date: Fri, 18 Oct 2002 22:13:08 +0100
On Thursday, October 17, 2002, at 09:20 pm, Simon Stapleton wrote:
Anyone here have any clues as to how one could go about bridging
classes oneself? I'm assuming it involves hand-building classes on
the fly. I am, as it happens, playing with XML services, and I'd
quite like to create an xxXMLNode Objective-C class that bridges
directly to CFXMLNode.
Now, I'm perfectly aware that I could happily create a class that
'wraps' CFXMLNode and forget about it, but I kind of got wondering
about how the bridging stuff works, and one thing led to another, and
before you know it I'm back ploughing into the runtime ...
Well... You'd need to modify CFXMLNode to make it into a toll-free
bridged class, and I'm not sure if the src is available (it might be in
CFLite, haven't checked). You can have a look at other things in
CFLite, like CFString, to see how it's done. Unsurprisingly, it's a
great big ugly mess :-)
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.