• 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
scrollPoint in Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scrollPoint in Tiger


  • Subject: scrollPoint in Tiger
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sat, 25 Jun 2005 14:30:20 +0200

My textView (subclass of NSTextView) is visible in a scroll view at y = 880 + 700 [textView visibleRect].
usedRectForTextContainer.size.height = 2000 [layoutManager usedRectForTextContainer: textContainer]


Then I delete programatically 20 lines = 280 points somewhere at the top of my text.

Then I do: [textView scrollPoint: NSMakePoint(0, visibleRect.origin.y - 280) ]

(This has the effect that the bottom lines appear not to have moved in my window, although something was deleted at the top of the text).

In Panther I get just what I want.

In Tiger (10.4.1) the last visibleRect.size.height - 280 points at the bottom of the page are a copy of the top of the page before I did my deletion.
This looks confusing and extremely silly.
These bad area goes away when I scroll it out of the window and back again.


Or I can do a [textView setNeedsDisplay: YES ] immediately after scrollPoint:.

Is this Tiger behaviour correct? Was it just luck that Panther used to do what I wanted?


Kind regards,

Gerriet.

_______________________________________________
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: scrollPoint in Tiger
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: Class clusters - infinite loop?
  • Next by Date: Re: Can't keep from leaking memory
  • Previous by thread: Amatuer problem with NSTextField and NSButton [Solved]
  • Next by thread: Re: scrollPoint in Tiger
  • Index(es):
    • Date
    • Thread