• 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: IBOutlet appears as type NSObject?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IBOutlet appears as type NSObject?


  • Subject: Re: IBOutlet appears as type NSObject?
  • From: James Spencer <email@hidden>
  • Date: Mon, 31 May 2004 10:51:09 -0500

On May 31, 2004, at 9: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!

It thinks it's an NSObject because your board instance variable is invalid. Have you connected your board object (a view?) to the outlet in Interface Builder? Are you actually loading the nib in your controller? There is not enough information (i.e. code) here to give you a real answer.

Spence

James P. Spencer
Rochester, MN

email@hidden

"Badges?? We don't need no stinkin badges!"
_______________________________________________
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: 
 >IBOutlet appears as type NSObject? (From: Ben Kazez <email@hidden>)

  • Prev by Date: Re: IBOutlet appears as type NSObject?
  • Next by Date: Re: beginSheetForDirectory problem
  • Previous by thread: Re: IBOutlet appears as type NSObject?
  • Next by thread: Re: IBOutlet appears as type NSObject?
  • Index(es):
    • Date
    • Thread