Re: addSubview bottleneck

2009-01-25 Thread douglas welton
Hi Josh, I would echo Andreas' advice and tell you to not use NSViews to accomplish this task. I would suggest that you take a closer look at the problem domain and re-factor along the lines of the data you manage and the drawn representation of that data. NSViews are great containers fo

Re: addSubview bottleneck

2009-01-25 Thread Michael Ash
On Sat, Jan 24, 2009 at 5:29 PM, Twisted Theory wrote: > Hi, > > I am constructing an application that draws rooted trees (graphs with a > distinguished 'first' node) by creating an NSView subclass for each node and > adding them as subviews of the graph view. > > There is a big problem when the n

Re: addSubview bottleneck

2009-01-24 Thread Andreas Mayer
Am 24.01.2009 um 23:29 Uhr schrieb Twisted Theory: I am constructing an application that draws rooted trees (graphs with a distinguished 'first' node) by creating an NSView subclass for each node and adding them as subviews of the graph view. There is a big problem when the number of nodes

addSubview bottleneck

2009-01-24 Thread Twisted Theory
Hi, I am constructing an application that draws rooted trees (graphs with a distinguished 'first' node) by creating an NSView subclass for each node and adding them as subviews of the graph view. There is a big problem when the number of nodes in the tree is large: adding the subviews takes a ver