• 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
First Responder on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

First Responder on iOS


  • Subject: First Responder on iOS
  • From: Graham Cox <email@hidden>
  • Date: Sat, 15 Jun 2013 16:06:40 +1000

Developing a simple iOS app, I've run into a little misunderstanding about First Responder.

On the Mac, the app's delegate gets messages intended for FR that reach NSApplication, on iOS, that appears not to be the case.

My app needs a simple action method that can be accessed from two different views. On iPad it gets sent from a control in a different view than it does on iPhone, because the iPhone doesn't have enough screen space for the control so I moved it to a second view there. I figured if I could put my action method in a common location that could be accessed via the responder chain, it wouldn't matter which view had the control. Unfortunately I found that adding the action method to the app delegate doesn't work as it would on Mac.

Does this mean I can't do this without subclassing UIApplication? Or is there a better common location I can put a method like this?

--Graham



_______________________________________________

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: Combining pan, zoom, and rotate gestures into one?
  • Next by Date: Re: Multiple Observations
  • Previous by thread: Re: Combining pan, zoom, and rotate gestures into one?
  • Next by thread: Re: If Statements In Objective C For IOS Development
  • Index(es):
    • Date
    • Thread