• 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
Accessing NSTextFieldDetails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing NSTextFieldDetails


  • Subject: Accessing NSTextFieldDetails
  • From: John Nairn <email@hidden>
  • Date: Thu, 09 May 2002 13:26:21 -0600

I am new to Cocoa and the first real, but simple, thing I am trying does
not seem possible?

I have a 1-line text field and I added buttons to click to insert text.
I want the inserted text to replace the current selection and the
insertion bar to then be after the new text. I can respond to the button
click and get or set the text of the field, but I can not find any way
to get the current selected range in the text field or to set the
selection to a point. I found it for NSTextView, but is it possible for
NSTextField (which is more logical in my application because it allows
horizontal scrolling and stops line breaks)? It seems like it would be a
common need?
----------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page: http://www.mse.utah.edu
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Accessing NSTextFieldDetails
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: [sort of OT] C++ headers and Objective-C++
  • Next by Date: Missing man pages
  • Previous by thread: Re: [sort of OT] C++ headers and Objective-C++
  • Next by thread: Re: Accessing NSTextFieldDetails
  • Index(es):
    • Date
    • Thread