Custom view with lots of subviews slows down NSScrollView scrolling
Custom view with lots of subviews slows down NSScrollView scrolling
- Subject: Custom view with lots of subviews slows down NSScrollView scrolling
- From: Keith Blount <email@hidden>
- Date: Fri, 11 Mar 2005 07:45:01 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Hello,
I have a custom view which allows the user to add
notes in a margin next to a text view. When the user
clicks into the view, an NSTextView is created in the
margin, which becomes a subview of my custom margin
view. (I have been careful to manage it so that these
sibling text views can never overlap.)
The user can add as many notes as he or she likes.
However, I have noticed that when you add a lot of
notes - eg. 200 - the scroll view holding my custom
view slows down considerably when using the arrows to
scroll.
Is there a way around this? I don't quite understand
it, as my custom view handles its own resizing, so the
scroll view only needs to worry about the size of my
custom view - it should just ignore the text view
subviews...
Many thanks in advance to anyone who can point me in
the right direction,
Keith
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
_______________________________________________
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