• 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: Dustin Voss <email@hidden>
  • Date: Fri, 7 Nov 2003 15:52:43 -0800

On 6 Nov, 2003, at 4:36 PM, email@hidden wrote:

On Thu, 6 Nov 2003 17:22:16 -0600, Brian Webster wrote:


NSWindow has these methods:

+ (NSRect)frameRectForContentRect:(NSRect)cRect styleMask:(unsigned
int)aStyle;
+ (NSRect)contentRectForFrameRect:(NSRect)fRect styleMask:(unsigned
int)aStyle;

The tricky part is that they are class methods instead of instance
methods, so you need to pass in the style mask of the window you want
to know the rect for.

Thanks. Do you know if these methods account for the toolbar on an NSWindow
instance? Since they are class methods, probably not...

Panther's new "frameRectForContentRect" and "frameRectForContentRect" methods do account for the toolbar.
_______________________________________________
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.
References: 
 >Re: contentSizeForFrameSize and frameSizeForContentSize for NSTabView and NSWindow? (From: email@hidden)

  • Prev by Date: Re: Controller Layer and Automatic Key-Value Observing
  • Next by Date: Re: Parameter lists
  • Previous by thread: Re: contentSizeForFrameSize and frameSizeForContentSize for NSTabView and NSWindow?
  • Next by thread: Fwd: Does pserver work from Xcode?
  • Index(es):
    • Date
    • Thread