Professional Web Applications Themes

NSToolbar Acting as Tabs - Mac Programming

I can do toolbars; I can do tabs. The question is how to make a toolbar so it changes window content LIKE tabs? The prime example of this would be how System Preferences works. Thanks. Will Oram spamguy (AT) foxchange **DOT** com...

  1. #1

    Default NSToolbar Acting as Tabs

    I can do toolbars; I can do tabs. The question is how to make a toolbar
    so it changes window content LIKE tabs? The prime example of this would
    be how System Preferences works.

    Thanks.

    Will Oram
    spamguy (AT) foxchange **DOT** com
    Will Oram Guest

  2. #2

    Default Re: NSToolbar Acting as Tabs

    Will Oram <spamguyihatespammers.com> wrote:
    > I can do toolbars; I can do tabs. The question is how to make a toolbar
    > so it changes window content LIKE tabs? The prime example of this would
    > be how System Preferences works.
    Quick hack: Make a tabview. Make it tabless, and maybe make it
    borderless (you can do this easily in IB). Use the toolbar items to
    switch which tab is visible. (selectTabViewItemAtIndex: does this)

    Or, make a bunch of different views in IB and switch between them with
    the toolbar items. This is pretty much what NSTabView is doing, anyway,
    when it switches visible views. This would be a more 'kosher' cocoa
    technique, and gives you the opportunity to do the window resizing as in
    system preferences.
    Paul Mitchum Guest

  3. #3

    Default Re: NSToolbar Acting as Tabs

    In article <20030716235125305-0500news-server.austin.rr.com>,
    Will Oram <spamguyihatespammers.com> wrote:
    > I can do toolbars; I can do tabs. The question is how to make a toolbar
    > so it changes window content LIKE tabs? The prime example of this would
    > be how System Preferences works.
    There's sample code that implements a preferences window on my web site
    at

    [url]http://www.zathras.de/programming/cocoa_stuff.php[/url]

    If that server doesn't work (we're in the middle of switching servers)
    use [url]http://witness.spawning.de/[/url] instead of zathras.de.

    This uses the approach mentioned by another poster of using a tabless
    tab view.


    Cheers,
    -- M. Uli Kusterer
    [url]http://www.zathras.de[/url]
    Uli Kusterer Guest

  4. #4

    Default Re: NSToolbar Acting as Tabs

    In <20030716235125305-0500news-server.austin.rr.com> Will Oram wrote:
    > I can do toolbars; I can do tabs. The question is how to make a
    > toolbar so it changes window content LIKE tabs?
    Window content is completely up to you. Just rip the content view out
    and replace it with another NSView. You can also have animated resizing.
    m.

    --
    matt neuburg, phd = [email]matttidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
    REALbasic: The Definitive Guide! 2nd edition!
    [url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
    Subscribe to TidBITS. It's free and smart.
    matt neuburg Guest

Similar Threads

  1. DES acting strange
    By soup_or_power@yahoo.com in forum MySQL
    Replies: 13
    Last Post: August 15th, 03:12 AM
  2. fonts acting up
    By Axel_Estable@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 7
    Last Post: June 26th, 03:56 PM
  3. IIS on XP Pro Acting Flakey
    By Ken Schaefer in forum ASP Database
    Replies: 1
    Last Post: August 27th, 08:38 PM
  4. trash acting up
    By jj in forum Mac Applications & Software
    Replies: 0
    Last Post: June 27th, 12:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139