UIBarButtonItem message to first responder?
UIBarButtonItem message to first responder?
- Subject: UIBarButtonItem message to first responder?
- From: Rick Mann <email@hidden>
- Date: Tue, 24 Jun 2014 14:38:26 -0700
I've got a UIBarButtonItem in a UINavigationBar that needs to send a message to an ancestral view controller. I tried connecting its action outlet in IB to the (current) view controller's firstResponder outlet, which then presents me with a list of possible actions, including the one I want it to send. But the connection is never established (that is, IB doesn't darken the little dot next to the outlet name), and at runtime nothing happens.
I tried sending the message to nil in code from an action in the current view controller (which I can wire up just fine), but I guess that's not how one sends messages up the responder chain. I thought "nil" was a special case for the first responder, but obviously that's not correct. There doesn't seem to be a sanctioned way to get the first responder, which seems silly (which is IB allowed but my code is not?).
Is this a bug in IB?
--
Rick
_______________________________________________
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