dataOfType not called!


I have an NSDocument which contains ‘dataOfType:’ and ‘readFromData:’, but when I choose Save or Load from the menu, these methods are not called! Why is this? The menu items point to the first responder, is it possible that my active document is somehow not the first responder?
Any help appreciated.