Re: Subview and window size
Re: Subview and window size
- Subject: Re: Subview and window size
- From: Kevin Walzer <email@hidden>
- Date: Sat, 19 Dec 2009 12:56:37 -0500
- Organization: WordTech Communications LLC
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 up approximately 1/4th of the window.
How can I get the subview to be the same size as its parent view?
It is the same size, it's just not in the right place, is my guess.
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 same size. Right now it takes up 1/4 of the window.
How do I set the bounds/geometry to be the same as the toplevel frame in
the window?
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden