Re: Programmatically place cursor within NSTextField
Re: Programmatically place cursor within NSTextField
- Subject: Re: Programmatically place cursor within NSTextField
- From: Dustin Robert Kick <email@hidden>
- Date: Wed, 13 Aug 2008 14:40:46 -0500
This can also be done with an NSFormatter. I've only worked through
one example, long enough ago that I can't give helpful details, but
you should be able to find an example on how to do something similar
to what you're trying to do. I believe the example I looked at was
using an NSFormatter to automatically place the dashes in a phone
number...
Ok, the example I was thinking of was in "Cocoa Programming" (http://tinyurl.com/cocproggb
)
There is also "Introduction to Data Formatting Programming Guide For
Cocoa" in the Xcode documentation, I'm sure they'll give a pretty good
example in there.
Dustin
KC9MEL
On Aug 13, 2008, at 6:02 AM, email@hidden wrote:
How can I programmatically position the cursor to an arbitrary
position with a NSTextField?
For example, placing a cursor within the parentheses '('...')' of a
phone number?
Regards,
Ric.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@mac.com
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden