Re: contentSizeForFrameSize and frameSizeForContentSize for NSTabView and NSWindow?
Re: contentSizeForFrameSize and frameSizeForContentSize for NSTabView and NSWindow?
- Subject: Re: contentSizeForFrameSize and frameSizeForContentSize for NSTabView and NSWindow?
- From: lbland <email@hidden>
- Date: Thu, 6 Nov 2003 18:48:59 -0500
On Thursday, November 6, 2003, at 05:27 PM, email@hidden wrote:
Currently, I am using a crude hack of estimating the number of pixels
for the
borders of both NSTabView and NSWindow. Is there a more elegant
workaround?
NSWindow:
+ (NSRect)contentRectForFrameRect:(NSRect)frameRect styleMask:(unsigned
int)aStyle
Returns the content rectangle used by an NSWindow with a frame
rectangle of frameRect and a style mask of aStyle. Both frameRect and
the returned content rectangle are expressed in screen coordinates. See
"Constants" for a list of style mask values.
frameRectForContentRect:styleMask:
+ (NSRect)frameRectForContentRect:(NSRect)contentRect
styleMask:(unsigned int)aStyle
Returns the frame rectangle used by an NSWindow with a content
rectangle of contentRect and a style mask of aStyle. Both contentRect
and the returned frame rectangle are expressed in screen coordinates.
See "Constants" for a list of style mask values.
?
Lance Bland
mailto:email@hidden
VVI
888-VVI-PLOT
http://www.vvi.com
_______________________________________________
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.