• 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: [SOLVED] 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: [SOLVED] Re: How to make sure that end of string is visible in NSTextField


  • Subject: Re: [SOLVED] Re: How to make sure that end of string is visible in NSTextField
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 18 Nov 2005 10:27:50 -0800


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

[[[ textField window ] fieldEditor: YES forObject: nil ] scrollRangeToVisible: NSMakeRange([[ textField stringValue ] length], 0)];


Please use [textField currentEditor] rather than fieldEditor:forObject:. The fieldEditor:forObject: method is intended to be used by the control to create or take control of the shared field editor when it begins editing. What you want is to obtain a reference to the field editor while the control is editing, for which you should use currentEditor.


Douglas Davidson

_______________________________________________
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


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

  • Prev by Date: Re: JNI and bundles...
  • Next by Date: Incompatible types in Currency Converter tutorial
  • Previous by thread: Re: [SOLVED] How to make sure that end of string is visible in NSTextField
  • Next by thread: Re: How to make sure that end of string is visible in NSTextField
  • Index(es):
    • Date
    • Thread