• 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: keep scrollbar knob at bottom?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keep scrollbar knob at bottom?


  • Subject: Re: keep scrollbar knob at bottom?
  • From: Stephan Burlot <email@hidden>
  • Date: Tue, 31 Dec 2002 13:17:28 +0100

Le Mardi, 31 dic 2002, ` 08:51 Europe/Zurich, Eric Blom a icrit :


I believe the following lines of codes are relevant to my question and my clarify my intent.

IBOutlet NSTextView *logWindow;
NSString *message;
NSPoint myPoint;
myPoint.x = 0;
myPoint.y = 200000;
[logWindow setString: [[logWindow string] stringByAppendingString:message]];
[logWindow scrollPoint:myPoint];

Should be:
[logWindow scrollRangeToVisible:NSMakeRange([[logWindow string] length], 0)];

Strange to see a NSTextView called logWindow...

Stephan
_______________________________________________
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.

References: 
 >keep scrollbar knob at bottom? (From: Eric Blom <email@hidden>)

  • Prev by Date: IOKit and DVD access
  • Next by Date: Re: straight-C DNS lookup with timeout?
  • Previous by thread: keep scrollbar knob at bottom?
  • Next by thread: Re: keep scrollbar knob at bottom?
  • Index(es):
    • Date
    • Thread