#65 ✓resolved
nciagra

CPWindow/NSWindow ContentRect vs. Frame

Reported by nciagra | September 22nd, 2008 @ 10:17 AM | in 0.6.5

There is some confusion when creating a CPWindow as to whether the initWithContentRect function specifies the size of the window's frame (including chrome) or the contentView's frame (excluding window chrome). While the naming suggests that the size given to initWithContentRect should correspond to the size of the frame of the contentView, this is not the case, and it corresponds to the size of the window's frame. This should also be tested in Cocoa to see if the functionality is the same. If it is, while it doesn't entirely make sense, it should be kept the same in order to comply with NSWindow. However, it does make more sense for [CPWindow initWithContentRect:] to correspond to the size of the frame of the actual contentView and have the chrome be built around this. Also possible to implement a [CPWindow initWithFrame:]

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

People watching this ticket

Tags

Referenced by

Pages