mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-01 07:35:02 +03:00
409eb644c8
I broke this when moving from a xib file to creating the UI in code. https://developer.apple.com/documentation/appkit/nsuserinterfaceitemidentification/1396829-identifier says: "Identifiers are used during window restoration operations to uniquely identify the windows of the application. [...] If you create an item in Interface Builder and do not set a value for this string, a unique value is created for the item when the nib file is loaded. For programmatically created views, you typically set this value after creating the item but before adding it to a window." Without this, encodeRestorableStateWithCoder: / restoreStateWithCoder: in MacPDFView weren't getting called. |
||
---|---|---|
.. | ||
AppDelegate.h | ||
AppDelegate.mm | ||
CMakeLists.txt | ||
CocoaWrapper.h | ||
Info.plist | ||
MacPDFDocument.h | ||
MacPDFDocument.mm | ||
MacPDFOutlineViewDataSource.h | ||
MacPDFOutlineViewDataSource.mm | ||
MacPDFView.h | ||
MacPDFView.mm | ||
MacPDFWindowController.h | ||
MacPDFWindowController.mm | ||
main.mm | ||
MainMenu.xib |