Re: NSTextView moves when being resized ???

2009-08-29 Thread Anders Lassen
Hi Reinhard, Thanks for helping. I have just tried to flip the coordinate system of the custom view by overriding the isFlipped method, and it did solve the problem. Kind regards, Anders Lassen On Aug 29, 2009, at 6:13 PM, Reinhard Segeler wrote: Hallo Anders, did you receive my messag

Re: NSTextView moves when being resized ???

2009-08-29 Thread Reinhard Segeler
Hallo Anders, did you receive my message below, because that solves the problem. I have checked, that in a testproject. The explanation is: If you set a new max width/height its calculated and drawn from the origin, which is the lower left edge of your view. You find more details in the NS

Re: NSTextView moves when being resized ???

2009-08-29 Thread Reinhard Segeler
The coordinate-system for a view starts with the lower left corner, not at the upper left. There is command, that sets the coordinate system to the upper left corner, but I can't find it right now. But I guess, that the first info is what you need to know. Reinhard Am 29.08.2009 um 12:38 s

NSTextView moves when being resized ???

2009-08-29 Thread Anders Lassen
Hi, I am working on a custom view that consists of a column of several NSTextViews. In between, there are graphics and some other stuff that require special editing. Therefore I cannot use a single NSTextView. The NSTextView must adopt its height to the content. This works fine using the