• 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: dynamic resizing of a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamic resizing of a window


  • Subject: Re: dynamic resizing of a window
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 13 Jan 2009 16:01:10 -0800


On 2009 Jan, 13, at 11:48, Ronnie B wrote:

I have a modal dialog that I want to resize dynamically in case if a
validation on an input field fails and I display a validation text bellow
the field. I would like to 'push' the rest of the dialog down,

leaving the rest if the elements proportionally as they were.

I don't know what you mean by "proportionally", but other than that I think I get it. You want to add a subview, move the other subviews, and resize the window bigger as needed.


Anyone can suggest a right way of doing it.

Well, I don't know if it is "right", but it works for me. Iterate through all the subviews, do alot of calculations, and send alot of setFrame: messages.


The following project is a work in progress, but if you dig into the - [SSYAlert doLayout], you'll see how it's done for a very general case:

http://sheepsystems.com/files/SSYAlert.zip

I tried to symlink all the dependencies and set zip to follow them. Let me know if there are any missing any dependencies.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >dynamic resizing of a window (From: "Ronnie B" <email@hidden>)

  • Prev by Date: Re: Killall Finder Brings Hidden Apps To Front?
  • Next by Date: Re: alternative to NSURLConnection sendSynchronousRequest
  • Previous by thread: dynamic resizing of a window
  • Next by thread: Enable Scripting Failing - Missing something? Based on SimpleScripingVerbs sample
  • Index(es):
    • Date
    • Thread