Re: Resizing a view to match the main NSWindow size?
Re: Resizing a view to match the main NSWindow size?
- Subject: Re: Resizing a view to match the main NSWindow size?
- From: Nathan Kinsinger <email@hidden>
- Date: Sun, 25 May 2008 20:07:50 -0600
On May 25, 2008, at 7:51 PM, Graham Reitz wrote:
I think I am close but don't understand how the coordinate system of
an NSView relates to the NSWindow it resides in.
It looks like the NSView setFrame method will help but I am getting
weird results. Am I on the right track?
thanks,
graham
Without knowing what exactly you mean by weird results, it's possible
you don't have the bounds set right in relation to the frame in which
case the view will be stretched, you should check out:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/Coordinates/chapter_3_section_3.html
--Nathan
_______________________________________________
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