• 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 GUI, how to?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamic GUI, how to?


  • Subject: Re: dynamic GUI, how to?
  • From: Rosyna <email@hidden>
  • Date: Tue, 13 Jun 2006 22:39:54 -0700

Personally, I love writing dynamic code. Anything I want to have dynamic sized content on, I set the view to be fixed to the left and right sides of the parent view. Then I call -sizeToFit, get the size, and relayout the rest of the controls based on the new size (while making sure there is enough space between the controls to match the HIG. i usually have to do this twice since the first time only gets the correct positions, the second time places it all in the correct place.

basically, I set up all the relative positions in the nib, then I resize the window as needed to fit the actual content I am showing. I modeled it off the finder get info window.

Ack, at 6/13/06, Peter Lau said:

Since I have quite of number of categories, I don't think I want to layout everything in one nib window and write a lot of show and hide calls depends on which category is chosen.

And I don't want to do a once size fit all approach. So, each pane from each category will need to resize the window to make it looks best.

Is there a known or common design pattern for this type of GUI?

--


Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
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: 
 >dynamic GUI, how to? (From: Peter Lau <email@hidden>)

  • Prev by Date: Re: Drawing text on top of a progress bar
  • Next by Date: Re: launch agent questions
  • Previous by thread: Re: dynamic GUI, how to?
  • Next by thread: Re: dynamic GUI, how to?
  • Index(es):
    • Date
    • Thread