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 PROTECTED] 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/mac_vieuxnez %40mac.com

This email sent to [EMAIL PROTECTED]

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to