public void SetString(string value, string defaultName) { NSString str = new NSString(value); SetObjectForKey(str, defaultName); str.Dispose(); }
public static void GlobalSetClassName(string name, Class kls) { if (name == null) { throw new ArgumentNullException("name"); } if (kls == null) { throw new ArgumentNullException("kls"); } var nsname = new NSString(name); ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr(class_ptr, Selector.GetHandle("setClassName:forClass:"), nsname.Handle, kls.Handle); nsname.Dispose(); }