Accessing NSTextFieldDetails
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.