mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Add method +[NSLocale localeWithLocaleIdentifier:], which was
introduced in OS X 10.6. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39516 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0c0cc7aedc
commit
afc8ff1c47
3 changed files with 17 additions and 0 deletions
|
@ -588,6 +588,11 @@ static NSRecursiveLock *classLock = nil;
|
|||
return AUTORELEASE(result);
|
||||
}
|
||||
|
||||
+ (id) localeWithLocaleIdentifier:(NSString *)string
|
||||
{
|
||||
return AUTORELEASE([[NSLocale alloc] initWithLocaleIdentifier: string]);
|
||||
}
|
||||
|
||||
+ (NSString *) localeIdentifierFromComponents: (NSDictionary *) dict
|
||||
{
|
||||
NSString *result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue