Sub SetDateTimeLocale (locale As String)
Dim loc2 As NativeObject
loc2 = loc2.Initialize("NSLocale").RunMethod("localeWithLocaleIdentifier:", Array(locale))
Dim no As NativeObject = DateTime
no.GetField("dateFormat").SetField("locale", loc2)
no.GetField("timeFormat").SetField("locale", loc2)
End Sub
Sub GetPreferredLanguage As String
Dim no As NativeObject
Return no.Initialize("NSLocale").RunMethod("preferredLanguages", Null).RunMethod("objectAtIndex:", Array(0)).AsString
End Sub