• 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: Programmatically resizing an NSWindow based on window contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Programmatically resizing an NSWindow based on window contents (From: Greg Hurrell <email@hidden>)
 >Re: Programmatically resizing an NSWindow based on window contents (From: Mike Abdullah <email@hidden>)
 >Re: Programmatically resizing an NSWindow based on window contents (From: Greg Hurrell <email@hidden>)
 >Re: Programmatically resizing an NSWindow based on window contents (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Vertically-expanding NSTextField
  • Next by Date: Re: NSRunLoop performSelector question
  • Previous by thread: Re: Programmatically resizing an NSWindow based on window contents
  • Next by thread: NSSpellServer problem (``Couldn\'t contact Spell Server\'\')
  • Index(es):
    • Date
    • Thread