Example #1
0
        protected virtual NSString _SubtreeDescriptionWithPrefix(NSString prefix)
        {
            NSMutableString desc = (NSMutableString)NSMutableString.Alloc ().Init();
            NSEnumerator e;
            NSView v;

            desc.AppendFormat(@"%@%@\n", prefix, this.Description(), null);

            prefix = prefix.StringByAppendingString(@"  ");
            e = _sub_views.ObjectEnumerator();
            while ((v = (NSView)e.NextObject()) != null)
            {
                desc.AppendString(v._SubtreeDescriptionWithPrefix(prefix));
            }

            return desc;
        }