ultimatepp/uppsrc/CtrlCore/CocoTop.mm
Zbigniew Rębacz d4bae3cd09
CtrlCore: Cocoa always use bundled icon (#339)
* CtrlCore: Cocoa always use bundled icon.

* Reworked

* .cosmetics

* .simplified
2026-01-12 08:33:07 +01:00

39 lines
576 B
Text

#include <CtrlCore/CtrlCore.h>
#ifdef GUI_COCOA
#include <CtrlCore/CocoMM.h>
namespace Upp {
#define LLOG(x) // LOG(x)
TopWindow& TopWindow::FullScreen(bool b)
{
return *this;
}
TopWindow& TopWindow::TopMost(bool b, bool stay_top)
{
GuiLock __;
return *this;
}
bool TopWindow::IsTopMost() const
{
return true;
}
void TopWindow::GuiPlatformConstruct()
{
}
void TopWindow::SetBadgeLabel(const String& label)
{
NSString* nlabel = [NSString stringWithUTF8String:~label];
[[NSApp dockTile] setBadgeLabel:nlabel];
}
}
#endif