• 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: Bridging (was Re: A CFStringRef that throws EXC_BAD_ACCESS)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Bridging (was Re: A CFStringRef that throws EXC_BAD_ACCESS)
      • From: Simon Stapleton <email@hidden>
    • Re: Bridging (was Re: A CFStringRef that throws EXC_BAD_ACCESS)
      • From: Timothy Ritchey <email@hidden>
References: 
 >Re: Bridging (was Re: A CFStringRef that throws EXC_BAD_ACCESS) (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: How to avoid a Windows interface on OS X?
  • Next by Date: Re: Could it really move? (Carbon Memory Manager)
  • Previous by thread: Re: Bridging (was Re: A CFStringRef that throws EXC_BAD_ACCESS)
  • Next by thread: Re: Bridging (was Re: A CFStringRef that throws EXC_BAD_ACCESS)
  • Index(es):
    • Date
    • Thread