• 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: Custom TabViewItem Things
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom TabViewItem Things


  • Subject: Re: Custom TabViewItem Things
  • From: Michael Becker <email@hidden>
  • Date: Mon, 29 Mar 2004 09:55:54 +0200

Hi Seth,

There's no standard class for handling all this. But you can always build this stuff yourself. Just make the tabview tab-less, provide buttons (or add them programmatically) which call a certain action that activates the appropriate tab.

- The control would wider than the sum width of the buttons. Like in
GoLive, the control spans the width of the window
Write yourself a custom view that does nothing but display a grey background and put it behind the buttons, so your control spans the width of the window. If you create the buttons out of images you can completely customize your buttons' appearance, too.

- Buttons are added and removed on the fly
Add them programmatically, providing merely the necessary frame coordinates.

- Buttons are always left justfied
See above.

- Buttons have the ability to hold an icon and text caption
See above (you're dealing with standard aqua buttons)

- Buttons would ideally be able to contain another button. Think
Safari. I'll be using them exactly in the same way, but I want
the "Adobe" appearance.
I'm not sure, but most probably that would mean writing a completely custom view/control class.

- If too many buttons are in the control to fit in the view, the
buttons are squished to fit as many as possible. Once it goes over
the absolute max, it would present a menu, exactly like Safari.
I think here we've reached a point where many people go sometimes. The "exactly like <SomeApp>"-phrase. Don't assume that *every*thing you see in *any* application is a drag-and-drop-standard-cocoa control. I am afraid you will have to do all the programming for this yourself. That means resizing the buttons, determing whether to create a menu, creating the menu etc.
But I don't know how to do this properly, either, so I can't help you here...

Bye,
Michael
_______________________________________________
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.


  • Follow-Ups:
    • Re: Custom TabViewItem Things
      • From: Seth Willits <email@hidden>
References: 
 >Custom TabViewItem Things (From: Seth Willits <email@hidden>)
 >Re: Custom TabViewItem Things (From: Scott Thompson <email@hidden>)
 >Re: Custom TabViewItem Things (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: NSScrollView how to scroll to top
  • Next by Date: Re: SIGIO and AppKit main loop
  • Previous by thread: Re: Custom TabViewItem Things
  • Next by thread: Re: Custom TabViewItem Things
  • Index(es):
    • Date
    • Thread