• 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
Re: contentSizeForFrameSize and frameSizeForContentSize for NSTabView and NSWindow?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: XCode problem: debugger doesn't stop on breakpoint
  • Next by Date: Fwd: Does pserver work from Xcode?
  • Previous by thread: contentSizeForFrameSize and frameSizeForContentSize for NSTabView and NSWindow?
  • Next by thread: Re: XCode problem: debugger doesn't stop on breakpoint
  • Index(es):
    • Date
    • Thread