Class not found in nib

Moderator
Posts: 450
Joined: 2003.08
Post: #1
I was working on a level editor for a game, and I came upon this weird bug. The game starts, but the log has these lists that say things like

2005-06-26 23:43:42.086 ShootEditor[9100] Unknown class 'TheView' in nib file, using `NSView' instead.
2005-06-26 23:43:42.167 ShootEditor[9100] Unknown class `Controller' in nib file, using `NSObject' instead.
2005-06-26 23:43:42.169 ShootEditor[9100] Could not connect the action save: to target of class NSObject
2005-06-26 23:43:42.170 ShootEditor[9100] Could not connect the action clear: to target of class NSObject
2005-06-26 23:43:42.171 ShootEditor[9100] Could not connect the action toolChanged: to target of class NSObject

I searched the internet, and all the people who had this problem where using java, and i'm not.Blink I'm just using Obj-C and Cocoa. Anyone have any ideas?

Alex
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
It means that you've set the custom class of an NSView in the nib to "TheView", and the custom class of an NSObject in the nib to "Controller", but you don't have "TheView" or "Controller" classes in your application.
Quote this message in a reply
Moderator
Posts: 450
Joined: 2003.08
Post: #3
Well, since it was wierd because no errors or bugs showed up, but they did over at keiths computer, i finally solved it by changing one letter from caps to non-caps, and all the errors showed up and the logs went away.

Alex
Quote this message in a reply
Post Reply