• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unimplemented Selector Warning 3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unimplemented Selector Warning 3


  • Subject: Re: Unimplemented Selector Warning 3
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 21 Aug 2012 23:48:11 +0700


On 21 Aug 2012, at 21:57, Keary Suska <email@hidden> wrote:

On Aug 21, 2012, at 12:18 AM, Gerriet M. Denkmann wrote:

I messed around with my Build Settings - activating more warnings. (Almost) always a good idea.

I have:
NSView *someSubclassOfView = ....;
if ( [ someSubclassOfView respondsToSelector: @selector(getRow:column:forPoint:) ] )
{
// this is a browser or a matrix or something else
// do something...
}

And get a warning: "Unimplemented selector 'getRow:column:forPoint:'".

Same problem with:
#import "Server.h" // declares: - (void) reset;
[ currentServers makeObjectsPerformSelector: @selector(reset) ];

And:
#import "SomeClass.h" // declares: - (void) someMethod: something;
SomeClass *someClass = ...;
[ someClass performSelectorOnMainThread: @selector(someMethod:)  withObject: nil  waitUntilDone: NO ];

What do I have to do to get rid of these warnings?

Do you import the "someSubclassOfView" header?

First of all, I do not know what class this thing is. In most cases it will be NSMatrix or NSBrowser.
And of course my ...pch file has:
    #import <Cocoa/Cocoa.h>
So NSMatrix and NSBrowser should be covered.

Kind regards,

Gerriet.


 _______________________________________________
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

References: 
 >Unimplemented Selector Warning 3 (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Unimplemented Selector Warning 3 (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Unimplemented Selector Warning 3
  • Next by Date: Re: Unimplemented Selector Warning 3
  • Previous by thread: Re: Unimplemented Selector Warning 3
  • Next by thread: Re: Unimplemented Selector Warning 3
  • Index(es):
    • Date
    • Thread