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

Re: How to make sure that end of string is visible in NSTextField


  • Subject: Re: How to make sure that end of string is visible in NSTextField
  • From: glenn andreas <email@hidden>
  • Date: Fri, 18 Nov 2005 10:30:22 -0600


On Nov 18, 2005, at 9:30 AM, Andrei Tchijov wrote:

No good. "scrollRangeToVisible:" is NSText method and NSTextField does not inherit from it.

On Nov 18, 2005, at 10:20 AM, glenn andreas wrote:

[textField scrollRangeToVisible: NSMakeRange([[textField string] length], 0)];


That'll teach me for trying to parse email before coffee...

Anyway, I'm not sure that you can easily accomplish this with an NSTextField (short of subclassing NSTextFieldCell) - I'd consider switching it to an NSTextView instead.


Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! quadrium | build, mutate, evolve | images, textures, backgrounds, art

_______________________________________________
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:
    • [SOLVED] Re: How to make sure that end of string is visible in NSTextField
      • From: Andrei Tchijov <email@hidden>
References: 
 >How to make sure that end of string is visible in NSTextField (From: Andrei Tchijov <email@hidden>)
 >Re: How to make sure that end of string is visible in NSTextField (From: glenn andreas <email@hidden>)
 >Re: How to make sure that end of string is visible in NSTextField (From: Andrei Tchijov <email@hidden>)

  • Prev by Date: Re: NSImageView does not update on setNeedsDisplay
  • Next by Date: Asynchronous Methods Question
  • Previous by thread: Re: How to make sure that end of string is visible in NSTextField
  • Next by thread: [SOLVED] Re: How to make sure that end of string is visible in NSTextField
  • Index(es):
    • Date
    • Thread