Re: Subview and window size

2009-12-19 Thread Quincey Morris
On Dec 19, 2009, at 09:56, Kevin Walzer wrote: > Let me clarify what I'm trying to do: I want the subview to be the same > dimensions as the entire window. That would mean, basically, that I want it > its frame to be the same as the frame for the window's contentView. > > Right now it's not the

Re: Subview and window size

2009-12-19 Thread Kevin Walzer
On 12/18/09 8:36 AM, Graham Cox wrote: The *view is supposed to take up the entire window, and my idea is to have the subview do so, as well. However, when I add the subview DNDView (which is supposed to be registered to receive file drags), it does not take up the whole window--it takes u

Re: Subview and window size

2009-12-19 Thread Mike Abdullah
On 18 Dec 2009, at 13:36, Graham Cox wrote: > > On 19/12/2009, at 12:14 AM, Kevin Walzer wrote: > >> I am trying add a subview to an NSView programatically, and am having some >> difficulty. >> >> Here's my code: >> DNDView *dropview = [[DNDView alloc] init]; > > > This is wrong. The design

Re: Subview and window size

2009-12-18 Thread Graham Cox
On 19/12/2009, at 12:14 AM, Kevin Walzer wrote: > I am trying add a subview to an NSView programatically, and am having some > difficulty. > > Here's my code: > DNDView *dropview = [[DNDView alloc] init]; This is wrong. The designated initializer for NSView is -initWithFrame: > NSView *vie