This subclass of IBObject is used to represents a set (mutable or not).
Inheritance: IBObject
Example #1
0
        public static IBObject GetInstance(IDictionary <String, String> attributes)
        {
            IBObject obj;

            switch (attributes["class"])
            {
            case "NSArray":
            case "NSMutableArray":
                obj = new IBArray(attributes);
                break;

            case "NSDictionary":
            case "NSMutableDictionary":
                obj = new IBDictionary(attributes);
                break;

            case "IBClassDescriber":
                obj = new IBClassDescriber(attributes);
                break;

            case "IBPartialClassDescription":
                obj = new IBPartialClassDescription(attributes);
                break;

            case "NSSet":
            case "NSMutableSet":
                obj = new IBSet(attributes);
                break;

            default:
                obj = new IBObject(attributes);
                break;
            }
            return(obj);
        }
Example #2
0
 public static IBObject GetInstance(IDictionary<String, String> attributes)
 {
     IBObject obj;
     switch (attributes["class"])
     {
         case "NSArray":
         case "NSMutableArray":
             obj = new IBArray(attributes);
             break;
         case "NSDictionary":
         case "NSMutableDictionary":
             obj = new IBDictionary(attributes);
             break;
         case "IBClassDescriber":
             obj = new IBClassDescriber(attributes);
             break;
         case "IBPartialClassDescription":
             obj = new IBPartialClassDescription(attributes);
             break;
         case "NSSet":
         case "NSMutableSet":
             obj = new IBSet(attributes);
             break;
         default:
             obj = new IBObject(attributes);
             break;
     }
     return obj;
 }