custom NSTextView
custom NSTextView
- Subject: custom NSTextView
- From: "Parrish Myers" <email@hidden>
- Date: Sun, 14 May 2006 09:39:23 -0700
Hello all,
Just for fun, I thought I would try to implement an IP Address Text Field
entry. Remember the IP text entry widget in windows... So the idea is to
have 4 fields separated by '.' and only allow text selection inside each
field.
From what I understand this is a good reason to subclass NSTextView and swap
out the FieldEditor for the NTTextField when asked. I'm getting the hand
of things, but I can't seem to figure out one thing...
Much like the NSDatePicker, I want to modify the text selection when the
widget reacts to becomeFirstResponder. But is seems that NSTextFields
select all text when they become First Responder. Can I change that? The
NSDatePicker does it somehow... does any one know how to change that?
Thanks.
Parrish
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden