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