Calculator widget on notification panel

Hi everyone,


I'd like to know if anyone found this problem after the upgrade to macOS High Sierra.

The calculator widget on notification panel presents a bug: presents by default the number 475 (not zero).

Scenario 1: (re)start the computer, go to the notification panel and the calculator presents the number 475.

Scenario 2: Press "ac" and the calculator goes to 'zero'. Good. I can make calculations... everything fine. But: a) if I left the notification panel and come back in a short time (5 seconds), the calculator presents the number from the last action; b) but if I come back later (for example one minute), the calculator presents the number 475 (again).


Anyone have a similar bug?

MacBook Pro with Retina display, macOS High Sierra (10.13), null

Posted on Sep 28, 2017 7:08 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 12, 2017 5:46 PM

Go to folder:

~/Library/Containers/com.apple.ncplugin.calculator/Data/Library/Preferences

and delete the file com.apple.ncplugin.calculator.plist

(or make a backup of it and then delete it)


This file is not present in a new installation of macOS High Sierra or in the user library of a new user account. If you open it (for example with Xcode) you'll see that it contains the stuck number.


After that your calculator widget should function normally again.

126 replies

Jan 4, 2018 7:28 PM in response to rawsaxy

Are you kidding me? How are we supposed to be able to retrieve numbers e.g. from multiple windows in an app, or even different parts of an email, to enter them into the calculator if it goes to 0 every time we change focus?


Are there any calculator apps that aren't 1) $10, and 2) full of scientific functions the average user doesn't need, that work with Notification Center? The app store is only showing about two dozen apps for Notification Center to begin with. It's maddening not to have an easily accessible calculator that works properly.

Jan 22, 2018 6:09 AM in response to paulo555

Just chiming in to ask for an official fix. There is no way this behavior is "by design." I appreciate the PEMDAS alternative but I'm really looking for a calculator widget for the Today panel of the notification center. The official one used to work. It's crazy that it's been broken as long as it has. If there's a third-party widget that can be added to the notification center, I'll take that.

Jan 22, 2018 2:19 PM in response to rawsaxy

I get how in some situations, some people would want the result to persist when the panel is closed, but for my uses, I open the notification window, perform the math I wish to perform, then I'm done, so I don't need a persistent result. Therefore, the posted fix worked just fine for me, as I was tired of seeing it populate to 1160 every time I opened it. (Must have been the value being held when I upgraded to Sierra).


Honestly, if one needs persistent results, simply open the built in full application rather than the widget, which can be minimized and maximized as needed, with the current result in tact. No need to go blow $10 just to have a widget with persistent results in the notification panel. At that point, I suggest, that one is getting too picky, and I recommend learning how to code if your needs are THAT specific.

Jan 22, 2018 4:32 PM in response to CountryGirl56

Reboots and shutdowns? Again, far too picky. You generally don't need to reboot, and you rarely need to shut down. You should be putting the machine to sleep so power nap can do it's thing:


  • Mail receives new messages.
  • Contacts keep up to date with changes made on other devices.
  • Calendar receives new invitations and calendar updates.
  • Reminders keep up to date with changes made on other devices.
  • Notes keep up to date with changes made on other devices.
  • Documents stored in iCloud keep up to date with changes made on other devices.
  • Photo Stream keeps up to date with changes made on other devices.
  • Find My Mac updates the location of the Mac, so you can find it while it's asleep.
  • VPN on demand continues working so that your corporate email updates securely. (Power Nap supports VPN connections that use a certificate to authenticate, not VPN connections that require entering a password.)
  • Mobile Device Management can remotely lock and wipe your Mac.



And these activities can occur while your Mac is asleep and plugged in to an AC power outlet:

  • Software updates download.
  • Mac App Store items (including software updates), download in the background.
  • Time Machine performs backups.
  • Spotlight performs indexing.
  • Help Center content updates.
  • Wireless base stations can wake your Mac using Wake on Wireless.


So, again, quite picky, and most people don't need such a hard level of persistence for calculator results. If you need such a level of persistence, write you own app, it's free, and it's not too hard to do.

Feb 7, 2018 4:22 AM in response to paulo555

I am having the same issue that you are. Running High Sierra 10.13.3 on on 2017 MBP. My start value is always 444,444,444. I have executed below suggestions with no favorable results. All I can do is clear before using. It will retain the calculation until I exit the window but on return my work is lost and the start value will have reverted back to 444,444,444. Please update if you get a viable solution. Thanks.

Feb 24, 2018 11:40 AM in response to catherineryanosm

catherineryanosm wrote:


Thanks. I did get that, but my problem is that I don't have the exact same file proposed (com.apple.ncplugin.calculator.plist). I have this one: com.apple.calculator.plist which looks like this:User uploaded file

Any suggestions, please?


It does not appear you are at the correct plist.


Maybe it will help if you post the complete path to get to "your" example as given: ?/?/?/com.apple.calculator.plist

Mar 8, 2018 7:22 AM in response to composer60

Found an even better solution...just use your iPhone! Clearly Apple has messed up with this one...can you really trust the calculations anymore? The notifications calculator has always been glitchy, for me at least. As annoying as this new bug is, I find it amusing that I'm always stuck at 34.2592952 and going no where fast.


@rawsaky - How can you insist that the new functions of the calculator are by design when they have clearly specified there was an oversight in one instance. One oversight + excuse of a newly designed function = BUG!

May 3, 2018 7:05 AM in response to Krigan

Hi. You said "...we will need to replace the .appex file with a fresh one from Sierra. If you happen to still have one (I can provide you with it, if you don't)."


I'm not sure where to find a fresh .appex file from Sierra. Are you saying to download from Apple, the High Sierra [10.13.4] iso or dmg file, and then use Pacifier to find that .appex file? If possible, could you email me the .appex file you mentioned to ****@ ntcf.org?


Much appreciation


Uriel


[Email Edited by Host]

May 10, 2018 11:54 AM in response to Krigan

Thanks for your help. I had it working after disabling SIP, renaming/moving/changing permissions to that of the original .appex file, and re-enabling SIP. But attempting to use the calculator after 30 minutes or more (I did not time it) the calculator was dead. I rebooted and it began to work again followed by going dead again after the initial use after waiting for some period of time. I am on an iMac Pro and 10.13.4. I put my original .appex file back, with it's problem of not retaining the last result on reuse.

Jun 6, 2018 11:52 PM in response to PANCHOFRANCISCO

Surely there must be a better way to solve this problem (I have it too) than to wait around for someone to post a now-dead file that we are supposed to swap out and hope the problem goes away. It's clear Apple doesn't care enough to fix it, as evidenced by the fact MacOS is being updated but our bug reports on this issue are being ignored. For something as simple as a calculator, this kind of problem is crazy and unthinkable.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Calculator widget on notification panel

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.