Description
Check SCI_GETMODIFY in windowShouldClose: and applicationShouldTerminate:. Present Save/Don't Save/Cancel alert for each dirty buffer.
Implementation
- In
windowShouldClose:, iterate all tabs and check SCI_GETMODIFY for each buffer
- Show NSAlert with Save/Don't Save/Cancel buttons for each dirty document
- Cancel aborts close; Don't Save discards; Save triggers save flow
- In
applicationShouldTerminate:, same logic but for app quit
- Handle split view buffers (check both views)
Key Files
macos/platform/main_phase7.mm
Sprint
Sprint 1 - Data Safety
Description
Check
SCI_GETMODIFYinwindowShouldClose:andapplicationShouldTerminate:. Present Save/Don't Save/Cancel alert for each dirty buffer.Implementation
windowShouldClose:, iterate all tabs and checkSCI_GETMODIFYfor each bufferapplicationShouldTerminate:, same logic but for app quitKey Files
macos/platform/main_phase7.mmSprint
Sprint 1 - Data Safety