Array API fixes

NQ menus work now.
This commit is contained in:
Jeff Teunissen 2010-12-12 05:40:24 -05:00
parent 5c8cb8fec8
commit f86e933c6a
6 changed files with 9 additions and 9 deletions

View file

@ -155,7 +155,7 @@ integer HUDHandleClass;
- (void) addFrame: (Frame) frame
{
[frames addItem :frame];
[frames addObject: frame];
}
- (void) changeFrame

View file

@ -128,13 +128,13 @@ init_binding_hash =
movement_bindings = [[Array alloc] init];
for (i = 0; i < @sizeof (movement_binding_list) / @sizeof (movement_binding_list[0]); i++)
[movement_bindings addItem: new_binding (movement_binding_list[i])];
[movement_bindings addObject: new_binding (movement_binding_list[i])];
misc_bindings = [[Array alloc] init];
for (i = 0; i < @sizeof (misc_binding_list) / @sizeof (misc_binding_list[0]); i++)
[misc_bindings addItem: new_binding (misc_binding_list[i])];
[misc_bindings addObject: new_binding (misc_binding_list[i])];
weapon_bindings = [[Array alloc] init];
for (i = 0; i < @sizeof (weapon_binding_list) / @sizeof (weapon_binding_list[0]); i++)
[weapon_bindings addItem: new_binding (weapon_binding_list[i])];
[weapon_bindings addObject: new_binding (weapon_binding_list[i])];
};

View file

@ -98,7 +98,7 @@ array_from_plist (PLArray plarray)
count = [plarray count];
for (i = 0; i < count; i++) {
ret = object_from_plist ([plarray getObjectAtIndex:i]);
[array addItem: ret.pointer_val];
[array addObject: ret.pointer_val];
}
ret.pointer_val = array;
return ret;

View file

@ -19,7 +19,7 @@
- (View) addView: (View)aView
{
[views addItem:aView];
[views addObject:aView];
return aView;
}

View file

@ -28,14 +28,14 @@
[inst source: [self source]];
[inst offset: [instructions count]];
if ([inst opcode] != LABEL) {
[instructions addItem: inst];
[instructions addObject: inst];
}
}
- (integer) addConstant: (SchemeObject) c
{
local integer number = [constants count];
[constants addItem: c];
[constants addObject: c];
return number;
}

View file

@ -66,7 +66,7 @@
- (void) addName: (Symbol) sym
{
[names addItem: sym];
[names addObject: sym];
}
- (void) dealloc