LAND-VEHICLE DESIGN TOOL
Home
About
Bicycle-trailer
InterUnit-UI
Land-vehicle construction
Contact
Open Positions
InterUnit-UI on wxWidgets
InterUnit-UI on Win32
InterUnit-UI on MacOS
InterUnit-UI on Linux
InterUnit-UI on Android
InterUnit-UI on iOS
InterUnit-UI on a Web-app
Events
Appendix A
Appendix B
Appendix C
Privacy Policy
Mobile App UI design
LAND-VEHICLE DESIGN TOOL
Home
About
Bicycle-trailer
InterUnit-UI
Land-vehicle construction
Contact
Open Positions
InterUnit-UI on wxWidgets
InterUnit-UI on Win32
InterUnit-UI on MacOS
InterUnit-UI on Linux
InterUnit-UI on Android
InterUnit-UI on iOS
InterUnit-UI on a Web-app
Events
Appendix A
Appendix B
Appendix C
Privacy Policy
Mobile App UI design
More
  • Home
  • About
  • Bicycle-trailer
  • InterUnit-UI
  • Land-vehicle construction
  • Contact
  • Open Positions
  • InterUnit-UI on wxWidgets
  • InterUnit-UI on Win32
  • InterUnit-UI on MacOS
  • InterUnit-UI on Linux
  • InterUnit-UI on Android
  • InterUnit-UI on iOS
  • InterUnit-UI on a Web-app
  • Events
  • Appendix A
  • Appendix B
  • Appendix C
  • Privacy Policy
  • Mobile App UI design
  • Home
  • About
  • Bicycle-trailer
  • InterUnit-UI
  • Land-vehicle construction
  • Contact
  • Open Positions
  • InterUnit-UI on wxWidgets
  • InterUnit-UI on Win32
  • InterUnit-UI on MacOS
  • InterUnit-UI on Linux
  • InterUnit-UI on Android
  • InterUnit-UI on iOS
  • InterUnit-UI on a Web-app
  • Events
  • Appendix A
  • Appendix B
  • Appendix C
  • Privacy Policy
  • Mobile App UI design

InterUnit-UI on MacOS -- Swift (AppKit)

Swift on AppKit

Approximate Implementation Notes


NSView (WIndow::Frame)


class EngagementManager : NSWIndow

struct SInterUnit 

(base functions and data needed by all InterUnits

to interface with the EngagementManager)


protocol PInterUnit

(additional functions required for all concrete InterUnits.

All concrete InterUnits are SInterUnits that implement PInterUnit)


1. Frame-buffer access

override NSView::draw(_:)

{

NSGraphicsGetCurrentContext()

NSGraphicsPushContext(_:)

(draw the InterUnit stack in back to front order)

NSGraphicsPopContext()

}


--- x --- x ---


2. User-input response 

UIPress

(UIKit sends this general purpose descriptive object to the UIView

for keyboard, mouse and touch events)


NSView::setNeedsDisplay(_:) 

(request for a draw, full or partial)


Copyright Khitchdee Design (OPC) Private Limited 2025

  • Home
  • Bicycle-trailer
  • InterUnit-UI
  • Contact
  • Open Positions