• 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
Borderless and resize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Borderless and resize


  • Subject: Borderless and resize
  • From: "Geert B. Clemmensen" <email@hidden>
  • Date: Sun, 8 Feb 2009 18:34:36 +0100

Hello all,

I have a borderless subclassed NSWindow with own subclassed NSView as contentView. Overriding the content view's mouseDown: and do

	[win setFrame:newFrame display:YES];

in order to resize the window works, well kinda, the displaying appear jagged.

If the exact same everything gets added the NSResizableWindowMask to the window's styleMask, resizing works and the displaying is smooth as expected (I also get the window title bar which is what I want to avoid in the first place). The content view's mouseDown: doesn't get invoked, the window must do some display magic when resizing.

I have looked at the RoundWindow example project (http://cocoawithlove.com/2008/12/drawing-custom-window-on-mac-os-x.html ), where a borderless window is resized with the expected smooth displaying.

I would, however, like to understand how the NSWindow class does the resize. Is this at all an avenue worth pursuing or even possible to pursue? Anyone with pointers to documentation and/or sample code?

Kind Regards,
Geert B. Clemmensen
FrontBase, Inc.

_______________________________________________

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


  • Follow-Ups:
    • Fwd: Borderless and resize - Solved
      • From: Geert B.Clemmensen <email@hidden>
  • Prev by Date: Re: NSProgressIndicator (spinning) on a dark background?
  • Next by Date: Fwd: Borderless and resize - Solved
  • Previous by thread: [Q] NSTextField and binding: What gets called?
  • Next by thread: Fwd: Borderless and resize - Solved
  • Index(es):
    • Date
    • Thread