On Jun 15, 2012, at 1:41 PM, Kyle Sluder wrote:
> What do you want the trigger to be for selecting all the text? "Whenever the
> user starts editing my text field, all the text should be selected so they
> can hit one key to replace it all?"
>
> If that's what you want, I'd just hook up an obj
On Jun 15, 2012, at 1:41 PM, Kyle Sluder wrote:
> What do you want the trigger to be for selecting all the text? "Whenever the
> user starts editing my text field, all the text should be selected so they
> can hit one key to replace it all?"
>
> If that's what you want, I'd just hook up an obj
On Jun 15, 2012, at 1:53 PM, Charlie Dickman wrote:
> You are going around the world to cross the street. Define an NSFormatter for
> your text field and implement a textfield delegate and you can have the exact
> control over the textfield that you are after.
NSFormatter doesn't sound appropri
You are going around the world to cross the street. Define an NSFormatter for
your text field and implement a textfield delegate and you can have the exact
control over the textfield that you are after.
On Jun 15, 2012, at 3:41 PM, Kyle Sluder wrote:
> On Jun 15, 2012, at 12:31 PM, koko wrote:
On Jun 15, 2012, at 12:31 PM, koko wrote:
> I have an NSTextField whose width is just enough for M and W. The filled can
> get set with text longer than one character. The user is to replace this
> multi-character text with a single character.
I'm really confused by your description of this i
I have an NSTextField whose width is just enough for M and W. The filled can
get set with text longer than one character. The user is to replace this
multi-character text with a single character.
So, without having to double click to select all text before entering the
single character replace
Jens, Graham,
> Note that NSTextView has: -
> (void)setSelectionGranularity:(NSSelectionGranularity)granularity
Yes, I saw that, it's a nice method.
> which might be all you need - just set it to NSSelectByWord every time you
> change the selection. This will keep getting reset so something wi
On 16/06/2010, at 6:16 AM, vincent habchi wrote:
> Le 15 juin 2010 à 21:58, Jens Alfke a écrit :
>
>> You’ll end up working with NSTextView regardless. NSTextField doesn’t do its
>> own text editing, it overlays a text view called the ‘field editor’ that’s
>> used by all controls in the window
On Jun 15, 2010, at 1:16 PM, vincent habchi wrote:
> Thanks for the answer, that's what I suspected. Before getting on, what, in
> your opinion, is the most handy solution? In order, what would you advise :
> NSTextView or a custom field editor?
I think I’d go with the custom field editor, sin
Le 15 juin 2010 à 21:58, Jens Alfke a écrit :
> You’ll end up working with NSTextView regardless. NSTextField doesn’t do its
> own text editing, it overlays a text view called the ‘field editor’ that’s
> used by all controls in the window. So to make this work in a text field
> you’d need to cr
On Jun 15, 2010, at 12:48 PM, vincent habchi wrote:
> I'd like to customize the way an NSTextField works, especially the selection
> mechanism (I'd would like the selection to break only at word boundaries,
> instead of at every character). Is this possible, or shall I turn to the
> bigger and
Hi there,
I'd like to customize the way an NSTextField works, especially the selection
mechanism (I'd would like the selection to break only at word boundaries,
instead of at every character). Is this possible, or shall I turn to the bigger
and bulkier NSTextView?
Thanks,
Vincent__
12 matches
Mail list logo