How to make sure that end of string is visible in NSTextField
How to make sure that end of string is visible in NSTextField
- Subject: How to make sure that end of string is visible in NSTextField
- From: Andrei Tchijov <email@hidden>
- Date: Fri, 18 Nov 2005 10:08:38 -0500
I have tried to use scrollRectToVisible: on text field, but it looks
like it should be used on something else.
...
NSSize size = [[ textField cell ] cellSize ];
NSRect endOfLine = NSMakeRect( 1,size.width-1,1,1);
[ textField scrollRectToVisible: endOfLine ];
...
Thanks,
Andrei Tchijov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden