Sandeep T D S Sandeep T D S - 4 years ago 164
Java Question

How can i disable the touch bar functionality in Mac through Objective C or Java

This blog talks about disabling the new touch bar on a mac book pro by user.

Can achieve the same by using Objective C or JAVA?

Answer Source

We can achieve this by setting the NSFunctionBarAPIEnabled boolean value to No.

defaults write NSFunctionBarAPIEnabled -bool NO

You can do the same in objective c by

NSDictionary* myDict = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:NO] forKey:@"NSFunctionBarAPIEnabled"];
[[NSUserDefaults standardUserDefaults] registerDefaults:myDict];


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download