• 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: j o a r <email@hidden>
  • Date: Tue, 13 Jun 2006 23:42:46 +0200


On 13 jun 2006, at 22.28, Travis Siegel wrote:

It is possible to code a gui from scratch, w/o using a nib. However, it's a bit of a pain, and not well documented (at least not that I've found)

What is missing from the documentation in your opinion? I think it's perfectly adequately documented, but perhaps that's just because I've been working with Cocoa for too long. File enhancement requests to Apple if you have any suggestions!


It also seems that in general, folks try to discourage this kind of behavior. Why is beyond me.

First of all, it makes some sort of sense to separate pure layout from controller code. Minor tweaks can be made to nib files, without having to re-compile the actual source. Secondly, I would bet that it takes 10x more time to create and maintain your UI when you do it in code and not in IB. Thirdly, IB provides a lot of added value for a UI designer, for example: It shows you the available controls, provides immediate visual feedback (no compile-link-run to verify changes), and it provides guides that help you align the controls to match the HIG. Finally, where's the challenge in writing such code? It's just a lot of tedious trial and error...


I can certainly see that IB might not be the best tool for the visually impaired. Your decision to skip IB and do everything in code is understandable. Even if you're not visually impaired there are definitively times when you would choose to generate whole / parts of some UI component from code, but in the overwhelming vast majority of cases you are better of with using IB.


To get back on topic: I agree with the other posters: This is a perfect example of where to use a NSTabView. It's been discussed on the list several times, and there should be code examples available on the net (Perhaps even from Apple? I seem to remember some example with transitions using NSAnimation?).



j o a r


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: 
 >dynamic GUI, how to? (From: Peter Lau <email@hidden>)
 >Re: dynamic GUI, how to? (From: Scott Thompson <email@hidden>)
 >Re: dynamic GUI, how to? (From: Travis Siegel <email@hidden>)

  • Prev by Date: Re: Problems with NSURLRequest and HTTP POST Form Data
  • Next by Date: Re: Sorting array of NSDictionaries sortedArrayUsingFunction
  • Previous by thread: Re: dynamic GUI, how to?
  • Next by thread: Re: dynamic GUI, how to?
  • Index(es):
    • Date
    • Thread