• 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: Custom view with lots of subviews slows down NSScrollView scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom view with lots of subviews slows down NSScrollView scrolling


  • Subject: Re: Custom view with lots of subviews slows down NSScrollView scrolling
  • From: Jiva DeVoe <email@hidden>
  • Date: Fri, 11 Mar 2005 17:48:32 -0700

Sounds like a job for NSMatrix and NSCells - I seem to recall the docs say specifically they are for cases where a view has many subviews.


On Mar 11, 2005, at 8:45 AM, Keith Blount wrote:

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:
email@hidden


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: 
 >Custom view with lots of subviews slows down NSScrollView scrolling (From: Keith Blount <email@hidden>)

  • Prev by Date: Avoiding flicker when dropping in a view
  • Next by Date: Re: NSUTF8StringEncoding problems
  • Previous by thread: Custom view with lots of subviews slows down NSScrollView scrolling
  • Next by thread: Dynamic inspectors
  • Index(es):
    • Date
    • Thread