Refactor NSWindow and NSURL to remove use of now private NSObject.m_id property.