Re: Number of layout managers for NSTextStorage increases

2010-09-13 Thread Kyle Sluder
On Mon, Sep 13, 2010 at 9:47 AM, Jens Bauer wrote: > As I don't know how to set breakpoint in NSLayoutManager's -init with > Xcode 2.5, I picked the second option. Unless you're still on Tiger, you should be running the latest version of Xcode 3. Either way, gdb hasn't changed. Pause the debugge

Re: Number of layout managers for NSTextStorage increases

2010-09-13 Thread Jens Bauer
Hi Ross, Thank you for your reply and pointers. (Sorry it took so long; I didn't see your reply until today). >On Sep 7, 2010, at 12:22 PM, Jens Bauer wrote: > >> ...Does anyone have an idea about why the number of layout managers >> increase ? > >I don't know the answer, but I expect it is easy

Re: Number of layout managers for NSTextStorage increases

2010-09-07 Thread Ross Carter
On Sep 7, 2010, at 12:22 PM, Jens Bauer wrote: > ...Does anyone have an idea about why the number of layout managers increase ? I don't know the answer, but I expect it is easy to find out. Set a breakpoint on layout manager -init and see who is creating them. Or, look at the contents of the la

Number of layout managers for NSTextStorage increases

2010-09-07 Thread Jens Bauer
Hi all, I have an editor with a list of files, where I switch the contents of a NSTextView in and out when selecting a new file. For the switching I use the following lines: NSLog(@"[1] %s, layoutManager count: %d", __PRETTY_FUNCTION__, [[[textView textStorage] layoutManagers] count]); [layoutMa