Re: NSTextInputClient Protocol Question

2012-05-29 Thread Aki Inoue
Since -selectAll: is not specific to text, there should be a "physical" menu item inside the "Edit" menu. -moveToLeftEndOfLine: is useful only in text editing context. Aki On May 29, 2012, at 2:46 AM, Eric Matecki wrote: > Hi, > > But Command+LeftArrow does send the moveToLeftEndOfLine: selec

Re: NSTextInputClient Protocol Question

2012-05-29 Thread Eric Matecki
Hi, But Command+LeftArrow does send the moveToLeftEndOfLine: selector. So the choice of what goes to the menu, and what goes to -doCommandBySelector: must be more subtle than Command+key and (not Command)+key, or maybe just plain arbitrary ? A+ On 26/05/12 00:42, Aki Inoue wrote: Because the

Re: NSTextInputClient Protocol Question

2012-05-25 Thread Aki Inoue
Because the Command+ key combinations are served by menus, not by key bindings. You need to have a menu item with -selectAll: action reacting to Command+A. it's a part of the standard Edit menu. Aki On 2012/05/25, at 1:09, Eric Matecki wrote: > Hi, > > thanks Aki, now I got this working. > (

Re: NSTextInputClient Protocol Question

2012-05-25 Thread Eric Matecki
Hi, thanks Aki, now I got this working. (Sorry Aki for the msg send directly to you, I hit "send" too fast...) I have still a problem. When implementing -doCommandBySelector:, most keys do what I expect, but Command-A sends a selector of noop:, not selectAll: as I expected. What's happeneing ?

Re: NSTextInputClient Protocol Question

2012-05-21 Thread Aki Inoue
Hello Eric, > - (NSUInteger) characterIndexForPoint: (NSPoint) iPoint > - (NSRect) firstRectForCharacterRange: (NSRange) iRange actualRange: > (NSRangePointer) oActualRange > never get called, which I suppose are here for handling mouse events and thus > the selection ? The methods are for the