Re: Keep sibling view in Responder Chain
Re: Keep sibling view in Responder Chain
- Subject: Re: Keep sibling view in Responder Chain
- From: Trygve Inda <email@hidden>
- Date: Sat, 28 Dec 2013 20:47:34 -0800
- Thread-topic: Keep sibling view in Responder Chain
>> Can you give an example of how you do that? I guess I'd want it right after
>> my document controller. Do I need to walk the list looking for my document
>> controller?
>>
>> Or just do:
>>
>> [[document windowController] setNextResponder:sourceViewController]
>>
>> Trygve
>
> Well, you’ll also want to give the document a shot, so
>
> sourceViewController.nextResponder = document.windowController.nextResponder;
> document.windowController.nextResponder = sourceViewController;
>
> That way you insert between the window controller and the document. For window
> controllers without a document, the next responder is usually the application,
> IIRC, so you don’t want to sever the chain.
>
> That said, the supplemental target thing someone else suggested sounds like a
> nice and clean way of doing it that I haven’t tried yet.
That would require 10.7 and I am not sure if I am ready to stop supporting
10.6 yet.
Trygve
_______________________________________________
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