• 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: Dynamically adding tabs during runtime?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically adding tabs during runtime?


  • Subject: Re: Dynamically adding tabs during runtime?
  • From: j o a r <email@hidden>
  • Date: Tue, 11 Jan 2005 08:51:34 +0100

Hej Lars,

On 2005-01-11, at 08.46, Lars Forsberg wrote:

That would work if I new exactly how many tabs the user is going to use.
I could limit the number of tabs to say five and build them all in IB as you
suggested, but I would prefer to let the user decide how many tabs to
use. I want to make the application to work as a document-based application,
but instead of having multiple windows I want to have multiple tabs.

What I would do is create a nib file that only holds the contents of what you would like to see in your tabs - using a "custom view" as the top level item in the nib file. When I need a new tab I would then programatically create a new tab view item, load this nib file and add the loaded view as the content view of the new tab view item, and finally insert the tab view item in the tab view. It is an easy and robust solution.


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: 
 >Re: Dynamically adding tabs during runtime? (From: Matt Neuburg <email@hidden>)
 >Re: Dynamically adding tabs during runtime? (From: Lars Forsberg <email@hidden>)

  • Prev by Date: Re: Dynamically adding tabs during runtime?
  • Next by Date: Re: KeyPath retrieval
  • Previous by thread: Re: Dynamically adding tabs during runtime?
  • Next by thread: nsusername localized?
  • Index(es):
    • Date
    • Thread