How to resolve bulk warning "Creating selector for nonexistent method ..."?
How to resolve bulk warning "Creating selector for nonexistent method ..."?
- Subject: How to resolve bulk warning "Creating selector for nonexistent method ..."?
- From: Motti Shneor <email@hidden>
- Date: Sun, 10 Jan 2010 07:40:28 -0500
- Acceptlanguage: en-US
- Thread-topic: How to resolve bulk warning "Creating selector for nonexistent method ..."?
Hi.
I'm building static library, whose outward API is plain "C", and whose implementation is Cocoa-based.
It was building and working alright, until (one day.... yesterday...) any attempt to clean/build/rebuild it produces huge amount of compilation warnings, on EVERY Obj-C message.
First, there's a bulk of warnings like this:
/Volumes/Data/.../FileManager_GUI_Mac.mm:224: warning: creating selector for nonexistent method 'openPanel'
/Volumes/Data/.../FileManager_GUI_Mac.mm:196: warning: creating selector for nonexistent method 'release'
/Volumes/Data/.../FileManager_GUI_Mac.mm:193: warning: creating selector for nonexistent method 'code'
/Volumes/Data/.../FileManager_GUI_Mac.mm:190: warning: creating selector for nonexistent method 'savePanel'
/Volumes/Data/.../FileManager_GUI_Mac.mm:190: warning: creating selector for nonexistent method 'alloc'
/Volumes/Data/.../FileManager_GUI_Mac.mm:171: warning: creating selector for nonexistent method 'stringWithFormat:'
/Volumes/Data/.../FileManager_GUI_Mac.mm:160: warning: creating selector for nonexistent method 'getCString:maxLength:encoding:'
Then I get another bulk of warnings, complaining about DOUBLE definitions for Cocoa methods!!!!
/Volumes/Data/.../FileManager_GUI_Mac.mm:244:0
/Volumes/Data/.../FileManager_GUI_Mac.mm:244: warning: multiple selectors named '+isVertical' found
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitView.h:30:0 /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSplitView.h:30: warning: found '-(BOOL)isVertical'
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderCell.h:59:0 /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSliderCell.h:59: warning: also found '-(NSInteger)isVertical'
I verified that I only #import <Cocoa/Cocoa.h> once, in one internal header (interface) file, and I added (linked) the Cocoa Framework once in the project, referencing the "Current SDK".
The project DOES compile, and even works, but these warnings worry me, as I might be using a wrong framework, and the code may break on a user machine?
Any idea will be greatly appreciated.
Motti Shneor
------------------------------------------
Senior Software Engineer
Waves Audio ltd.
[mailto: email@hidden]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden