Replace all occurences of UIColor with NSColor