it turns out CocosBuilder does not always detect document changes properly.
e.g. if you set the CCControl selector property, it doesn't notice that it's
been set. workaround is to save all currently open ccb documents regardless
of whether they have the dirtyFlag set or not.