• 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
NSView nextResponder always the viewController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView nextResponder always the viewController?


  • Subject: NSView nextResponder always the viewController?
  • From: Gordon Apple <email@hidden>
  • Date: Tue, 16 Dec 2014 18:51:38 -0500
  • Thread-topic: NSView nextResponder always the viewController?

In Yosemite, any included viewController is automatically inserted into the
view¹s responder chain. Something is not working right. In many of our
views, we insert controllers (derived from NSResponder) A and B into the
view¹s responder chain. A must come first, then B, so B is inserted first as
the view¹s next responder, then A. The expected (and previous) result is
view -> A -> B -> viewController -> whatever. However, after each insertion
of A or B, the view¹s next responder is still the viewController. In fact,
what we get is view -> viewController -> A -> viewController -> A -> ...  ,
a nice little infinite loop. What gives here? Is the view¹s viewController
now somehow hard-wired such that it is always the view¹s next responder, and
we can¹t change it, and can only append after the viewController?

When I first heard about this new feature, I thought it was a good idea.
Now, I¹m not so sure. Another issue we have always had to deal with in the
view is that drag/drop are not standard events and have to forwarded to a
delegate if you want to handle them elsewhere.

_______________________________________________

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


  • Follow-Ups:
    • Re: NSView nextResponder always the viewController?
      • From: Lee Ann Rucker <email@hidden>
  • Prev by Date: Re: Issues with applications running on background (Alarm Application)
  • Next by Date: Re: NSView nextResponder always the viewController?
  • Previous by thread: RE: Issues with applications running on background (Alarm Application)
  • Next by thread: Re: NSView nextResponder always the viewController?
  • Index(es):
    • Date
    • Thread