Sierra Notification Center Widgets

Notification Center in Sierra has a new, light background colour compared with Yosemite and El Cap. My widget, however, still shows the old, dark style, even when I rebuild with the new SDK.


The view has appearance set to "Inherited (Vibrant Dark)". Changing that to "Aqua" seems to have no effect.


Is it possible to change third party widgets to look the same as Apple's? I notice all the other third party widgets I look the same.


Thanks,

Stephen

Accepted Reply

I also posted this question to Stack Overflow. I got an answer there.


In short, add the following key to your Info.plist:


<key>NSExtension</key>

<dict>

  <key>NSExtensionAttributes</key>

  <dict>

   <key>NSExtensionPointVersion</key>

   <string>2.0</string>

  </dict>

</dict>

Replies

I also posted this question to Stack Overflow. I got an answer there.


In short, add the following key to your Info.plist:


<key>NSExtension</key>

<dict>

  <key>NSExtensionAttributes</key>

  <dict>

   <key>NSExtensionPointVersion</key>

   <string>2.0</string>

  </dict>

</dict>

Thanks. It works.


But when I create archive for submission I will get the error:


"iTunes Store operation failed.
Invalid Info.plist key. The key 'NSExtensionPointVersion' in bundle ***.appex is invalid."


How to resolve this?

I got the same error, but was able to upload today. Maybe the AppStore validation routines have been fixed?

I didn't see that, I'm afraid. I added the key, built with the 10.12 SDK and it Just Worked. Maybe there was a glitch with iTC? Wait a bit and try again?