Edit AllPages describes a current bug in NSDrawer that causes it to become detached from it’s parentWindow when it resizes if garbage collection is on. The hack below forces the drawer to stay attached.

@implementation NSDrawer (GC)


It should be understood that the intent is that this is a temporary work-around until the bug is fixed in AppKit. — BryanWoods

Update: This code is no longer needed.