Re: Keep sibling view in Responder Chain

2013-12-28 Thread Quincey Morris
On Dec 28, 2013, at 20:47 , Trygve Inda wrote: > That would require 10.7 and I am not sure if I am ready to stop supporting > 10.6 yet. What’s wrong with the even more straightforward approach of implementing each action method in an object that’s going to be in the responder chain at the corr

Re: Keep sibling view in Responder Chain

2013-12-28 Thread Trygve Inda
>> 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

Re: Keep sibling view in Responder Chain

2013-12-28 Thread Uli Kusterer
On 28 Dec 2013, at 18:48, Trygve Inda wrote: >> >> On 27 Dec 2013, at 13:52, Trygve Inda wrote: >> >>> I have a document with a SourceView on the left side (like iTunes). Some >>> main menu commands pertain to actions in the Source View. This works fine if >>> the SourceView is the active vie

Re: Keep sibling view in Responder Chain

2013-12-28 Thread Trygve Inda
> > On 27 Dec 2013, at 13:52, Trygve Inda wrote: > >> I have a document with a SourceView on the left side (like iTunes). Some >> main menu commands pertain to actions in the Source View. This works fine if >> the SourceView is the active view but my window has other views held in a >> SplitView

Re: Keep sibling view in Responder Chain

2013-12-28 Thread Uli Kusterer
On 27 Dec 2013, at 13:52, Trygve Inda wrote: > I have a document with a SourceView on the left side (like iTunes). Some > main menu commands pertain to actions in the Source View. This works fine if > the SourceView is the active view but my window has other views held in a > SplitView. > > If

Re: Keep sibling view in Responder Chain

2013-12-27 Thread Kyle Sluder
On Dec 27, 2013, at 4:52 AM, Trygve Inda wrote: > > If a sibling of the SourceView is active, the SourceView is not in the > responder chain and thus my menu commands are greyed out. > > How can I keep a sibling view in the responder chain? This is OS X, right? Implement -supplementalTargetFor

Re: Keep sibling view in Responder Chain

2013-12-27 Thread Trygve Inda
> Hi > > Use SetNextResponder method to insert your view into the responder chain. > https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Even > tOverview/EventArchitecture/EventArchitecture.html will give the more > information. > > So when can I know to call setNextResponder

Re: Keep sibling view in Responder Chain

2013-12-27 Thread Appa Rao Mulpuri
Hi Use SetNextResponder method to insert your view into the responder chain. https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Even tOverview/EventArchitecture/EventArchitecture.html will give the more information. Regards, Apparao Mulpuri On 12/27/13 6:22 PM, "Trygve Ind