Re: NSView resizing problems.

2010-09-20 Thread Ken Ferry
On Mon, Sep 20, 2010 at 7:52 AM, Keary Suska wrote: > On Sep 20, 2010, at 5:45 AM, Geoffrey Holden wrote: > > > My problem is that when I load this view into a tab (using the attached > > code), the textview doesn't fit on the screen. It covers up the top > > textfield and seems to have it's top

Re: NSView resizing problems.

2010-09-20 Thread Kyle Sluder
On Sep 20, 2010, at 8:31 AM, Geoffrey Holden <45rpmli...@googlemail.com> wrote: > You make an excellent point. But you raise two questions. > > 1. If '' isn't the correct way to initialize, what is? Read the docs. NSView has two dedicated initializers, neither of which is -init. > 2. Should I

Re: NSView resizing problems.

2010-09-20 Thread Geoffrey Holden
You make an excellent point. But you raise two questions. 1. If '' isn't the correct way to initialize, what is? 2. Should I just create an arbitrary placeholder framesize and use that during initialization? Or is it acceptable to set no framesize at all at this stage? Thanks for your help. On

Re: NSView resizing problems.

2010-09-20 Thread Keary Suska
On Sep 20, 2010, at 5:45 AM, Geoffrey Holden wrote: > My problem is that when I load this view into a tab (using the attached > code), the textview doesn't fit on the screen. It covers up the top > textfield and seems to have it's top edge somewhere above the tabview (as > follows) The most comm

NSView resizing problems.

2010-09-20 Thread Geoffrey Holden
I've set up a view in it's own separate NIB. I've done this because the same view will be loaded multiple times into an NSTabView (where each tab is a conversation with a different person). The NIB contains the following elements: NSTextField (*) (top of the screen, anchored top, left and right,