Hey all you Pythonisters, I just upgraded one of my devices to Pythonista 3.3 to test what has changed or broken from 3.2 in my project.
There's a few things, mostly minor. The biggest one is actually that the theme-management code I was using, which was cobbled together from threads in this forum, is no longer working.
I have this code:
def currentThemeName(self):
if self._NSUserDefaults is None:
self._NSUserDefaults = objc_util.ObjCClass('NSUserDefaults')
defaults = self._NSUserDefaults.standardUserDefaults()
name = str(defaults.stringForKey_('ThemeName'))
if not name: name = 'Default'
return name
that used to return the currently selected theme but is now, I believe, always returning the theme setting from Pythonista 3.2, which implies the user default key has changed?
Anyone know (@omz if you have a spare moment)? Perhaps there's now a better way to access this info?