• 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
How to make sure that end of string is visible in NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to make sure that end of string is visible in NSTextField
      • From: glenn andreas <email@hidden>
  • Prev by Date: Re: Tiger-style toolbars
  • Next by Date: Re: Getting the list of all known paper names
  • Previous by thread: Re: Custom controls in Interface Builder?
  • Next by thread: Re: How to make sure that end of string is visible in NSTextField
  • Index(es):
    • Date
    • Thread