Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Missing outlet warning at launch in macosapp #14389

Closed
1ec5 opened this issue Apr 10, 2019 · 3 comments · Fixed by #14390
Closed

Missing outlet warning at launch in macosapp #14389

1ec5 opened this issue Apr 10, 2019 · 3 comments · Fixed by #14390
Labels
bug macOS Mapbox Maps SDK for macOS offline

Comments

@1ec5
Copy link
Contributor

1ec5 commented Apr 10, 2019

The following warning appears in the console when launching macosapp as of 8389e74:

2019-04-10 13:41:56.090895-0700 Mapbox GL[30223:7451050] Failed to connect (includeIdeographsBox) outlet from (MapDocument) to (NSButton): missing setter or instance variable

/cc @fabian-guerra

@1ec5 1ec5 added bug macOS Mapbox Maps SDK for macOS offline labels Apr 10, 2019
@1ec5
Copy link
Contributor Author

1ec5 commented Apr 10, 2019

The “Include CJK characters” checkbox in the Add Offline Pack sheet is hooked up to MapDocument.includeIdeographsBox, which isn’t defined.

#13607 added this checkbox to the sheet but defined the outlet as includesIdeographicGlyphsBox:

@property (weak) IBOutlet NSButton *includesIdeographicGlyphsBox;

It was probably a last-minute refactoring, but it means that the checkbox has been nonfunctional all this time. Any offline pack size estimates that depended on this checkbox being unchecked are inaccurate.

/cc @chloekraw @coxchapman

@chloekraw
Copy link
Contributor

Thanks for catching this and fixing it so quickly @1ec5! Is this the kind of thing we can or should add tests for?

cc/ @mapbox/maps-ios

@1ec5
Copy link
Contributor Author

1ec5 commented Apr 11, 2019

This only surfaced as a runtime warning, since it was an application-level UI bug. We’d need to create an UI test integration target like we have for iOS. It’d be a bit of a big lift, versus educating contributors to this codebase that XIBs can have code-level dependencies on source files.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug macOS Mapbox Maps SDK for macOS offline
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants