Re: IBOutlet appears as type NSObject?
Re: IBOutlet appears as type NSObject?
- Subject: Re: IBOutlet appears as type NSObject?
- From: Ben Kazez <email@hidden>
- Date: Mon, 31 May 2004 12:10:03 -0400
Ah! Wrong class name. All fixed now. Sorry for the stupid question.
On May 31, 2004, at 12:08 PM, Jonathan Jackel wrote:
On May 31, 2004, at 10:28 AM, Ben Kazez wrote:
I've declared an IBOutlet in a controller class like this:
IBOutlet BHKConnect4Board *board;
The class BHKConnect4Board has a (void)newGame selector. But when the
controller tries to call this selector, the program crashes and
here's what I get in the stack trace:
Exception: NSInvalidArgumentException
Reason: *** -[NSObject newGame]: selector not recognized
As you can see here--and as I can see in the debugger--it thinks the
board is an NSOBject.
Can anyone help me fix this? Thanks!
You probably didn't hook up the outlet correctly. Check it.
Disconnect it if it appears to be correct, then reconnect it and save
the nib.
Jonathan
--
Ben Kazez
http://ben.kazez.com/
_______________________________________________
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.