Exemplo n.º 1
0
        public void SetString(string value, string defaultName)
        {
            NSString str = new NSString(value);

            SetObjectForKey(str, defaultName);

            str.Dispose();
        }
Exemplo n.º 2
0
        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();
        }