Re: Programmatically resizing an NSWindow based on window contents
Re: Programmatically resizing an NSWindow based on window contents
- Subject: Re: Programmatically resizing an NSWindow based on window contents
- From: Greg Hurrell <email@hidden>
- Date: Thu, 11 May 2006 19:55:30 +0200
El 11/05/2006, a las 18:47, Mike Abdullah escribió:
Yes, I see what you want. At the moment, you intend to have things
happen in this sequence:
1. Set frame of tableview
2. Window updates to match tableview
What I am suggesting instead is:
1. Calculate the size of window you want to achieve the desired
table size
2. Set the frame of the window
3. This automatically sets your tableview to be the size you want
Interesting idea. Thanks for clarifying. I think this is a good idea
as it saves me one step (ie. only manually changing one frame instead
of two), and it also makes it unnecessary to call
setNeedsDisplayInRect: on the table view's superview.
Cheers,
Greg
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden