Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableArray.replaceObjectAtIndex()


            super.setProperty(target, name, value);
            return;
        }
        NSMutableArray array = (NSMutableArray)target;
        if (name instanceof Number ) {
            array.replaceObjectAtIndex(value, ((Number)name).intValue());
            return;
        }
        if ( name instanceof DynamicSubscript ) {
            int len = array.count();
            switch ( ((DynamicSubscript)name).getFlag() )
View Full Code Here


        if ( name instanceof DynamicSubscript ) {
            int len = array.count();
            switch ( ((DynamicSubscript)name).getFlag() )
            {
                case DynamicSubscript.FIRST:    if ( len > 0 )
                    array.replaceObjectAtIndex(value, 0); return;
                case DynamicSubscript.MID:      if ( len > 0 )
                    array.replaceObjectAtIndex(value, len/2); return;
                case DynamicSubscript.LAST:     if ( len > 0 )
                    array.replaceObjectAtIndex(value, len-1); return;
                case DynamicSubscript.ALL:
View Full Code Here

            switch ( ((DynamicSubscript)name).getFlag() )
            {
                case DynamicSubscript.FIRST:    if ( len > 0 )
                    array.replaceObjectAtIndex(value, 0); return;
                case DynamicSubscript.MID:      if ( len > 0 )
                    array.replaceObjectAtIndex(value, len/2); return;
                case DynamicSubscript.LAST:     if ( len > 0 )
                    array.replaceObjectAtIndex(value, len-1); return;
                case DynamicSubscript.ALL:
                    array.setArray( NSPropertyListSerialization.arrayForString( (String) value ) );
                    return;
View Full Code Here

                case DynamicSubscript.FIRST:    if ( len > 0 )
                    array.replaceObjectAtIndex(value, 0); return;
                case DynamicSubscript.MID:      if ( len > 0 )
                    array.replaceObjectAtIndex(value, len/2); return;
                case DynamicSubscript.LAST:     if ( len > 0 )
                    array.replaceObjectAtIndex(value, len-1); return;
                case DynamicSubscript.ALL:
                    array.setArray( NSPropertyListSerialization.arrayForString( (String) value ) );
                    return;
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.