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
1
vote
1 answer

Getting rid of icons on NSTouchBar

I am creating a NSTouchBar for my app. When the bar displays, I see this ESC icon on the left and these other icons on the right: Is there a way to get rid of them and have the full bar area available?
Duck
  • 34,902
  • 47
  • 248
  • 470
1
vote
1 answer

How to remove touchbar AVPlayer created automatically in Swift

I'm programming a mac app and I want to support the touchbar. I have a split screen controller and in one of the views is a AVPlayer. The AVPlayer automatically created touchbar buttons for pause and play etc. how can I remove this touchbar that's…
user2403221
  • 435
  • 1
  • 3
  • 12
1
vote
0 answers

Create System Wide Touch Bar Item

I would like to create a custom touch bar item that is available system wide on OS X on the 2016 MacBook pros. Is it possible to add touch bar items at the system level at this point? If so, where is the documentation for this?
rileymat
  • 503
  • 4
  • 13
1
vote
1 answer

cocoa build for os x 10.11 with NSTouchbar support

I know in Swift it's possible to make use of #available and objective-c doesn't support that. Is there still a way to make an os x app which can be run on 10.11 but also supports the NSTouchbar (which starts from 10.12)?
ChiellieNL
  • 103
  • 1
  • 8
1
vote
1 answer

NSTouchBar with multi-level NSPopoverTouchBarItem

I'm trying to make a simple NSTouchBar with 3 levels of NSPopoverTouchBarItem, so basically its like this: I have the main NSTouchbar with 3 NSButton and 1 NSPopoverTouchBarItem which open the second NSTouchbar The second NSTouchbar with 2…
ruiaureliano
  • 1,552
  • 1
  • 14
  • 13
1
vote
1 answer

How to have a Touch Bar button which is image only?

Adding touch bar buttons into touch bar of macOS, with images of size 80x60, ends up like this: The button has been scaled to 40x30, but instead of a button filled up by image, it has the left/right padding on the side of button. Is it possible to…
Lim Thye Chean
  • 8,704
  • 9
  • 49
  • 88
1
vote
1 answer

How do I explicitly send key-value observing notifications from an NSResponder?

I'm trying to make a NSTouchBar in an SDL application and I need to attach a responder to the NSWindow object (that's the only access SDL gives into the Cocoa windowing system). https://developer.apple.com/reference/appkit/nstouchbar If you…
xaxxon
  • 19,189
  • 5
  • 50
  • 80
1
vote
1 answer

How to create an NSTouchBar from an NSWindow object?

I'm trying to integrate touchbar support with an SDL application. I've gone into the objective c code in SDL and hacked directly into the SDLView code and gotten a working touchbar, but now I want to get the same functionality with the stock SDL2…
xaxxon
  • 19,189
  • 5
  • 50
  • 80
1
vote
1 answer

NSTouchBar: How to replace "Esc" with "Done" button

How is AddressBook app presenting a Done instead of the Esc like the screenshot? The documentation states that the System Provided button depends on the context. How do I define that context?
pfandrade
  • 2,359
  • 15
  • 25
1
vote
1 answer

NSTouchBar - how to combine default text filed items with custom items

I am trying to combine my custom touch bar items together with the automatic text suggestions in the touch bar while editing text field. Currently i am overriding makeTouchBar in custom NSTextView class, if i wont do that, the default touch bar…
J.Doe
  • 326
  • 2
  • 14
1
vote
1 answer

How to create a date picker in the touch bar (mac OS) like the calendar app

I couldn't attach a photo of the touch bar. But if you have enabled the touch bar, when you click on the [Day Week Month Year] segments in the Calendar app, you can see the different type of date pickers in the touch bar. I have to create a same…
1
vote
2 answers

Touch Bar API availability

When will the new Touch Bar functionality be available for use, and will it be available for both Swift and Objective-C? For which macOS version will it be available?
0
votes
1 answer

Conversion from Swift 3.0 to 4

How can I convert my code that I wrote a few years ago to Swift 4.0 without using XCode 10.1? Is there any way to run it on some online simulator or on the newest version of XCode? This is some code that I wrote for messing around and seeing what…
crooper
  • 33
  • 4
0
votes
0 answers

NSTouchBar not releasing last touched view

I am making an app which uses the NSTouchBar. The touchbar is made by the NSWindowController.makeTouchBar()method. In this touchbar I can place NSCustomTouchBarItems. I have made two NSCustomTouchBarItems. The first one sets a view to a default ui…
Cam
  • 11
  • 2
0
votes
0 answers

How to open .nib file?

I cannot open them, XCODE just opens the application photo in XCODE and that's it. No, I cannot create a duplicate and show package contents. Any other guesses? Specifically, I'm looking to change Apple's Touch Bar functionality on PRE-EXISTING…
jNiuk
  • 81
  • 9