I originally did this as a comment but I'll make this as an answer:
You should assign "myWindowController
" to a strong property in whatever object (NSWindowController or whatever) that brings up the sheet.
E.G., use
@property (strong) NSWindowController *mySpecialSheet;