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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to