Re: Problem with NSWindow setFrame
Re: Problem with NSWindow setFrame
- Subject: Re: Problem with NSWindow setFrame
- From: "kalpana k" <email@hidden>
- Date: Thu, 19 Jun 2008 13:43:43 +0530
I had tried NSMakeRect(0.0, -768.0, 1024.0, 1200.0) also.
But still the Window is displayed with height 640 only.
I had get the window bounds after seeting the bounds. It is giving the
height as 1200, but the window is displayed with only 640 height.
Is there any default setting which is preventing the window to resize?
Thanks,
Kalpana
On Thu, Jun 19, 2008 at 12:35 PM, j o a r <email@hidden> wrote:
>
> On Jun 18, 2008, at 11:50 PM, kalpana k wrote:
>
> window setFrame: NSMakeRect(0,0,1024,1200)
>>
>
>
> Should this not be something more like:
>
> NSMakeRect(0.0, -768.0, 1024.0, 1200.0)
>
> Also note that, according to the documentation:
>
> "Note that any NSWindow with a title bar automatically constrains
> itself to the screen."
>
> <
> http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Tasks/SizingPlacingWindows.html#//apple_ref/doc/uid/20000228-135785
> >
>
> j o a r
>
>
>
_______________________________________________
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