• 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: Flickering Scrollbar [Resolved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flickering Scrollbar [Resolved]


  • Subject: Re: Flickering Scrollbar [Resolved]
  • From: Ben Lachman <email@hidden>
  • Date: Sun, 5 Mar 2006 14:32:28 -0500

I figured this one out. IB was creating a text system for my custom text view which I was not properly disconnecting from the custom text view prior to adding my own text storage, text container and layout manager. Also, I wasn't building the components of the text system up with the proper methods (one should use 'add' methods not 'set' methods). Once I cleared that up, the flickering of the scroller was resolved and some other issues with resizing the text view and text container disappeared as well (although not all of them... see other post).

->Ben
--
"I'm so cool you could keep a side of meat in me for a month! I'm so hip I have trouble seeing over my pelvis!"


- Zaphod Beeblebrox, The Hitchhiker's Guide to the Galaxy

On Mar 3, 2006, at 3:10 PM, Ben Lachman wrote:

Hey:

I'm working on a custom NSTextView and I'm having some issues with the scrollbar. I pulled a basic textview into IB and then set the custom class on it. The custom view draws fine and will scroll naturally if there is at least a couple lines of text that exceed the view rect. However when there is only about one line the scroll bar gets confused and flickers on and off as it auto hides and shows. It only flickers when you draw though, once you finish the event it will stay either on or off. It looks like the text container is resizing as the scroll is happening (the container is set to auto size with the view). Any ideas on what might cause such behavior and how I could correct it?

Thanks,

->Ben
--
"I'm so cool you could keep a side of meat in me for a month! I'm so hip I have trouble seeing over my pelvis!"


- Zaphod Beeblebrox, The Hitchhiker's Guide to the Galaxy

_______________________________________________
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

_______________________________________________ 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: 
 >Flickering Scrollbar (From: Ben Lachman <email@hidden>)

  • Prev by Date: NSArrayController's contentArray and selectedIndexes don't match when sorted
  • Next by Date: Text Layout problems
  • Previous by thread: Flickering Scrollbar
  • Next by thread: Bezier drawing tool suggestions?
  • Index(es):
    • Date
    • Thread