• 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
Re: Programmatically place cursor within NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Programmatically place cursor within NSTextField (From: email@hidden)

  • Prev by Date: Re: How to include a .c file in a loadable bundle?
  • Next by Date: Re: Generate back trace programmatically?
  • Previous by thread: Re: Programmatically place cursor within NSTextField
  • Next by thread: Detect when another application goes into full screen mode or when dock becomes hidden
  • Index(es):
    • Date
    • Thread