mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
Array API fixes
NQ menus work now.
This commit is contained in:
parent
5c8cb8fec8
commit
f86e933c6a
6 changed files with 9 additions and 9 deletions
|
@ -155,7 +155,7 @@ integer HUDHandleClass;
|
|||
|
||||
- (void) addFrame: (Frame) frame
|
||||
{
|
||||
[frames addItem :frame];
|
||||
[frames addObject: frame];
|
||||
}
|
||||
|
||||
- (void) changeFrame
|
||||
|
|
|
@ -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])];
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
- (View) addView: (View)aView
|
||||
{
|
||||
[views addItem:aView];
|
||||
[views addObject:aView];
|
||||
return aView;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
- (void) addName: (Symbol) sym
|
||||
{
|
||||
[names addItem: sym];
|
||||
[names addObject: sym];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
|
|
Loading…
Reference in a new issue