Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
@implementation CameraPhone
|
||||
|
||||
-(id)init {
|
||||
-(instancetype)init {
|
||||
if ((self = [super init])) {
|
||||
camera = [[Camera alloc] init];
|
||||
phone = [[MobilePhone alloc] init];
|
||||
|
|
@ -38,6 +38,12 @@
|
|||
[self doesNotRecognizeSelector:aSelector];
|
||||
}
|
||||
|
||||
-(NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector {
|
||||
return [camera methodSignatureForSelector:aSelector]
|
||||
?: [phone methodSignatureForSelector:aSelector]
|
||||
?: [super methodSignatureForSelector:aSelector];
|
||||
}
|
||||
|
||||
-(BOOL)respondsToSelector:(SEL)aSelector {
|
||||
return [camera respondsToSelector:aSelector]
|
||||
|| [phone respondsToSelector:aSelector]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue