Example #1
0
        public static string LocalizedStringFromNumber(double number, NSNumberFormatterStyle style)
        {
            IntPtr handle = ObjC.ToNSNumber(number);
            string text   = ObjC.MessageSendString(_classHandle, "localizedStringFromNumber:numberStyle:", handle, (int)style);

            ObjC.MessageSend(handle, "release");
            return(text);
        }
Example #2
0
        public string StringFromNumber(double number)
        {
            IntPtr handle = ObjC.ToNSNumber(number);
            string text   = ObjC.MessageSendString(Handle, "stringFromNumber:", handle);

            ObjC.MessageSend(handle, "release");
            return(text);
        }
Example #3
0
 public string ButtonTitle(int index)
 {
     return(ObjC.MessageSendString(Handle, "buttonTitleAtIndex:", index));
 }
Example #4
0
 public virtual string Abbreviation()
 {
     return(ObjC.MessageSendString(Handle, "abbreviation"));
 }
Example #5
0
 public string Abbreviation(DateTime date)
 {
     return(ObjC.MessageSendString(Handle, "abbreviationForDate:", date));
 }
Example #6
0
 private string ObjectForKey(string key)
 {
     return(ObjC.MessageSendString(Handle, "objectForKey:", key));
 }
Example #7
0
 public string LocalizedString(string key, string value = "", string table = "")
 {
     return(ObjC.MessageSendString(Handle, "localizedStringForKey:value:table:", key, value, table));
 }