gnustep-dev
[Top][All Lists]
Advanced

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

Re: GSEncodingName


From: Richard Frith-Macdonald
Subject: Re: GSEncodingName
Date: Thu, 12 Oct 2006 22:20:40 +0100


On 12 Oct 2006, at 21:13, David Ayers wrote:

Hello Richard,

This function returned an non-localized NSString representation of an
NSStringEncoding allowing a way to specify a human readable/set- able yet
locale independent property list representation.

On the one hand it was a documented Function, one which replaced a
deprecated predecessor.  On the other hand a comment in the header
stated it was part of a set of private functions.

We use it GDL2 to allow the user to define the string encoding used by
the database in a locale independent manner with the model.  Of course
we could maintain a local mapping, but it seems to me that this
functionality should be kept together with the NSStringEncoding
definitions which -base provides.

I would like to request that we keep this IMHO very useful addition
unless there is some new API that replaces this functionality which I'm not aware of. At least I'd like to see a deprecation cycle despite the
comment in the header, which I admit I was not aware of until now.

I didn't realise this was used outside the base library.

I've no strong objection to putting it back, but I do want to minimise/remove non-standard APIs (just declaring them private is not good enough).

Would it really be a great hardship to just use the numeric values of the string encodings? I don't know the current state of GDL2 ... I guess if you dislike using a number there is no gui tool for manipulating models and you edit plists by hand?





reply via email to

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