I upgraded from XCode 4.5 to XCode 4.6 two days ago. Now none of my class methods will work if they have more that one parameter. For example:
When I send my object a message such as:
It will cause an error: unrecognized selector sent to instance 0xnnnnnnnnn.
This builds correctly with no warnings and it worked in earlier versions of Xcode.
What's wrong?
I turned the Apple LLVM compiler 4.2 - warnings -Objective C
Multiple Definition Types for Selector
Strict Selector Matching and
Undeclared Selector
to yes and rebuilt the project. No warning during build but crash during execution.
Code:
@interface myClass : NSWindowController <NSTextFieldDelegate>
- (void) myMethodName: (int) x menu: (NSPopUpButton *) myMenu;
@end
@implementation
- (void) myMethodName: (int) x menu: (NSPopUpButton *) myMenu
{
}
@end
Code:
[self myMethodName: (int) x menu: (NSPopUpButton *) myMenu];
It will cause an error: unrecognized selector sent to instance 0xnnnnnnnnn.
This builds correctly with no warnings and it worked in earlier versions of Xcode.
What's wrong?
I turned the Apple LLVM compiler 4.2 - warnings -Objective C
Multiple Definition Types for Selector
Strict Selector Matching and
Undeclared Selector
to yes and rebuilt the project. No warning during build but crash during execution.
Last edited: