aboutsummaryrefslogtreecommitdiffstats
path: root/device_test
diff options
context:
space:
mode:
Diffstat (limited to 'device_test')
-rw-r--r--device_test/AppleMikeyPaneController.h2
-rw-r--r--device_test/AppleMikeyPaneController.m2
-rw-r--r--device_test/ButtonState.h1
-rw-r--r--device_test/KeyboardPaneController.m2
-rw-r--r--device_test/RemoteFeedbackView.m2
5 files changed, 5 insertions, 4 deletions
diff --git a/device_test/AppleMikeyPaneController.h b/device_test/AppleMikeyPaneController.h
index 28f6fc1..e02ec41 100644
--- a/device_test/AppleMikeyPaneController.h
+++ b/device_test/AppleMikeyPaneController.h
@@ -40,7 +40,7 @@
DDHidAppleMikey * mCurrentMikey;
}
-- (NSArray *) mMikeys;
+- (NSArray *) mikeys;
- (void) setMikeys: (NSArray *) theMikeys;
- (unsigned) mikeyIndex;
diff --git a/device_test/AppleMikeyPaneController.m b/device_test/AppleMikeyPaneController.m
index 0760688..ba0764e 100644
--- a/device_test/AppleMikeyPaneController.m
+++ b/device_test/AppleMikeyPaneController.m
@@ -151,7 +151,7 @@
if(!usage)
return;
- NSMutableDictionary * row = [mMikeysEventsController newObject];
+ NSMutableDictionary * row = [[mMikeysEventsController newObject] autorelease];
[row setObject: upOrDown ? @"Down" : @"Up" forKey: @"event"];
[row setObject:usage forKey: @"description"];
[mMikeysEventsController addObject: row];
diff --git a/device_test/ButtonState.h b/device_test/ButtonState.h
index 63bde74..d45ada5 100644
--- a/device_test/ButtonState.h
+++ b/device_test/ButtonState.h
@@ -30,6 +30,7 @@
BOOL mPressed;
}
+- (id) initWithName: (NSString *) name;
- (NSString *) name;
- (BOOL) pressed;
diff --git a/device_test/KeyboardPaneController.m b/device_test/KeyboardPaneController.m
index 1f8730e..0472718 100644
--- a/device_test/KeyboardPaneController.m
+++ b/device_test/KeyboardPaneController.m
@@ -169,7 +169,7 @@
usage: usageId],
usageId];
- NSMutableDictionary * row = [mKeyboardEventsController newObject];
+ NSMutableDictionary * row = [[mKeyboardEventsController newObject] autorelease];
[row setObject: event forKey: @"event"];
[row setObject: description forKey: @"description"];
[mKeyboardEventsController addObject: row];
diff --git a/device_test/RemoteFeedbackView.m b/device_test/RemoteFeedbackView.m
index acfdf3c..3afa067 100644
--- a/device_test/RemoteFeedbackView.m
+++ b/device_test/RemoteFeedbackView.m
@@ -97,7 +97,7 @@
DDHidAppleRemoteEventIdentifier buttonToSelect = lastButtonIdentifier;
- NSPoint buttonPos;
+ NSPoint buttonPos = NSZeroPoint;
float opacity = 0.5;
switch(buttonToSelect) {