Questions tagged [nstouchbar]

An object that provides dynamic contextual controls in the Touch Bar of supported models of MacBook Pro.

NSTouchBar provides an interface to the 2016 MacBook Pro's 'Touch Bar', a multitouch screen above the keyboard.

See the NSTouchBar documentation for more information.

85 questions
0
votes
1 answer

Knowing when NSPopoverTouchBarItem will show its collapsed view

I have an NSPopoverTouchBarItem in my Touch Bar, created in Interface Builder. The popover has a custom NSView inside it, and want to load data in it only when the view is activated, but I can't find any way to recognize when the contained…
Tritonal
  • 607
  • 4
  • 16
0
votes
1 answer

Is it possible to add a scrollable list of buttons to the Touchbar using the Catalyst API?

Using AppKit you can embed the buttons in a NSScrollView. Is there any way to do that using the NSTouchbar API exposed through UIKit on Mac Catalyst?
pvieito
  • 117
  • 2
  • 8
0
votes
1 answer

Is it possible to display Extension information on Google Chrome Mac TouchBar? if not, what about network calls on the touchbar?

I am trying to come up with a way of having the touch bar on my mac display the network calls being made on the page I am navigating, I already have an extension that captures the exact network calls i need so If it is easier to just have an…
0
votes
1 answer

NSScrubber pan animation end notification

The touchbar-specific NSScrubber control scrolls with inertia on a pan gesture. I want to be notified of this animation's end to perform some function. Try 1 The NSScrubberDelegate has a - didFinishInteractingWithScrubber: method which I…
legends2k
  • 31,634
  • 25
  • 118
  • 222
0
votes
0 answers

Second TouchBar

I have two sroryboards in my macOS app (with two separated WindowControllers). I'm wondering how I could in XCode IDE create two TouchBars each connected to own Window Controller Scene in storyboard. Actually I can create two TouchBars but just the…
Dawy
  • 770
  • 6
  • 23
0
votes
1 answer

How to implement QuickTime-like video seeker/scrubber for Touch Bar in macOS?

I'm developing a video app and I want to implement a video seeker/scrubber just like in QuickTime where it displays small thumbs and I can seek by sliding my finger on the Touch Bar smoothly where it also displays the current progress in the video.…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
0
votes
1 answer

Dynamic NSTouchBar items

I'm wondering if it's possible to dynamically create NSTouchBar items. In my app I've got a dataSource protocol to fill the contents of an NSTableViewController. I'd like to use this protocol to also fill the touchBar with the same options. This is…
user4992124
  • 1,574
  • 1
  • 17
  • 35
0
votes
1 answer

Keep Touch Bar active when app isn't active

I am trying to keep the Touch Bar of my app active in the app controls part of the Touch Bar even when using a different app. How can I do this? I know this can be done because I have seen apps e.g. BetterTouchTool to do this. For more information I…
Gleb Koval
  • 149
  • 1
  • 10
0
votes
1 answer

Touchbar icon with custom image doesn't load in Electron

I'm trying to build a button with a custom image on the Touchbar in Electron. When testing via "electron ." the image shows up - as published macOS app the button is empty and has no image in the Touchbar. The app is build and published via…
0
votes
1 answer

Swift: How to link Touch Bar controls to main window controls

I'm new to Swift/macOS dev, plenty of dev experience otherwise though. Just trying to make something rudimentary. Here's my app storyboard: I'm trying to get: the Touch Bar slider to change when the slider on the main window changes vice…
Dave
  • 5,283
  • 7
  • 44
  • 66
0
votes
1 answer

Trigger buttons in Touch Bar when sliding

I have created a Touch Bar with many colourful buttons. The user will often change the color using the buttons. When a button is pressed some graphical elements of the current window change accordingly with the color of the button. I would like that…
Nisba
  • 3,210
  • 2
  • 27
  • 46
0
votes
1 answer

Disable Touchbar for my application (and make function keys always visible)

I have written a macOS app which uses a lot the function keys. I need to include the Touch Bar support but for the moment I would like to set the function keys as default, so the app is still fully usable. How can I do that?
Nisba
  • 3,210
  • 2
  • 27
  • 46
0
votes
0 answers

Access touchbar from viewController?

I´m currently playing around with an app that's creating its own touchbar layout. Only simple buttons with text that shows up. The thing is that I have a WindowController and a ViewController. The WindowController makes the touchbar with its…
Labba
  • 121
  • 1
  • 10
0
votes
1 answer

How to add a view to NSGroupTouchBarItem

Trying to make a mutable list of buttons that show on the touch bar override func windowDidLoad() { super.windowDidLoad() let customViewItem = NSCustomTouchBarItem(identifier: NSTouchBarItemIdentifier(rawValue: "identifier")) …
arshbot
  • 12,535
  • 14
  • 48
  • 71
0
votes
2 answers

Can I use the system Touch Bar icons in my app?

I am trying to add a "New" button and a "Search" button for my app onto the Touch Bar. In system apps, these are a plus sign and a magnifying glass, respectively. Is there a way to use these system icons on my touch bar buttons, such as in…
TonyStark4ever
  • 848
  • 1
  • 9
  • 24