projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split view management out of NJDeviceController. Right now this probably just makes...
[enjoyable.git]
/
Classes
/
NJDevice.m
diff --git
a/Classes/NJDevice.m
b/Classes/NJDevice.m
index
b03898f
..
ddc6cde
100644
(file)
--- a/
Classes/NJDevice.m
+++ b/
Classes/NJDevice.m
@@
-76,6
+76,12
@@
static NSArray *InputsForElement(IOHIDDeviceRef device, id parent) {
return self;
}
return self;
}
+- (BOOL)isEqual:(id)object {
+ return [object isKindOfClass:NJDevice.class]
+ && [[(NJDevice *)object productName] isEqualToString:self.productName]
+ && [(NJDevice *)object index] == self.index;
+}
+
- (NSString *)name {
return [NSString stringWithFormat:@"%@ #%d", _productName, _index];
}
- (NSString *)name {
return [NSString stringWithFormat:@"%@ #%d", _productName, _index];
}