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

Fwd: Borderless and resize - Solved


  • Subject: Fwd: Borderless and resize - Solved
  • From: Geert B.Clemmensen <email@hidden>
  • Date: Sun, 8 Feb 2009 19:28:00 +0100

Hello all,

There is nice article on borderless windows here: http://www.cocoadev.com/index.pl?BorderlessWindow

The thing I had overseen/ignored is at the bottom:
<<<<<<<<<<<<

Ok, in my sleep deprivation i didn't realize that my window was set to be moveable by the background, so it was trying to move the window at the same time that the resize code was resizing the window.

++ Falco

<<<<<<<<<<<<

Resizing of my borderless window is now smooth.

Kind Regards,
Geert B. Clemmensen
FrontBase, Inc.
Begin forwarded message:


From: "Geert B. Clemmensen" <email@hidden>
Date: 8. februar 2009 18.34.36 GMT+01:00
To: Cocoa Developers <email@hidden>
Subject: Borderless and resize

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


References: 
 >Borderless and resize (From: "Geert B. Clemmensen" <email@hidden>)

  • Prev by Date: Borderless and resize
  • Next by Date: Re: Animated toolbar
  • Previous by thread: Borderless and resize
  • Next by thread: passing argument 1 of 'setContents:' from incompatible pointer type
  • Index(es):
    • Date
    • Thread