Smartmobili.Cocoa.NSColorList.InsertColor C# (CSharp) Method

InsertColor() public method

public InsertColor ( NSColor color, NSString key, uint location ) : void
color NSColor
key NSString
location uint
return void
        public virtual void InsertColor(NSColor color, NSString key, uint location)
        {
            NSNotification n = null;

            if (_is_editable == false)
                throw new Exception(@"Color list cannot be edited");

            _colorDictionary.SetObjectForKey(color, key);
            _orderedColorKeys.RemoveObject(key);
            _orderedColorKeys.InsertObject(key, location);

            // We don't support notifs for now ...
            //n = NSNotification.NotificationWithName(@"NSColorListDidChangeNotification", this, null);
            //NSNotificationQueue.DefaultQueue.EnqueueNotification(n, NSPostASAP, NSNotificationCoalescingOnSender, null);
        }