• 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
NSTouchBar in Carbon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTouchBar in Carbon


  • Subject: NSTouchBar in Carbon
  • From: "David M. Cotter" <email@hidden>
  • Date: Sun, 11 Dec 2016 22:22:32 -0800

My app is mostly C++ (because it’s cross platform) with Carbon on the UI edges, and the absolute minimum required ObjectiveC++ to make it work.  (please no discussion about why this is stupid / i should write a modern app etc)

So I need to programmatically instantiate an NSTouchBar, somehow

i do have a “MainController” which is just an NSObject, and a literally empty nib i COULD put something into.

but i do NOT have an NSView or NSViewController to connect the touch bar to, and i’d prefer not to have to use any storyboard if i can avoid it (of course i will if it can’t be avoided)

how do i go about just creating an NSTouchBar in objC and having it show up and respond to taps?
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTouchBar in Carbon
      • From: Uli Kusterer <email@hidden>
    • Re: NSTouchBar in Carbon
      • From: Richard Charles <email@hidden>
  • Prev by Date: NSPersistentContainer with alternate stores
  • Next by Date: Re: NSTouchBar in Carbon
  • Previous by thread: Re: NSPersistentContainer with alternate stores
  • Next by thread: Re: NSTouchBar in Carbon
  • Index(es):
    • Date
    • Thread