• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with NSWindow setFrame
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Problem with NSWindow setFrame (From: "kalpana k" <email@hidden>)
 >Re: Problem with NSWindow setFrame (From: j o a r <email@hidden>)

  • Prev by Date: Re: Send Key Event to Focused Window
  • Next by Date: NSPredicateEditor and decimal numbers with fractions
  • Previous by thread: Re: Problem with NSWindow setFrame
  • Next by thread: NSPredicateEditor and decimal numbers with fractions
  • Index(es):
    • Date
    • Thread