Re: Creating selector for nonexistent method

2014-05-06 Thread Fritz Anderson
On 29 Apr 2014, at 9:29 PM, Charles Srstka wrote: > int main (__unused int argc, __unused const char **argv) { >@autoreleasepool { >NSArray *array = [NSArray new]; #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wselector" > array = [array sortedArrayUsingSelect

Re: Creating selector for nonexistent method

2014-04-29 Thread Charles Srstka
o : NSObject @end @implementation Foo @end int main (__unused int argc, __unused const char **argv) { @autoreleasepool { NSArray *array = [NSArray new]; [array sortedArrayUsingSelector:@selector(compare:)]; } return 0; } $ clang -Wselector -framework Foundation test.m test.m:1

Re: Creating selector for nonexistent method

2014-04-29 Thread Arved von Brasch
On 30 Apr 2014, at 4:38, Charles Srstka wrote: > So it seems that even if the method is defined in a header, you need it to be > in the @implementation block of a class for which you have the code in order > to use @selector without setting off -Wselector. This means that @selector > cannot be

Re: Creating selector for nonexistent method

2014-04-29 Thread Greg Parker
On Apr 29, 2014, at 11:38 AM, Charles Srstka wrote: > So it seems that even if the method is defined in a header, you need it to be > in the @implementation block of a class for which you have the code in order > to use @selector without setting off -Wselector. This means that @selector > canno

Re: Creating selector for nonexistent method

2014-04-29 Thread Charles Srstka
endAction:to:from: seems to be the preferred way to invoke the responder > chain to implement the clear: method in the Window controller. However, it > generates the following warning: > > “Creating selector for nonexistent method ‘clear:’ > > I can’t figure out how to get rid

Re: Creating selector for nonexistent method

2014-04-29 Thread Seth Willits
On Apr 29, 2014, at 9:56 AM, Kyle Sluder wrote: >>> “Creating selector for nonexistent method ‘clear:’ >>> >>> what I’d like to understand is why it’s coming out at all. >> >> Because when compiling that array controller's file, it has no idea th

Re: Creating selector for nonexistent method

2014-04-29 Thread Quincey Morris
On Apr 29, 2014, at 06:18 , Arved von Brasch wrote: > sendAction:to:from: seems to be the preferred way to invoke the responder > chain to implement the clear: method in the Window controller. This puzzles me. What are you actually trying to do? If you’re trying to invoke *the* clear: method i

Re: Creating selector for nonexistent method

2014-04-29 Thread Kyle Sluder
> On Apr 29, 2014, at 9:29 AM, Seth Willits wrote: > >> On Apr 29, 2014, at 6:18 AM, Arved von Brasch wrote: >> >> “Creating selector for nonexistent method ‘clear:’ >> >> what I’d like to understand is why it’s coming out at all. > > Because when

Re: Creating selector for nonexistent method

2014-04-29 Thread Seth Willits
On Apr 29, 2014, at 6:18 AM, Arved von Brasch wrote: > “Creating selector for nonexistent method ‘clear:’ > > what I’d like to understand is why it’s coming out at all. Because when compiling that array controller's file, it has no idea that -clear: exists anywhere in a

Creating selector for nonexistent method

2014-04-29 Thread Arved von Brasch
: “Creating selector for nonexistent method ‘clear:’ I can’t figure out how to get rid of this warning. The window controller’s header file is imported into the second class. Removing the import causes a second warning to be generated on the same line, which is what I expected (Undeclared

Re: How to resolve bulk warning "Creating selector for nonexistent method ..."?

2011-07-06 Thread Steve Christensen
t 12:04 PM, Motti Shneor wrote: >>>> Hi everyone. >>>> >>>> I'm building static library, whose outward API is plain "C", and whose >>>> implementation is Cocoa-based. >>>> >>>> It was building and working alrigh

Re: How to resolve bulk warning "Creating selector for nonexistent method ..."?

2011-07-05 Thread arri
ot;C", and whose >>> implementation is Cocoa-based. >>> >>> It was building and working alright, until (yesterday) something changed, >>> and any attempt to clean/build/rebuild it produces huge amount of >>> compilation warnings, on EVERY Obj-C

Re: How to resolve bulk warning "Creating selector for nonexistent method ..."?

2011-07-05 Thread Steve Christensen
oduces 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/...

Re: How to resolve bulk warning "Creating selector for nonexistent method ..."?

2011-07-03 Thread arri
uild/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/Da

How to resolve bulk warning "Creating selector for nonexistent method ..."?

2010-01-25 Thread Motti Shneor
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