• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
custom NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: custom NSTextView
      • From: Andrew Bowman <email@hidden>
  • Prev by Date: Re: find - sort - locate.big...
  • Next by Date: Adding objects to NSArrayController bound to Core Data
  • Previous by thread: Re: ATSUI text in an NSView problems
  • Next by thread: Re: custom NSTextView
  • Index(es):
    • Date
    • Thread