Re: Unrecognized Selector Exception from IBAction's?
Re: Unrecognized Selector Exception from IBAction's?
- Subject: Re: Unrecognized Selector Exception from IBAction's?
- From: Dave <email@hidden>
- Date: Thu, 03 Sep 2015 15:38:43 +0100
Hi,
> It looks like the buttons may be hooked up to an object of the wrong class? Your actions aren’t defined in NSConcreteHashTable. Check your connections.
>
> David
The Action Handlers are defined in LTWDisclosureViewController and LTWDetailViewController as shown in the original post.
The File’s owner in the LTWDetailViewController.xib is set to LTWDetailViewController and this is a subclass of LTWDisclosureViewController.
leftButtonAction and leftRightAction are hooked up in IB and defined in LTWDetailViewController.
toggleDisclosureAction is hooked up in IB and defined in LTWDisclosureViewController.
If I open the NIB file and the above .m files and hover the mouse over the IBAction’s in the .m, it lights up the corresponding Control in IB.
I’m a bit lost as to know where to start to track this down. The only thing I can think of is that the VC is created in code inside the WindowController and the ViewController is using the WindowController as the file’s owner, but then it shouldn’t/wouldn’t light up in IB?
Thanks in advance for any help.
All the Best
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden