gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing NSString getBytes


From: Maxthon Chan
Subject: Re: Implementing NSString getBytes
Date: Thu, 13 Jun 2013 05:26:21 +0800

Apple have already fused (most of) Foundation and CF into 
CoreFoundation.framework. We can totally combine them too - provide a 
libgnustep-corebase that contains (almost) all Foundation and all 
CoreFoundation, and a libgnustep-base that contains the rest of Foundation, 
linking against CoreFoundation.

Also shining a light to the GUI side, how about combine Opal (CoreGraphics) and 
Back? Implement GUI using CoreGraphics functions as Apple did, and handle the 
backend issue with CoreGraphics.

Alternatively, we can choose to implement Opal on top of CoreAnimation, then in 
turn on top of OpenGL (and let the OS handle how to get OpenGL work), and then 
GUI on top of Opal, deprecating Back totally.

This will require promoting CoreBase and Opal into Core package, merging them 
with existing packages Base and Back. It will deprecate all current Back API in 
favor of CoreGraphics API. Also, it will change the dependency order: GUI -> 
Back+Opal -> Base+CoreBase.

在 2013-6-13,上午5:12,Fred Kiefer <address@hidden> 写道:

> That code in CoreBase really looks quite nice. We should try to get more 
> shared code between base and CoreBase, this could be a very good example. Of 
> course with iconv as fallback when ICU isn't available and perhaps even a 
> fallback for missing iconv. (BTW the UConverter element in the structure 
> _str_encoding is never used and should be removed)
> 
> 
> 
> 
> On 09.06.2013 20:19, Stefan Bidi wrote:
>> I'm not too familiar with GSFromUnicode(), but couldn't you treat this
>> function in the same way that CoreBase treats ucnv_fromUnicode()?  That is,
>> pass the buffer into GSFromUnicode() with GSUniStrict option.  If it
>> returns NO, adjust the src and use NULL for dst.  Would that work?
>> 
>> That said, I think it would be a good idea if the function you came up with
>> would have the same signature as GSStringEncodingFromUnicode() in
>> corebase.  I'd like to one day be able to share more code between the two
>> projects and GSStringEncodingFromUnicode() already supports that method's
>> requirements.
> 
> 
> _______________________________________________
> Gnustep-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/gnustep-dev




reply via email to

[Prev in Thread] Current Thread [Next in Thread]