[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CoreBase toll-free bridging
From: |
Chan Maxthon |
Subject: |
Re: CoreBase toll-free bridging |
Date: |
Tue, 12 Mar 2013 01:14:50 +0800 |
Thus I am once again suggesting implementing the entire CoreBase in Objective-C
and layer it above Base - that will save us all that hassle and can survive
future Base changes if compiled with non-fragile ABI support.
发自我的 iPhone
在 2013-3-12,1:07,David Chisnall <address@hidden> 写道:
> On 11 Mar 2013, at 16:33, Stefan Bidi <address@hidden> wrote:
>
>> You can just treat NSConstantString as an ObjC-only class and call the
>> appropriate methods. That's how this should work now, but I haven't
>> really spent a lot of time testing it.
>>
>> CFGetTypeID() is a complete hack, right now. The code checks for
>> cf->_typeID no matter what, and if doesn't match what the system
>> thinks it should be calls the method -_cfTypeID, which in turn returns
>> _kCFRuntimeNotATypeID for none CF types.
>
> As I recall, on OS X the isa pointer for bridged types contains the typeid.
> The Objective-C runtime has some extra logic that checks if the isa pointer
> is <= 0xffff and, if so, looks up the class from a table. The open source
> CFLite stuff doesn't have this.
>
> David
>
>
> _______________________________________________
> Gnustep-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/gnustep-dev
- Re: CoreBase toll-free bridging, (continued)
- Re: CoreBase toll-free bridging, David Chisnall, 2013/03/11
- Re: CoreBase toll-free bridging, Luboš Doležel, 2013/03/11
- Re: CoreBase toll-free bridging, David Chisnall, 2013/03/11
- Re: CoreBase toll-free bridging, Luboš Doležel, 2013/03/11
- Re: CoreBase toll-free bridging, Stefan Bidi, 2013/03/11
- Re: CoreBase toll-free bridging, Luboš Doležel, 2013/03/11
- Re: CoreBase toll-free bridging, Riccardo Mottola, 2013/03/11
- Re: CoreBase toll-free bridging, Stefan Bidi, 2013/03/11
- Re: CoreBase toll-free bridging, David Chisnall, 2013/03/11
- Re: CoreBase toll-free bridging,
Chan Maxthon <=
- Re: CoreBase toll-free bridging, Luboš Doležel, 2013/03/11
- Re: CoreBase toll-free bridging, Luboš Doležel, 2013/03/13
- Re: CoreBase toll-free bridging, Richard Frith-Macdonald, 2013/03/13
- Re: CoreBase toll-free bridging, Luboš Doležel, 2013/03/13
- Re: CoreBase toll-free bridging, Jean-Charles BERTIN, 2013/03/13
- Re: CoreBase toll-free bridging, Fred Kiefer, 2013/03/14
- Re: CoreBase toll-free bridging, Luboš Doležel, 2013/03/14
- Re: CoreBase toll-free bridging, David Chisnall, 2013/03/14
- FreeBSD with ObjC (was Re: CoreBase toll-free bridging), Derek Fawcus, 2013/03/14
- Re: FreeBSD with ObjC (was Re: CoreBase toll-free bridging), David Chisnall, 2013/03/14