Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old Feb 4, 2013, 09:45 AM   #1
Senor Cuete
macrumors regular
 
Join Date: Nov 2011
Problem with XCode 4 .6

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:

Code:
@interface  myClass : NSWindowController <NSTextFieldDelegate>
- (void) myMethodName: (int) x menu: (NSPopUpButton *) myMenu;
@end

@implementation
- (void) myMethodName: (int) x menu: (NSPopUpButton *) myMenu
{
}
@end
When I send my object a message such as:
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 by Senor Cuete; Feb 4, 2013 at 10:03 AM. Reason: More info
Senor Cuete is offline   0 Reply With Quote

 
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
XCode 5 DP and Java Problem aquethys Mac Programming 0 Aug 28, 2013 09:59 PM
Xcode OpenGL Ram Problem jmfel1926 Mac Programming 5 Aug 21, 2013 06:06 PM
Moving from xcode 3.2 to xcode 4.5.2 compilation error for 'abs' macro in stdlib.h hrishidev Mac Programming 7 Jun 2, 2013 10:36 AM
After updating XCode, output terminal problem iMacFarlane Mac Programming 9 Oct 3, 2012 11:29 PM
Xcode problem JamesP. Mac Applications and Mac App Store 0 Jul 4, 2012 10:41 AM

Forum Jump

All times are GMT -5. The time now is 11:22 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC