You don't want to call your singleton using alloc init
. With this singleton, all references to it should be through its sharedTimeFormat
method, which will init
the object if necessary, and will return the singleton instance otherwise.
In other words, it doesn't appear that you're referencing the instance of the object stored in the static sharedObject
variable, which means that it's stored value will not necessarily be the same.