• 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: 'Class' may not respond to +isKindOfClass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'Class' may not respond to +isKindOfClass


  • Subject: Re: 'Class' may not respond to +isKindOfClass
  • From: Marc LAFFITTE <email@hidden>
  • Date: Thu, 15 Apr 2004 12:30:53 +0200

Hello,
How does your declaration of variable paneClass look like?
It should be id or a more specific type if you use casting.
isKindOfClass makes sence only for object instances: You have an object instance and you would like to know if it is of a specific kind.
If a +isKindOfClass were defined then it would take your object instance as parameter. It would just be a second way for doing the same thing.

Marc

On jeudi, avr 15, 2004, at 11:25 Europe/Paris, Larry Fransson wrote:

Can anyone tell me why the following would generate the subject warning?

[paneClass isKindOfClass:[NSObject class]

In this case, paneClass comes either from NSClassFromString() or a
bundle's principal class. I can't find a "+isKindOfClass:" anywhere.
I can find "-isKindOfClass:", though. Also odd is that if I close the
project after receiving the warning, reopen it and then build, the
warning no longer appears.

Larry Fransson
Seattle, WA
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >'Class' may not respond to +isKindOfClass (From: Larry Fransson <email@hidden>)

  • Prev by Date: Re: Is NSDocument read outside init?
  • Next by Date: Re: NSOutlineView reloadItem:reloadChildren: selection bug
  • Previous by thread: Re: 'Class' may not respond to +isKindOfClass
  • Next by thread: NSOutlineView reloadItem:reloadChildren: selection bug
  • Index(es):
    • Date
    • Thread