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: Simon Stapleton <email@hidden>
- Date: Sat, 19 Oct 2002 17:25:38 +0200
On Friday, Oct 18, 2002, at 23:13 Europe/Paris, Finlay Dobbie wrote:
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 :-)
Okeydokey. That's out then. Poop. I was kind of hoping it could be
done without having to hack the CF code as well. I'll have a shufty at
the CF source just to see how it's done though. Might be useful to
know, for varying values of useful.
Back to wrapping, I guess. And it's not even nearly Christmas yet.
Simon
--
PGP Key Id : 0x50D0698D
--
If the answer isn't obvious, the question is a distraction. Go find an
easier question.
_______________________________________________
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.