// FIXME: It's hacky to get at the controller this way, but it's
// also hacky to pass it. Shouldn't need to do either.
ApplicationController *ac = NSApplication.sharedApplication.delegate;
// FIXME: It's hacky to get at the controller this way, but it's
// also hacky to pass it. Shouldn't need to do either.
ApplicationController *ac = NSApplication.sharedApplication.delegate;