• 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
UIBarButtonItem message to first responder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSWindowController and designated initializer rules
  • Next by Date: NSButton, Templates, images…
  • Previous by thread: Re: CoreData Save As-problem
  • Next by thread: NSButton, Templates, images…
  • Index(es):
    • Date
    • Thread