--(id)initWithDevice: (IOHIDDeviceRef) newDevice {
- if(self=[super init]) {
- children = [[NSMutableArray alloc]init];
-
- device = newDevice;
- productName = (__bridge NSString*)IOHIDDeviceGetProperty( device, CFSTR(kIOHIDProductKey) );
- vendorId = [(__bridge NSNumber*)IOHIDDeviceGetProperty(device, CFSTR(kIOHIDVendorIDKey)) intValue];
- productId = [(__bridge NSNumber*)IOHIDDeviceGetProperty(device, CFSTR(kIOHIDVendorIDKey)) intValue];
+- (id)initWithDevice: (IOHIDDeviceRef) newDevice {
+ if ((self = [super init])) {
+ children = [[NSMutableArray alloc] init];