Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > 'CustomClass' does not respond to 'isKindOf:'

'CustomClass' does not respond to 'isKindOf:'
Thread Tools
Mac Enthusiast
Join Date: Mar 2000
Location: atx, usa
Status: Offline
Reply With Quote
Oct 7, 2003, 02:05 PM
 
hi all,

writing a program and i want to test to see if an object that is being passed is a type of a CustomClass that i created. i keep getting this error and wanted to know what i should do about it.

CustomClass extends another custom class which extends NSObject.

any suggestions would be helpful.

TIA, adam
"do unto others as you would have them do unto you" begins with yrself.

"He that fights for Allah's cause fights for himself. Allah does not need His creatures' help." -koran, the spider, 29:7
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Oct 7, 2003, 02:36 PM
 
isKindOf: is an instance method not a class method, I think.
     
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status: Offline
Reply With Quote
Oct 7, 2003, 05:07 PM
 
I thought it was isKindOfClass:[CustomClass class]
is that the problem?
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Oct 7, 2003, 08:06 PM
 
Originally posted by Uncle Skeleton:
I thought it was isKindOfClass:[CustomClass class]
is that the problem?
Yeah. Unless you've defined an isKindOf: method, I think you want isKindOfClass:.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:14 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2