• 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: Constraining window resize?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Constraining window resize?


  • Subject: Re: Constraining window resize?
  • From: petite_abeille <email@hidden>
  • Date: Fri, 28 Mar 2003 14:01:12 +0100

On Friday, Mar 28, 2003, at 13:54 Europe/Zurich, petite_abeille wrote:

What would be a good way to constrain a window size?

Ooops ... never mind... NSWindow has just what I need:

setResizeIncrements:

- (void) setResizeIncrements: (NSSize) increments

Restricts the user's ability to resize the receiver so the width and height change by multiples of increments.width and increments.height as the user resizes the window. The width and height increments should be whole numbers, 1.0 or greater. Whatever the current resize increments, you can set an NSWindow's size to any height and width programmatically.
_______________________________________________
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: 
 >Constraining window resize? (From: petite_abeille <email@hidden>)

  • Prev by Date: Constraining window resize?
  • Next by Date: Creating a string with attachements from thin air... and an image...
  • Previous by thread: Constraining window resize?
  • Next by thread: Creating a string with attachements from thin air... and an image...
  • Index(es):
    • Date
    • Thread