10 #import <Cocoa/Cocoa.h>
20 NSAutoreleasePool *
pool = [[NSAutoreleasePool alloc]
init];
21 CFLocaleRef myCFLocale = CFLocaleCopyCurrent();
22 NSLocale *myNSLocale = (NSLocale *)myCFLocale;
23 [myNSLocale autorelease];
29 const NSString *nsIdentifier = [myNSLocale languageCode];
30 const NSString *
const nsIdentifier_country = [myNSLocale countryCode];
31 if ([nsIdentifier
length] != 0 && [nsIdentifier_country
length] != 0) {
32 nsIdentifier = [NSString stringWithFormat:
@"%@_%@", nsIdentifier, nsIdentifier_country];
void BLI_kdtree_nd_() free(KDTree *tree)
T length(const vec_base< T, Size > &a)
static char * user_locale
const char * osx_user_locale()