summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLAddSubMenu.m
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2016-10-24 11:32:16 -0600
committerMuller, Alexander (A.) <amulle19@ford.com>2016-10-24 11:32:16 -0600
commit02007d34a9bf3aa5fbbe08f6355a7ea6ea7f1303 (patch)
tree61e6b0e9a860a970071b44031b4e9976dceac9cf /SmartDeviceLink/SDLAddSubMenu.m
parent588e2d0b57d83680a159ef0fc8a7cc00255c6ef8 (diff)
downloadsdl_ios-02007d34a9bf3aa5fbbe08f6355a7ea6ea7f1303.tar.gz
Added missing generics and removed remaining NSNumbers used in initializers
Diffstat (limited to 'SmartDeviceLink/SDLAddSubMenu.m')
-rw-r--r--SmartDeviceLink/SDLAddSubMenu.m18
1 files changed, 13 insertions, 5 deletions
diff --git a/SmartDeviceLink/SDLAddSubMenu.m b/SmartDeviceLink/SDLAddSubMenu.m
index f30a23c16..983325dee 100644
--- a/SmartDeviceLink/SDLAddSubMenu.m
+++ b/SmartDeviceLink/SDLAddSubMenu.m
@@ -18,21 +18,29 @@
return self;
}
-- (instancetype)initWithId:(NSNumber *)menuId menuName:(NSString *)menuName {
- return [self initWithId:menuId menuName:menuName position:nil];
+
+- (instancetype)initWithId:(UInt8)menuId menuName:(NSString *)menuName position:(UInt8)position {
+ self = [self initWithId:menuId menuName:menuName];
+ if (!self) {
+ return nil;
+ }
+
+ self.position = @(position);
+
+ return self;
}
-- (instancetype)initWithId:(NSNumber *)menuId menuName:(NSString *)menuName position:(NSNumber *)position {
+- (instancetype)initWithId:(UInt8)menuId menuName:(NSString *)menuName {
self = [self init];
if (!self) {
return nil;
}
- self.menuID = menuId;
+ self.menuID = @(menuId);
self.menuName = menuName;
- self.position = position;
return self;
+
}
- (void)setMenuID:(NSNumber *)menuID {