• 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
NSWindow resize limited to screen height?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindow resize limited to screen height?


  • Subject: NSWindow resize limited to screen height?
  • From: j o a r <email@hidden>
  • Date: Mon, 24 Feb 2003 10:26:25 +0100

Hej,

According to the documentation for NSWindow:

"Note that the window server limits window position coordinates to 116,000 and sizes to 10,000."

...but I find that when I try to resize a window it will be "cropped" to the height of the visibleFrame of the screen - ie. around 750 px on my PowerBook.

I get this log:

2003-02-24 10:23:57.519 iStrip[6661] proposed: {680, 1055}
2003-02-24 10:23:57.837 iStrip[6661] set: {680, 746}

From this code:

NSRect newFrame = NSMakeRect(xPos, yPos, width, height);
NSLog(@"proposed: %@", NSStringFromSize(newFrame.size));
[window setFrame: newFrame display: YES animate: NO];
NSLog(@"set: %@", NSStringFromSize([window frame].size));

There doesn't seem to be a similar restriction on the width of the window, ie. I can set the window to be wider than the visibleFrame of the screen.

Thoughts? Work arounds? Opinions?

j o a r
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Capturing key events
  • Next by Date: New to Cocoa
  • Previous by thread: Capturing key events
  • Next by thread: New to Cocoa
  • Index(es):
    • Date
    • Thread