X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JoystickController.m;h=33201f5ba2b98e6235f6f5506c2fc129591785fd;hp=cd513de0dde7024c2cc5c9144db16ef1f99818b6;hb=62aa5b73be6ec1e499e6b155cd0e7687c338cbaa;hpb=03b4a589de71a49ad00450701630673631e88647 diff --git a/JoystickController.m b/JoystickController.m index cd513de..33201f5 100644 --- a/JoystickController.m +++ b/JoystickController.m @@ -189,7 +189,7 @@ static void remove_callback(void *ctx, IOReturn inResult, void *inSender, IOHIDD return [item children] ? nil : item; } -- (int)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item { +- (NSInteger)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item { return item ? [[item children] count] : _joysticks.count; } @@ -197,7 +197,7 @@ static void remove_callback(void *ctx, IOReturn inResult, void *inSender, IOHIDD return item ? [[item children] count] > 0: YES; } -- (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item { +- (id)outlineView:(NSOutlineView *)outlineView child:(NSInteger)index ofItem:(id)item { return item ? [item children][index] : _joysticks[index]; }