NSWindowRestoration.inc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. { Parsed from AppKit.framework NSWindowRestoration.h }
  2. {$ifdef TYPES}
  3. type
  4. NSWindowRestorationProtocolPtr = ^NSWindowRestorationProtocol;
  5. {$endif}
  6. {$ifdef PROTOCOLS}
  7. type
  8. NSWindowRestorationProtocol = objcprotocol external name 'NSWindowRestoration' (NSObjectProtocol)
  9. class procedure restoreWindowWithIdentifier_state_completionHandler (identifier: NSString; state: NSCoder; completionHandler: OpaqueCBlock); message 'restoreWindowWithIdentifier:state:completionHandler:'; { available in 10_7 }
  10. end;
  11. {$endif}
  12. {$ifdef CLASSES}
  13. type
  14. NSDocumentController_NSWindowRestoration = objccategory external name 'NSWindowRestoration' (NSDocumentController)
  15. end;
  16. type
  17. NSWindowRestoration = objccategory external (NSApplication)
  18. function restoreWindowWithIdentifier_state_completionHandler (identifier: NSString; state: NSCoder; completionHandler: OpaqueCBlock): ObjCBOOL; message 'restoreWindowWithIdentifier:state:completionHandler:'; { available in 10_7 }
  19. end;
  20. {$endif}
  21. {$ifdef EXTERNAL_SYMBOLS}
  22. var
  23. NSApplicationDidFinishRestoringWindowsNotification: NSString { available in 10_7 }; cvar; external;
  24. {$endif}
  25. {$ifdef CLASSES}
  26. type
  27. NSUserInterfaceRestoration = objccategory external (NSWindow)
  28. procedure setRestorable(newValue: ObjCBOOL); message 'setRestorable:';
  29. function isRestorable: ObjCBOOL; message 'isRestorable';
  30. procedure setRestorationClass(newValue: NSWindowRestorationProtocol); message 'setRestorationClass:';
  31. function restorationClass: NSWindowRestorationProtocol; message 'restorationClass';
  32. procedure disableSnapshotRestoration; message 'disableSnapshotRestoration';
  33. procedure enableSnapshotRestoration; message 'enableSnapshotRestoration';
  34. end;
  35. type
  36. NSResponder_NSRestorableState = objccategory external name 'NSRestorableState' (NSResponder)
  37. procedure encodeRestorableStateWithCoder (coder: NSCoder); message 'encodeRestorableStateWithCoder:'; { available in 10_7 }
  38. procedure restoreStateWithCoder (coder: NSCoder); message 'restoreStateWithCoder:'; { available in 10_7 }
  39. procedure invalidateRestorableState; message 'invalidateRestorableState'; { available in 10_7 }
  40. class function restorableStateKeyPaths: NSArray; message 'restorableStateKeyPaths'; { available in 10_7 }
  41. end;
  42. type
  43. NSRestorableStateExtension = objccategory external (NSApplication)
  44. procedure extendStateRestoration; message 'extendStateRestoration'; { available in 10_7 }
  45. procedure completeStateRestoration; message 'completeStateRestoration'; { available in 10_7 }
  46. end;
  47. type
  48. NSRestorableState = objccategory external (NSDocument)
  49. procedure restoreDocumentWindowWithIdentifier_state_completionHandler (identifier: NSString; state: NSCoder; completionHandler: OpaqueCBlock); message 'restoreDocumentWindowWithIdentifier:state:completionHandler:'; { available in 10_7 }
  50. procedure encodeRestorableStateWithCoder (coder: NSCoder); message 'encodeRestorableStateWithCoder:'; { available in 10_7 }
  51. procedure restoreStateWithCoder (coder: NSCoder); message 'restoreStateWithCoder:'; { available in 10_7 }
  52. procedure invalidateRestorableState; message 'invalidateRestorableState'; { available in 10_7 }
  53. class function restorableStateKeyPaths: NSArray; message 'restorableStateKeyPaths'; { available in 10_7 }
  54. end;
  55. {$endif}