mac toolbar style - macos

Does anybody know how to make a toolbar which style is like top bar of "Xcode Organizer"?
Press different item ,different view will show down below.
It has toolbar style but tab bar function,Many mac apps' preference pane use it,I'm confused.
Can anybody help me please.
Thank you very much.
Plus this is a Mac Application

Start with the documentation for NSToolbar. There are even some sample applications to get started with.
Good overview for making a better preferences window - see the link to a demo project on the second page of this article.

Related

How can you modify the styling of a compiled macOS app without the Xcode project and without additional apps?

Does anybody know, how to change the appearance of the title bar and/or toolbar of a simple & small one-window cocoa macOS application without accessing the Xcode or installing third party applications? It's for a screen recording video project, I want to do.
I know, that there are possibilities within the applications info.plist (for example changing the app title inside the top macOS Menu Bar) but I would like to be able to change the apps window title itself and/or colors and/or fonts inside the window title bar or toolbar if possible.
Opening the app in another container window or via terminal or Applescript and adding custom parameters or even an overlay in the right position to change the styling would be okay if this is possible?
Can somebody point me in the right direction?
Thank you very much!
in short: Nibs
Nib File Viewer works until Xcode 10
saving, recompiling if possible
good luck

Missing primary topmost Xcode6 menu toolbar (File, Edit, Navigate, etc.)

I'm using Xcode 6. For some reason the Xcode menu toolbar at the top with everything from File to Navigate and Debug is missing. I've managed without so far but would like to find out if there is an easy fix. Not sure if it was there when I first installed. Appreciate your help.
Try View > Show Toolbar to make it re-appear. If this is not the toolbar you miss, please post a screenshot of your current Xcode interface.
Before:
Okay so I solved this one. It wasn't showing as I had made the window smaller to use alongside online tutorial. When I opened it in full window mode the top toolbar was back.

Xcode: Mac OS X, removing title bar, but keep window buttons

I've been searching and searching but I haven't had any luck. I'm trying to remove the title bar in a window, which is the easy part. But I want to keep the buttons (close, minimize, resize) in the window. So essentially the whole part of the window could be a web view, with the buttons still in tact. The Rdio app is a great example, and I've attached a picture of it. The whole white area is a webview. Any help would be greatly appreciated. I'm sort of new to xcode. Thank you.
Screenshot of Rdio before it loads up

How to show a menu after clicking on the widget icon?

I am using firefox addon builder (Addon kit 1.7) and I wonder to know if it's possible to show a simple menu like the context menu of firefox just after clicking on the widget icon. I need few hints. Thanks in advance.
I managed to make it work using the MenuPopup package by Yaelle Borghini and uploaded a simple example on the Addon Builder site.
You will have to expand on Yaelle's code to support dynamic modifications of the menu items because it's not fully built in at the moment (though it shouldn't be too hard to add it).
Here's the discussion on the Mozilla forums about how to show menus with the Addon SDK that got me started.
Right now the only option is to hook a panel to a widget and add a menuitem to the panel with html.

What Cocoa APIs should I be learning to build a UI similar to Tictoc? (pics included)

I really dig the way Tictoc anchors to its toolbar item but I'm not sure which APIs I should be learning to replicate that feature. The two things I'm hoping to learn are:
Adding an item to the system menu bar
Anchoring my window to the menu bar
Here's a screenshot for anyone who hasn't had a chance to use this app:
To add an item to the menu bar, check out NSStatusItem.
There are a few options for windows resembling the one in your screenshot, but I recommend Matt Gemmell's MAAttachedWindow. There's a link to it here, including a project which does the NSStatusItem thing.

Resources