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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to