Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 558 Bytes

notes.md

File metadata and controls

21 lines (17 loc) · 558 Bytes

Initialization of objects

New object (using our make_... functions)

  • Object is created with doc.addObject().
  • ViewObject is created
  • Object.Proxy.__init__()
  • ViewObject.Proxy.__init__()
  • ViewObject.Proxy.attach(), triggered by ViewObject.Proxy = self

When opening an existing document

  • Object exists
  • loads()
  • ViewObject exists
  • ViewObject.Proxy.attach()
  • Properties are restored (onChanged())
  • Object.onDocumentRestored()