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 (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