Forráskód Böngészése

+ Cocoa interfaces and parser by Ryan Joseph

git-svn-id: branches/objc@13688 -
Jonas Maebe 16 éve
szülő
commit
912fbbec79
100 módosított fájl, 14470 hozzáadás és 3 törlés
  1. 298 0
      .gitattributes
  2. 55 3
      packages/Makefile
  3. 2261 0
      packages/cocoaint/Makefile
  4. 27 0
      packages/cocoaint/Makefile.fpc
  5. 89 0
      packages/cocoaint/src/CocoaAll.pas
  6. 127 0
      packages/cocoaint/src/InlineFunctions.inc
  7. 658 0
      packages/cocoaint/src/NSDelegatesAll.pas
  8. 57 0
      packages/cocoaint/src/UndefinedClasses.inc
  9. 80 0
      packages/cocoaint/src/UndefinedTypes.inc
  10. 181 0
      packages/cocoaint/src/appkit/AppKit.inc
  11. 0 0
      packages/cocoaint/src/appkit/CIColor.inc
  12. 125 0
      packages/cocoaint/src/appkit/NSATSTypesetter.inc
  13. 177 0
      packages/cocoaint/src/appkit/NSAccessibility.inc
  14. 85 0
      packages/cocoaint/src/appkit/NSActionCell.inc
  15. 88 0
      packages/cocoaint/src/appkit/NSAffineTransform.inc
  16. 133 0
      packages/cocoaint/src/appkit/NSAlert.inc
  17. 174 0
      packages/cocoaint/src/appkit/NSAnimation.inc
  18. 67 0
      packages/cocoaint/src/appkit/NSAnimationContext.inc
  19. 31 0
      packages/cocoaint/src/appkit/NSAppleScriptExtensions.inc
  20. 285 0
      packages/cocoaint/src/appkit/NSApplication.inc
  21. 31 0
      packages/cocoaint/src/appkit/NSApplicationScripting.inc
  22. 134 0
      packages/cocoaint/src/appkit/NSArrayController.inc
  23. 216 0
      packages/cocoaint/src/appkit/NSAttributedString.inc
  24. 174 0
      packages/cocoaint/src/appkit/NSBezierPath.inc
  25. 150 0
      packages/cocoaint/src/appkit/NSBitmapImageRep.inc
  26. 127 0
      packages/cocoaint/src/appkit/NSBox.inc
  27. 256 0
      packages/cocoaint/src/appkit/NSBrowser.inc
  28. 72 0
      packages/cocoaint/src/appkit/NSBrowserCell.inc
  29. 110 0
      packages/cocoaint/src/appkit/NSButton.inc
  30. 250 0
      packages/cocoaint/src/appkit/NSButtonCell.inc
  31. 64 0
      packages/cocoaint/src/appkit/NSCIImageRep.inc
  32. 67 0
      packages/cocoaint/src/appkit/NSCachedImageRep.inc
  33. 361 0
      packages/cocoaint/src/appkit/NSCell.inc
  34. 101 0
      packages/cocoaint/src/appkit/NSClipView.inc
  35. 154 0
      packages/cocoaint/src/appkit/NSCollectionView.inc
  36. 169 0
      packages/cocoaint/src/appkit/NSColor.inc
  37. 98 0
      packages/cocoaint/src/appkit/NSColorList.inc
  38. 143 0
      packages/cocoaint/src/appkit/NSColorPanel.inc
  39. 73 0
      packages/cocoaint/src/appkit/NSColorPicker.inc
  40. 64 0
      packages/cocoaint/src/appkit/NSColorPicking.inc
  41. 105 0
      packages/cocoaint/src/appkit/NSColorSpace.inc
  42. 79 0
      packages/cocoaint/src/appkit/NSColorWell.inc
  43. 103 0
      packages/cocoaint/src/appkit/NSComboBox.inc
  44. 80 0
      packages/cocoaint/src/appkit/NSComboBoxCell.inc
  45. 146 0
      packages/cocoaint/src/appkit/NSControl.inc
  46. 86 0
      packages/cocoaint/src/appkit/NSController.inc
  47. 102 0
      packages/cocoaint/src/appkit/NSCursor.inc
  48. 66 0
      packages/cocoaint/src/appkit/NSCustomImageRep.inc
  49. 91 0
      packages/cocoaint/src/appkit/NSDatePicker.inc
  50. 139 0
      packages/cocoaint/src/appkit/NSDatePickerCell.inc
  51. 90 0
      packages/cocoaint/src/appkit/NSDictionaryController.inc
  52. 81 0
      packages/cocoaint/src/appkit/NSDockTile.inc
  53. 211 0
      packages/cocoaint/src/appkit/NSDocument.inc
  54. 118 0
      packages/cocoaint/src/appkit/NSDocumentController.inc
  55. 31 0
      packages/cocoaint/src/appkit/NSDocumentScripting.inc
  56. 72 0
      packages/cocoaint/src/appkit/NSDragging.inc
  57. 125 0
      packages/cocoaint/src/appkit/NSDrawer.inc
  58. 68 0
      packages/cocoaint/src/appkit/NSEPSImageRep.inc
  59. 70 0
      packages/cocoaint/src/appkit/NSErrors.inc
  60. 330 0
      packages/cocoaint/src/appkit/NSEvent.inc
  61. 95 0
      packages/cocoaint/src/appkit/NSFileWrapper.inc
  62. 165 0
      packages/cocoaint/src/appkit/NSFont.inc
  63. 116 0
      packages/cocoaint/src/appkit/NSFontDescriptor.inc
  64. 164 0
      packages/cocoaint/src/appkit/NSFontManager.inc
  65. 158 0
      packages/cocoaint/src/appkit/NSFontPanel.inc
  66. 31 0
      packages/cocoaint/src/appkit/NSForm.inc
  67. 86 0
      packages/cocoaint/src/appkit/NSFormCell.inc
  68. 82 0
      packages/cocoaint/src/appkit/NSGlyphGenerator.inc
  69. 71 0
      packages/cocoaint/src/appkit/NSGlyphInfo.inc
  70. 91 0
      packages/cocoaint/src/appkit/NSGradient.inc
  71. 151 0
      packages/cocoaint/src/appkit/NSGraphics.inc
  72. 106 0
      packages/cocoaint/src/appkit/NSGraphicsContext.inc
  73. 81 0
      packages/cocoaint/src/appkit/NSHelpManager.inc
  74. 170 0
      packages/cocoaint/src/appkit/NSImage.inc
  75. 101 0
      packages/cocoaint/src/appkit/NSImageCell.inc
  76. 122 0
      packages/cocoaint/src/appkit/NSImageRep.inc
  77. 84 0
      packages/cocoaint/src/appkit/NSImageView.inc
  78. 111 0
      packages/cocoaint/src/appkit/NSInputManager.inc
  79. 94 0
      packages/cocoaint/src/appkit/NSInputServer.inc
  80. 49 0
      packages/cocoaint/src/appkit/NSInterfaceStyle.inc
  81. 40 0
      packages/cocoaint/src/appkit/NSKeyValueBinding.inc
  82. 296 0
      packages/cocoaint/src/appkit/NSLayoutManager.inc
  83. 75 0
      packages/cocoaint/src/appkit/NSLevelIndicator.inc
  84. 110 0
      packages/cocoaint/src/appkit/NSLevelIndicatorCell.inc
  85. 256 0
      packages/cocoaint/src/appkit/NSMatrix.inc
  86. 149 0
      packages/cocoaint/src/appkit/NSMenu.inc
  87. 140 0
      packages/cocoaint/src/appkit/NSMenuItem.inc
  88. 96 0
      packages/cocoaint/src/appkit/NSMenuItemCell.inc
  89. 134 0
      packages/cocoaint/src/appkit/NSMenuView.inc
  90. 76 0
      packages/cocoaint/src/appkit/NSMovie.inc
  91. 128 0
      packages/cocoaint/src/appkit/NSMovieView.inc
  92. 31 0
      packages/cocoaint/src/appkit/NSMoview.inc
  93. 79 0
      packages/cocoaint/src/appkit/NSNib.inc
  94. 31 0
      packages/cocoaint/src/appkit/NSNibLoading.inc
  95. 111 0
      packages/cocoaint/src/appkit/NSObjectController.inc
  96. 187 0
      packages/cocoaint/src/appkit/NSOpenGL.inc
  97. 75 0
      packages/cocoaint/src/appkit/NSOpenGLView.inc
  98. 79 0
      packages/cocoaint/src/appkit/NSOpenPanel.inc
  99. 173 0
      packages/cocoaint/src/appkit/NSOutlineView.inc
  100. 71 0
      packages/cocoaint/src/appkit/NSPDFImageRep.inc

+ 298 - 0
.gitattributes

@@ -982,6 +982,304 @@ packages/chm/src/htmlutil.pas svneol=native#text/plain
 packages/chm/src/paslznonslide.pas svneol=native#text/plain
 packages/chm/src/paslzx.pas svneol=native#text/plain
 packages/chm/src/paslzxcomp.pas svneol=native#text/plain
+packages/cocoaint/Makefile svneol=native#text/plain
+packages/cocoaint/Makefile.fpc svneol=native#text/plain
+packages/cocoaint/src/CocoaAll.pas svneol=native#text/plain
+packages/cocoaint/src/InlineFunctions.inc svneol=native#text/plain
+packages/cocoaint/src/NSDelegatesAll.pas svneol=native#text/plain
+packages/cocoaint/src/UndefinedClasses.inc svneol=native#text/plain
+packages/cocoaint/src/UndefinedTypes.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/AppKit.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/CIColor.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSATSTypesetter.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSAccessibility.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSActionCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSAffineTransform.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSAlert.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSAnimation.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSAnimationContext.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSAppleScriptExtensions.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSApplication.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSApplicationScripting.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSArrayController.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSAttributedString.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSBezierPath.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSBitmapImageRep.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSBox.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSBrowser.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSBrowserCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSButton.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSButtonCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSCIImageRep.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSCachedImageRep.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSClipView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSCollectionView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSColor.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSColorList.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSColorPanel.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSColorPicker.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSColorPicking.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSColorSpace.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSColorWell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSComboBox.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSComboBoxCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSControl.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSController.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSCursor.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSCustomImageRep.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSDatePicker.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSDatePickerCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSDictionaryController.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSDockTile.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSDocument.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSDocumentController.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSDocumentScripting.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSDragging.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSDrawer.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSEPSImageRep.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSErrors.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSEvent.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSFileWrapper.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSFont.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSFontDescriptor.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSFontManager.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSFontPanel.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSForm.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSFormCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSGlyphGenerator.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSGlyphInfo.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSGradient.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSGraphics.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSGraphicsContext.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSHelpManager.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSImage.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSImageCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSImageRep.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSImageView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSInputManager.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSInputServer.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSInterfaceStyle.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSKeyValueBinding.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSLayoutManager.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSLevelIndicator.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSLevelIndicatorCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSMatrix.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSMenu.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSMenuItem.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSMenuItemCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSMenuView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSMovie.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSMovieView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSMoview.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSNib.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSNibLoading.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSObjectController.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSOpenGL.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSOpenGLView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSOpenPanel.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSOutlineView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPDFImageRep.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPICTImageRep.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPageLayout.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPanel.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSParagraphStyle.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPasteboard.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPathCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPathComponentCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPathControl.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPersistentDocument.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPopUpButton.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPopUpButtonCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPredicateEditor.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPrintInfo.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPrintOperation.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPrintPanel.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSPrinter.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSProgressIndicator.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSQuickDrawView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSResponder.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSRuleEditor.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSRulerMarker.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSRulerView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSavePanel.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSScreen.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSScrollView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSScroller.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSearchField.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSearchFieldCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSecureTextField.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSegmentedControl.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSShadow.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSlider.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSliderCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSound.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSpeechRecognizer.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSpeechSynthesizer.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSpellChecker.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSpellProtocol.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSSplitView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSStatusBar.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSStatusItem.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSStepper.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSStepperCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSStringDrawing.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTabView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTabViewItem.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTableColumn.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTableHeaderCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTableHeaderView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTableView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSText.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTextAttachment.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTextContainer.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTextField.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTextFieldCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTextInputClient.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTextList.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTextStorage.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTextStorageScripting.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTextTable.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTextView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTokenField.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTokenFieldCell.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSToolbar.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSToolbarItem.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSToolbarItemGroup.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTrackingArea.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTreeController.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSTreeNode.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSUserDefaultsController.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSValidatedUserInterfaceItem.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSView.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSViewController.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSWindow.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSWindowController.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSWindowScripting.inc svneol=native#text/plain
+packages/cocoaint/src/appkit/NSWorkspace.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/Foundation.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSAffineTransform.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSAppleEventDescriptor.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSAppleEventManager.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSAppleScript.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSArchiver.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSArray.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSAttributedString.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSAutoreleasePool.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSBundle.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSCalendar.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSCalendarDate.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSCharacterSet.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSClassDescription.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSCoder.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSComparisonPredicate.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSCompoundPredicate.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSConnection.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSData.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSDate.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSDateFormatter.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSDecimal.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSDecimalNumber.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSDelegatesAll.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSDictionary.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSDistantObject.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSDistributedLock.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSDistributedNotificationCenter.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSEnumerator.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSError.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSException.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSExpression.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSFileHandle.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSFileManager.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSFormatter.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSGarbageCollector.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSGeometry.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSHFSFileTypes.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSHTTPCookie.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSHTTPCookieStorage.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSHashTable.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSHost.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSIndexPath.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSIndexSet.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSKeyValueCoding.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSKeyValueObserving.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSKeyedArchiver.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSLocale.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSLock.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSMapTable.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSMetadata.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSMethodSignature.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSNetServices.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSNotification.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSNotificationQueue.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSNull.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSNumberFormatter.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSObjCRuntime.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSObject.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSObjectScripting.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSOperation.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSPathUtilities.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSPointerArray.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSPort.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSPortCoder.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSPortMessage.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSPortNameServer.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSPredicate.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSProcessInfo.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSPropertyList.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSProtocolChecker.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSProxy.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSRange.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSRunLoop.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSScanner.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSScriptClassDescription.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSScriptCoercionHandler.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSScriptCommand.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSScriptCommandDescription.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSScriptExecutionContext.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSScriptKeyValueCoding.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSScriptObjectSpecifiers.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSScriptStandardSuiteCommands.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSScriptSuiteRegistry.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSScriptWhoseTests.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSSet.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSSortDescriptor.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSSpellServer.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSStream.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSString.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSTask.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSThread.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSTimeZone.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSTimer.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURL.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLAuthenticationChallenge.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLCache.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLConnection.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLCredential.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLCredentialStorage.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLDownload.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLError.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLHandle.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLProtectionSpace.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLProtocol.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLRequest.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSURLResponse.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSUndoManager.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSUserDefaults.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSValue.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSValueTransformer.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSXMLDTD.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSXMLDTDNode.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSXMLDocument.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSXMLElement.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSXMLNode.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSXMLNodeOptions.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSXMLParser.inc svneol=native#text/plain
+packages/cocoaint/src/foundation/NSZone.inc svneol=native#text/plain
+packages/cocoaint/utils/Instructions.txt svneol=native#text/plain
+packages/cocoaint/utils/objp_parser.php svneol=native#text/plain
+packages/cocoaint/utils/parser.php svneol=native#text/plain
+packages/cocoaint/utils/pascocoa_parser.php svneol=native#text/plain
 packages/dbus/Makefile svneol=native#text/plain
 packages/dbus/Makefile.fpc svneol=native#text/plain
 packages/dbus/examples/Makefile svneol=native#text/plain

+ 55 - 3
packages/Makefile

@@ -1,5 +1,5 @@
 #
-# Don't edit, this file is generated by FPCMake Version 2.0.0 [2009/08/02]
+# Don't edit, this file is generated by FPCMake Version 2.0.0 [2009/08/14]
 #
 default: all
 MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded avr-embedded armeb-linux armeb-embedded
@@ -304,7 +304,7 @@ ifeq ($(FULL_TARGET),i386-wdosx)
 override TARGET_DIRS+=hash pasjpeg paszlib fpmkunit fcl-xml fcl-base fcl-db fcl-image fcl-net fcl-passrc fcl-registry fcl-fpcunit fcl-json  fcl-process unzip regexpr chm fcl-res libgd symbolic
 endif
 ifeq ($(FULL_TARGET),i386-darwin)
-override TARGET_DIRS+=hash pasjpeg paszlib fpmkunit fcl-xml fcl-base fcl-db fcl-image fcl-net fcl-passrc fcl-registry fcl-fpcunit fcl-json  fcl-process unzip regexpr chm fcl-res libgd symbolic  fv fcl-web fastcgi fcl-async ibase mysql ncurses zlib oracle odbc postgres sqlite pthreads imagemagick libpng gdbm tcl syslog libcurl bfd aspell utmp fftw pcap openssl numlib iconvenc graph univint sdl opengl x11 cairo gtk1 gtk2 librsvg fpgtk xforms  gnome1 httpd13 httpd20 httpd22 imlib opengles objcrtl
+override TARGET_DIRS+=hash pasjpeg paszlib fpmkunit fcl-xml fcl-base fcl-db fcl-image fcl-net fcl-passrc fcl-registry fcl-fpcunit fcl-json  fcl-process unzip regexpr chm fcl-res libgd symbolic  fv fcl-web fastcgi fcl-async ibase mysql ncurses zlib oracle odbc postgres sqlite pthreads imagemagick libpng gdbm tcl syslog libcurl bfd aspell utmp fftw pcap openssl numlib iconvenc graph univint cocoaint sdl opengl x11 cairo gtk1 gtk2 librsvg fpgtk xforms  gnome1 httpd13 httpd20 httpd22 imlib opengles objcrtl
 endif
 ifeq ($(FULL_TARGET),i386-emx)
 override TARGET_DIRS+=hash pasjpeg paszlib fpmkunit fcl-xml fcl-base fcl-db fcl-image fcl-net fcl-passrc fcl-registry fcl-fpcunit fcl-json  fcl-process unzip regexpr chm fcl-res libgd symbolic  fv zlib libpng x11 tcl fpgtk rexx os2units gtk1 imlib
@@ -361,7 +361,7 @@ ifeq ($(FULL_TARGET),powerpc-macos)
 override TARGET_DIRS+=hash pasjpeg paszlib fpmkunit fcl-xml fcl-base fcl-db fcl-image fcl-net fcl-passrc fcl-registry fcl-fpcunit fcl-json  fcl-process unzip regexpr chm fcl-res libgd symbolic
 endif
 ifeq ($(FULL_TARGET),powerpc-darwin)
-override TARGET_DIRS+=hash pasjpeg paszlib fpmkunit fcl-xml fcl-base fcl-db fcl-image fcl-net fcl-passrc fcl-registry fcl-fpcunit fcl-json  fcl-process unzip regexpr chm fcl-res libgd symbolic  fv fcl-web fastcgi fcl-async ibase mysql ncurses zlib oracle odbc postgres sqlite pthreads imagemagick libpng gdbm tcl syslog libcurl bfd aspell utmp fftw pcap openssl numlib iconvenc graph univint sdl opengl x11 cairo gtk1 gtk2 librsvg fpgtk xforms gnome1 httpd13 httpd20 httpd22 imlib objcrtl
+override TARGET_DIRS+=hash pasjpeg paszlib fpmkunit fcl-xml fcl-base fcl-db fcl-image fcl-net fcl-passrc fcl-registry fcl-fpcunit fcl-json  fcl-process unzip regexpr chm fcl-res libgd symbolic  fv fcl-web fastcgi fcl-async ibase mysql ncurses zlib oracle odbc postgres sqlite pthreads imagemagick libpng gdbm tcl syslog libcurl bfd aspell utmp fftw pcap openssl numlib iconvenc graph univint cocoaint sdl opengl x11 cairo gtk1 gtk2 librsvg fpgtk xforms gnome1 httpd13 httpd20 httpd22 imlib objcrtl
 endif
 ifeq ($(FULL_TARGET),powerpc-morphos)
 override TARGET_DIRS+=hash pasjpeg paszlib fpmkunit fcl-xml fcl-base fcl-db fcl-image fcl-net fcl-passrc fcl-registry fcl-fpcunit fcl-json  fcl-process unzip regexpr chm fcl-res libgd symbolic  fv opengl
@@ -2258,6 +2258,7 @@ TARGET_DIRS_NUMLIB=1
 TARGET_DIRS_ICONVENC=1
 TARGET_DIRS_GRAPH=1
 TARGET_DIRS_UNIVINT=1
+TARGET_DIRS_COCOAINT=1
 TARGET_DIRS_SDL=1
 TARGET_DIRS_OPENGL=1
 TARGET_DIRS_X11=1
@@ -3058,6 +3059,7 @@ TARGET_DIRS_NUMLIB=1
 TARGET_DIRS_ICONVENC=1
 TARGET_DIRS_GRAPH=1
 TARGET_DIRS_UNIVINT=1
+TARGET_DIRS_COCOAINT=1
 TARGET_DIRS_SDL=1
 TARGET_DIRS_OPENGL=1
 TARGET_DIRS_X11=1
@@ -8225,6 +8227,51 @@ univint:
 	$(MAKE) -C univint all
 .PHONY: univint_all univint_debug univint_smart univint_release univint_units univint_examples univint_shared univint_install univint_sourceinstall univint_exampleinstall univint_distinstall univint_zipinstall univint_zipsourceinstall univint_zipexampleinstall univint_zipdistinstall univint_clean univint_distclean univint_cleanall univint_info univint_makefiles univint
 endif
+ifdef TARGET_DIRS_COCOAINT
+cocoaint_all:
+	$(MAKE) -C cocoaint all
+cocoaint_debug:
+	$(MAKE) -C cocoaint debug
+cocoaint_smart:
+	$(MAKE) -C cocoaint smart
+cocoaint_release:
+	$(MAKE) -C cocoaint release
+cocoaint_units:
+	$(MAKE) -C cocoaint units
+cocoaint_examples:
+	$(MAKE) -C cocoaint examples
+cocoaint_shared:
+	$(MAKE) -C cocoaint shared
+cocoaint_install:
+	$(MAKE) -C cocoaint install
+cocoaint_sourceinstall:
+	$(MAKE) -C cocoaint sourceinstall
+cocoaint_exampleinstall:
+	$(MAKE) -C cocoaint exampleinstall
+cocoaint_distinstall:
+	$(MAKE) -C cocoaint distinstall
+cocoaint_zipinstall:
+	$(MAKE) -C cocoaint zipinstall
+cocoaint_zipsourceinstall:
+	$(MAKE) -C cocoaint zipsourceinstall
+cocoaint_zipexampleinstall:
+	$(MAKE) -C cocoaint zipexampleinstall
+cocoaint_zipdistinstall:
+	$(MAKE) -C cocoaint zipdistinstall
+cocoaint_clean:
+	$(MAKE) -C cocoaint clean
+cocoaint_distclean:
+	$(MAKE) -C cocoaint distclean
+cocoaint_cleanall:
+	$(MAKE) -C cocoaint cleanall
+cocoaint_info:
+	$(MAKE) -C cocoaint info
+cocoaint_makefiles:
+	$(MAKE) -C cocoaint makefiles
+cocoaint:
+	$(MAKE) -C cocoaint all
+.PHONY: cocoaint_all cocoaint_debug cocoaint_smart cocoaint_release cocoaint_units cocoaint_examples cocoaint_shared cocoaint_install cocoaint_sourceinstall cocoaint_exampleinstall cocoaint_distinstall cocoaint_zipinstall cocoaint_zipsourceinstall cocoaint_zipexampleinstall cocoaint_zipdistinstall cocoaint_clean cocoaint_distclean cocoaint_cleanall cocoaint_info cocoaint_makefiles cocoaint
+endif
 ifdef TARGET_DIRS_OPENGLES
 opengles_all:
 	$(MAKE) -C opengles all
@@ -8452,6 +8499,11 @@ fcl-base_debug: univint_debug
 fcl-base_smart: univint_smart
 fcl-base_release: univint_release
 fcl-base_shared: univint_shared
+cocoaint_all: univint_all
+cocoaint_debug: univint_debug
+cocoaint_smart: univint_smart
+cocoaint_release: univint_release
+cocoaint_shared: univint_shared
 endif
 fcl-xml_all: fcl-base_all
 fcl-xml_debug: fcl-base_debug

+ 2261 - 0
packages/cocoaint/Makefile

@@ -0,0 +1,2261 @@
+#
+# Don't edit, this file is generated by FPCMake Version 2.0.0 [2009/08/14]
+#
+default: all
+MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-haiku i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince i386-embedded i386-symbian m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos m68k-embedded powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos powerpc-embedded sparc-linux sparc-netbsd sparc-solaris sparc-embedded x86_64-linux x86_64-freebsd x86_64-darwin x86_64-win64 x86_64-embedded arm-linux arm-palmos arm-darwin arm-wince arm-gba arm-nds arm-embedded arm-symbian powerpc64-linux powerpc64-darwin powerpc64-embedded avr-embedded armeb-linux armeb-embedded
+BSDs = freebsd netbsd openbsd darwin
+UNIXs = linux $(BSDs) solaris qnx
+LIMIT83fs = go32v2 os2 emx watcom
+OSNeedsComspecToRunBatch = go32v2 watcom
+FORCE:
+.PHONY: FORCE
+override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
+ifneq ($(findstring darwin,$(OSTYPE)),)
+inUnix=1 #darwin
+SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
+else
+ifeq ($(findstring ;,$(PATH)),)
+inUnix=1
+SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
+else
+SEARCHPATH:=$(subst ;, ,$(PATH))
+endif
+endif
+SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
+PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
+ifeq ($(PWD),)
+PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
+ifeq ($(PWD),)
+$(error You need the GNU utils package to use this Makefile)
+else
+PWD:=$(firstword $(PWD))
+SRCEXEEXT=
+endif
+else
+PWD:=$(firstword $(PWD))
+SRCEXEEXT=.exe
+endif
+ifndef inUnix
+ifeq ($(OS),Windows_NT)
+inWinNT=1
+else
+ifdef OS2_SHELL
+inOS2=1
+endif
+endif
+else
+ifneq ($(findstring cygdrive,$(PATH)),)
+inCygWin=1
+endif
+endif
+ifdef inUnix
+SRCBATCHEXT=.sh
+else
+ifdef inOS2
+SRCBATCHEXT=.cmd
+else
+SRCBATCHEXT=.bat
+endif
+endif
+ifdef COMSPEC
+ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
+ifndef RUNBATCH
+RUNBATCH=$(COMSPEC) /C
+endif
+endif
+endif
+ifdef inUnix
+PATHSEP=/
+else
+PATHSEP:=$(subst /,\,/)
+ifdef inCygWin
+PATHSEP=/
+endif
+endif
+ifdef PWD
+BASEDIR:=$(subst \,/,$(shell $(PWD)))
+ifdef inCygWin
+ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
+BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
+BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
+BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
+endif
+endif
+else
+BASEDIR=.
+endif
+ifdef inOS2
+ifndef ECHO
+ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(ECHO),)
+ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(ECHO),)
+ECHO=echo
+else
+ECHO:=$(firstword $(ECHO))
+endif
+else
+ECHO:=$(firstword $(ECHO))
+endif
+endif
+export ECHO
+endif
+override DEFAULT_FPCDIR=../..
+ifndef FPC
+ifdef PP
+FPC=$(PP)
+endif
+endif
+ifndef FPC
+FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
+ifneq ($(FPCPROG),)
+FPCPROG:=$(firstword $(FPCPROG))
+ifneq ($(CPU_TARGET),)
+FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
+else
+FPC:=$(shell $(FPCPROG) -PB)
+endif
+ifneq ($(findstring Error,$(FPC)),)
+override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
+else
+ifeq ($(strip $(wildcard $(FPC))),)
+FPC:=$(firstword $(FPCPROG))
+endif
+endif
+else
+override FPC=$(firstword $(strip $(wildcard $(addsuffix /ppc386$(SRCEXEEXT),$(SEARCHPATH)))))
+endif
+endif
+override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
+override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
+FOUNDFPC:=$(strip $(wildcard $(FPC)))
+ifeq ($(FOUNDFPC),)
+FOUNDFPC=$(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))
+ifeq ($(FOUNDFPC),)
+$(error Compiler $(FPC) not found)
+endif
+endif
+ifndef FPC_COMPILERINFO
+FPC_COMPILERINFO:=$(shell $(FPC) -iVSPTPSOTO)
+endif
+ifndef FPC_VERSION
+FPC_VERSION:=$(word 1,$(FPC_COMPILERINFO))
+endif
+export FPC FPC_VERSION FPC_COMPILERINFO
+unexport CHECKDEPEND ALLDEPENDENCIES
+ifndef CPU_TARGET
+ifdef CPU_TARGET_DEFAULT
+CPU_TARGET=$(CPU_TARGET_DEFAULT)
+endif
+endif
+ifndef OS_TARGET
+ifdef OS_TARGET_DEFAULT
+OS_TARGET=$(OS_TARGET_DEFAULT)
+endif
+endif
+ifneq ($(words $(FPC_COMPILERINFO)),5)
+FPC_COMPILERINFO+=$(shell $(FPC) -iSP)
+FPC_COMPILERINFO+=$(shell $(FPC) -iTP)
+FPC_COMPILERINFO+=$(shell $(FPC) -iSO)
+FPC_COMPILERINFO+=$(shell $(FPC) -iTO)
+endif
+ifndef CPU_SOURCE
+CPU_SOURCE:=$(word 2,$(FPC_COMPILERINFO))
+endif
+ifndef CPU_TARGET
+CPU_TARGET:=$(word 3,$(FPC_COMPILERINFO))
+endif
+ifndef OS_SOURCE
+OS_SOURCE:=$(word 4,$(FPC_COMPILERINFO))
+endif
+ifndef OS_TARGET
+OS_TARGET:=$(word 5,$(FPC_COMPILERINFO))
+endif
+FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
+FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
+ifeq ($(CPU_TARGET),armeb)
+ARCH=arm
+override FPCOPT+=-Cb
+else
+ifeq ($(CPU_TARGET),armel)
+ARCH=arm
+override FPCOPT+=-CaEABI
+else
+ARCH=$(CPU_TARGET)
+endif
+endif
+ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
+TARGETSUFFIX=$(OS_TARGET)
+SOURCESUFFIX=$(OS_SOURCE)
+else
+TARGETSUFFIX=$(FULL_TARGET)
+SOURCESUFFIX=$(FULL_SOURCE)
+endif
+ifneq ($(FULL_TARGET),$(FULL_SOURCE))
+CROSSCOMPILE=1
+endif
+ifeq ($(findstring makefile,$(MAKECMDGOALS)),)
+ifeq ($(findstring $(FULL_TARGET),$(MAKEFILETARGETS)),)
+$(error The Makefile doesn't support target $(FULL_TARGET), please run fpcmake first)
+endif
+endif
+ifneq ($(findstring $(OS_TARGET),$(BSDs)),)
+BSDhier=1
+endif
+ifeq ($(OS_TARGET),linux)
+linuxHier=1
+endif
+export OS_TARGET OS_SOURCE ARCH CPU_TARGET CPU_SOURCE FULL_TARGET FULL_SOURCE TARGETSUFFIX SOURCESUFFIX CROSSCOMPILE
+ifdef FPCDIR
+override FPCDIR:=$(subst \,/,$(FPCDIR))
+ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
+override FPCDIR=wrong
+endif
+else
+override FPCDIR=wrong
+endif
+ifdef DEFAULT_FPCDIR
+ifeq ($(FPCDIR),wrong)
+override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
+ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
+override FPCDIR=wrong
+endif
+endif
+endif
+ifeq ($(FPCDIR),wrong)
+ifdef inUnix
+override FPCDIR=/usr/local/lib/fpc/$(FPC_VERSION)
+ifeq ($(wildcard $(FPCDIR)/units),)
+override FPCDIR=/usr/lib/fpc/$(FPC_VERSION)
+endif
+else
+override FPCDIR:=$(subst /$(FPC),,$(firstword $(strip $(wildcard $(addsuffix /$(FPC),$(SEARCHPATH))))))
+override FPCDIR:=$(FPCDIR)/..
+ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
+override FPCDIR:=$(FPCDIR)/..
+ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
+override FPCDIR:=$(BASEDIR)
+ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
+override FPCDIR=c:/pp
+endif
+endif
+endif
+endif
+endif
+ifndef CROSSBINDIR
+CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
+endif
+ifeq ($(OS_TARGET),darwin)
+ifeq ($(OS_SOURCE),darwin)
+DARWIN2DARWIN=1
+endif
+endif
+ifndef BINUTILSPREFIX
+ifndef CROSSBINDIR
+ifdef CROSSCOMPILE
+ifndef DARWIN2DARWIN
+BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
+endif
+endif
+endif
+endif
+UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
+ifeq ($(UNITSDIR),)
+UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
+endif
+PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
+override PACKAGE_NAME=cocoaint
+override PACKAGE_VERSION=2.5.1
+ifeq ($(FULL_TARGET),i386-linux)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-go32v2)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-win32)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-os2)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-freebsd)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-beos)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-haiku)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-netbsd)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-solaris)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-qnx)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-netware)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-openbsd)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-wdosx)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-darwin)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-emx)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-watcom)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-netwlibc)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-wince)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-embedded)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),i386-symbian)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),m68k-linux)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),m68k-freebsd)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),m68k-netbsd)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),m68k-amiga)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),m68k-atari)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),m68k-openbsd)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),m68k-palmos)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),m68k-embedded)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),powerpc-linux)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),powerpc-netbsd)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),powerpc-amiga)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),powerpc-macos)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),powerpc-darwin)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),powerpc-morphos)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),powerpc-embedded)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),sparc-linux)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),sparc-netbsd)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),sparc-solaris)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),sparc-embedded)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),x86_64-linux)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),x86_64-freebsd)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),x86_64-darwin)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),x86_64-win64)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),x86_64-embedded)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),arm-linux)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),arm-palmos)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),arm-darwin)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),arm-wince)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),arm-gba)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),arm-nds)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),arm-embedded)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),arm-symbian)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),powerpc64-linux)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),powerpc64-darwin)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),powerpc64-embedded)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),avr-embedded)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),armeb-linux)
+override TARGET_UNITS+=CocoaAll
+endif
+ifeq ($(FULL_TARGET),armeb-embedded)
+override TARGET_UNITS+=CocoaAll
+endif
+override INSTALL_FPCPACKAGE=y
+ifeq ($(FULL_TARGET),i386-linux)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-go32v2)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-win32)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-os2)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-freebsd)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-beos)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-haiku)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-netbsd)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-solaris)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-qnx)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-netware)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-openbsd)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-wdosx)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-darwin)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-emx)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-watcom)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-netwlibc)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-wince)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-embedded)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),i386-symbian)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),m68k-linux)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),m68k-freebsd)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),m68k-netbsd)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),m68k-amiga)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),m68k-atari)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),m68k-openbsd)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),m68k-palmos)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),m68k-embedded)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),powerpc-linux)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),powerpc-netbsd)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),powerpc-amiga)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),powerpc-macos)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),powerpc-darwin)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),powerpc-morphos)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),powerpc-embedded)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),sparc-linux)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),sparc-netbsd)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),sparc-solaris)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),sparc-embedded)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),x86_64-linux)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),x86_64-freebsd)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),x86_64-darwin)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),x86_64-win64)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),x86_64-embedded)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),arm-linux)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),arm-palmos)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),arm-darwin)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),arm-wince)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),arm-gba)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),arm-nds)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),arm-embedded)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),arm-symbian)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),powerpc64-linux)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),powerpc64-darwin)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),powerpc64-embedded)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),avr-embedded)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),armeb-linux)
+override COMPILER_SOURCEDIR+=src
+endif
+ifeq ($(FULL_TARGET),armeb-embedded)
+override COMPILER_SOURCEDIR+=src
+endif
+ifdef REQUIRE_UNITSDIR
+override UNITSDIR+=$(REQUIRE_UNITSDIR)
+endif
+ifdef REQUIRE_PACKAGESDIR
+override PACKAGESDIR+=$(REQUIRE_PACKAGESDIR)
+endif
+ifdef ZIPINSTALL
+ifneq ($(findstring $(OS_TARGET),$(UNIXs)),)
+UNIXHier=1
+endif
+else
+ifneq ($(findstring $(OS_SOURCE),$(UNIXs)),)
+UNIXHier=1
+endif
+endif
+ifndef INSTALL_PREFIX
+ifdef PREFIX
+INSTALL_PREFIX=$(PREFIX)
+endif
+endif
+ifndef INSTALL_PREFIX
+ifdef UNIXHier
+INSTALL_PREFIX=/usr/local
+else
+ifdef INSTALL_FPCPACKAGE
+INSTALL_BASEDIR:=/pp
+else
+INSTALL_BASEDIR:=/$(PACKAGE_NAME)
+endif
+endif
+endif
+export INSTALL_PREFIX
+ifdef INSTALL_FPCSUBDIR
+export INSTALL_FPCSUBDIR
+endif
+ifndef DIST_DESTDIR
+DIST_DESTDIR:=$(BASEDIR)
+endif
+export DIST_DESTDIR
+ifndef COMPILER_UNITTARGETDIR
+ifdef PACKAGEDIR_MAIN
+COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
+else
+COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
+endif
+endif
+ifndef COMPILER_TARGETDIR
+COMPILER_TARGETDIR=.
+endif
+ifndef INSTALL_BASEDIR
+ifdef UNIXHier
+ifdef INSTALL_FPCPACKAGE
+INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/fpc/$(FPC_VERSION)
+else
+INSTALL_BASEDIR:=$(INSTALL_PREFIX)/lib/$(PACKAGE_NAME)
+endif
+else
+INSTALL_BASEDIR:=$(INSTALL_PREFIX)
+endif
+endif
+ifndef INSTALL_BINDIR
+ifdef UNIXHier
+INSTALL_BINDIR:=$(INSTALL_PREFIX)/bin
+else
+INSTALL_BINDIR:=$(INSTALL_BASEDIR)/bin
+ifdef INSTALL_FPCPACKAGE
+ifdef CROSSCOMPILE
+ifdef CROSSINSTALL
+INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(SOURCESUFFIX)
+else
+INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
+endif
+else
+INSTALL_BINDIR:=$(INSTALL_BINDIR)/$(TARGETSUFFIX)
+endif
+endif
+endif
+endif
+ifndef INSTALL_UNITDIR
+INSTALL_UNITDIR:=$(INSTALL_BASEDIR)/units/$(TARGETSUFFIX)
+ifdef INSTALL_FPCPACKAGE
+ifdef PACKAGE_NAME
+INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
+endif
+endif
+endif
+ifndef INSTALL_LIBDIR
+ifdef UNIXHier
+INSTALL_LIBDIR:=$(INSTALL_PREFIX)/lib
+else
+INSTALL_LIBDIR:=$(INSTALL_UNITDIR)
+endif
+endif
+ifndef INSTALL_SOURCEDIR
+ifdef UNIXHier
+ifdef BSDhier
+SRCPREFIXDIR=share/src
+else
+ifdef linuxHier
+SRCPREFIXDIR=share/src
+else
+SRCPREFIXDIR=src
+endif
+endif
+ifdef INSTALL_FPCPACKAGE
+ifdef INSTALL_FPCSUBDIR
+INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
+else
+INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
+endif
+else
+INSTALL_SOURCEDIR:=$(INSTALL_PREFIX)/$(SRCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
+endif
+else
+ifdef INSTALL_FPCPACKAGE
+ifdef INSTALL_FPCSUBDIR
+INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(INSTALL_FPCSUBDIR)/$(PACKAGE_NAME)
+else
+INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source/$(PACKAGE_NAME)
+endif
+else
+INSTALL_SOURCEDIR:=$(INSTALL_BASEDIR)/source
+endif
+endif
+endif
+ifndef INSTALL_DOCDIR
+ifdef UNIXHier
+ifdef BSDhier
+DOCPREFIXDIR=share/doc
+else
+ifdef linuxHier
+DOCPREFIXDIR=share/doc
+else
+DOCPREFIXDIR=doc
+endif
+endif
+ifdef INSTALL_FPCPACKAGE
+INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
+else
+INSTALL_DOCDIR:=$(INSTALL_PREFIX)/$(DOCPREFIXDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
+endif
+else
+ifdef INSTALL_FPCPACKAGE
+INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc/$(PACKAGE_NAME)
+else
+INSTALL_DOCDIR:=$(INSTALL_BASEDIR)/doc
+endif
+endif
+endif
+ifndef INSTALL_EXAMPLEDIR
+ifdef UNIXHier
+ifdef INSTALL_FPCPACKAGE
+ifdef BSDhier
+INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/fpc-$(FPC_VERSION)/$(PACKAGE_NAME)
+else
+ifdef linuxHier
+INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples
+else
+INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/fpc-$(FPC_VERSION)/examples/$(PACKAGE_NAME)
+endif
+endif
+else
+ifdef BSDhier
+INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/share/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
+else
+ifdef linuxHier
+INSTALL_EXAMPLEDIR:=$(INSTALL_DOCDIR)/examples/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
+else
+INSTALL_EXAMPLEDIR:=$(INSTALL_PREFIX)/doc/$(PACKAGE_NAME)-$(PACKAGE_VERSION)
+endif
+endif
+endif
+else
+ifdef INSTALL_FPCPACKAGE
+INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples/$(PACKAGE_NAME)
+else
+INSTALL_EXAMPLEDIR:=$(INSTALL_BASEDIR)/examples
+endif
+endif
+endif
+ifndef INSTALL_DATADIR
+INSTALL_DATADIR=$(INSTALL_BASEDIR)
+endif
+ifndef INSTALL_SHAREDDIR
+INSTALL_SHAREDDIR=$(INSTALL_PREFIX)/lib
+endif
+ifdef CROSSCOMPILE
+ifndef CROSSBINDIR
+CROSSBINDIR:=$(wildcard $(CROSSTARGETDIR)/bin/$(SOURCESUFFIX))
+ifeq ($(CROSSBINDIR),)
+CROSSBINDIR:=$(wildcard $(INSTALL_BASEDIR)/cross/$(TARGETSUFFIX)/bin/$(FULL_SOURCE))
+endif
+endif
+else
+CROSSBINDIR=
+endif
+BATCHEXT=.bat
+LOADEREXT=.as
+EXEEXT=.exe
+PPLEXT=.ppl
+PPUEXT=.ppu
+OEXT=.o
+ASMEXT=.s
+SMARTEXT=.sl
+STATICLIBEXT=.a
+SHAREDLIBEXT=.so
+SHAREDLIBPREFIX=libfp
+STATICLIBPREFIX=libp
+IMPORTLIBPREFIX=libimp
+RSTEXT=.rst
+ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
+ifeq ($(OS_TARGET),go32v1)
+STATICLIBPREFIX=
+SHORTSUFFIX=v1
+endif
+ifeq ($(OS_TARGET),go32v2)
+STATICLIBPREFIX=
+SHORTSUFFIX=dos
+IMPORTLIBPREFIX=
+endif
+ifeq ($(OS_TARGET),watcom)
+STATICLIBPREFIX=
+OEXT=.obj
+ASMEXT=.asm
+SHAREDLIBEXT=.dll
+SHORTSUFFIX=wat
+IMPORTLIBPREFIX=
+endif
+ifeq ($(OS_TARGET),linux)
+BATCHEXT=.sh
+EXEEXT=
+HASSHAREDLIB=1
+SHORTSUFFIX=lnx
+endif
+ifeq ($(OS_TARGET),freebsd)
+BATCHEXT=.sh
+EXEEXT=
+HASSHAREDLIB=1
+SHORTSUFFIX=fbs
+endif
+ifeq ($(OS_TARGET),netbsd)
+BATCHEXT=.sh
+EXEEXT=
+HASSHAREDLIB=1
+SHORTSUFFIX=nbs
+endif
+ifeq ($(OS_TARGET),openbsd)
+BATCHEXT=.sh
+EXEEXT=
+HASSHAREDLIB=1
+SHORTSUFFIX=obs
+endif
+ifeq ($(OS_TARGET),win32)
+SHAREDLIBEXT=.dll
+SHORTSUFFIX=w32
+endif
+ifeq ($(OS_TARGET),os2)
+BATCHEXT=.cmd
+AOUTEXT=.out
+STATICLIBPREFIX=
+SHAREDLIBEXT=.dll
+SHORTSUFFIX=os2
+ECHO=echo
+IMPORTLIBPREFIX=
+endif
+ifeq ($(OS_TARGET),emx)
+BATCHEXT=.cmd
+AOUTEXT=.out
+STATICLIBPREFIX=
+SHAREDLIBEXT=.dll
+SHORTSUFFIX=emx
+ECHO=echo
+IMPORTLIBPREFIX=
+endif
+ifeq ($(OS_TARGET),amiga)
+EXEEXT=
+SHAREDLIBEXT=.library
+SHORTSUFFIX=amg
+endif
+ifeq ($(OS_TARGET),morphos)
+EXEEXT=
+SHAREDLIBEXT=.library
+SHORTSUFFIX=mos
+endif
+ifeq ($(OS_TARGET),atari)
+EXEEXT=.ttp
+SHORTSUFFIX=ata
+endif
+ifeq ($(OS_TARGET),beos)
+BATCHEXT=.sh
+EXEEXT=
+SHORTSUFFIX=be
+endif
+ifeq ($(OS_TARGET),haiku)
+BATCHEXT=.sh
+EXEEXT=
+SHORTSUFFIX=hai
+endif
+ifeq ($(OS_TARGET),solaris)
+BATCHEXT=.sh
+EXEEXT=
+SHORTSUFFIX=sun
+endif
+ifeq ($(OS_TARGET),qnx)
+BATCHEXT=.sh
+EXEEXT=
+SHORTSUFFIX=qnx
+endif
+ifeq ($(OS_TARGET),netware)
+EXEEXT=.nlm
+STATICLIBPREFIX=
+SHORTSUFFIX=nw
+IMPORTLIBPREFIX=imp
+endif
+ifeq ($(OS_TARGET),netwlibc)
+EXEEXT=.nlm
+STATICLIBPREFIX=
+SHORTSUFFIX=nwl
+IMPORTLIBPREFIX=imp
+endif
+ifeq ($(OS_TARGET),macos)
+BATCHEXT=
+EXEEXT=
+DEBUGSYMEXT=.xcoff
+SHORTSUFFIX=mac
+IMPORTLIBPREFIX=imp
+endif
+ifeq ($(OS_TARGET),darwin)
+BATCHEXT=.sh
+EXEEXT=
+HASSHAREDLIB=1
+SHORTSUFFIX=dwn
+endif
+ifeq ($(OS_TARGET),gba)
+EXEEXT=.gba
+SHAREDLIBEXT=.so
+SHORTSUFFIX=gba
+endif
+ifeq ($(OS_TARGET),symbian)
+SHAREDLIBEXT=.dll
+SHORTSUFFIX=symbian
+endif
+else
+ifeq ($(OS_TARGET),go32v1)
+PPUEXT=.pp1
+OEXT=.o1
+ASMEXT=.s1
+SMARTEXT=.sl1
+STATICLIBEXT=.a1
+SHAREDLIBEXT=.so1
+STATICLIBPREFIX=
+SHORTSUFFIX=v1
+IMPORTLIBPREFIX=
+endif
+ifeq ($(OS_TARGET),go32v2)
+STATICLIBPREFIX=
+SHORTSUFFIX=dos
+IMPORTLIBPREFIX=
+endif
+ifeq ($(OS_TARGET),watcom)
+STATICLIBPREFIX=
+SHORTSUFFIX=wat
+IMPORTLIBPREFIX=
+endif
+ifeq ($(OS_TARGET),linux)
+BATCHEXT=.sh
+EXEEXT=
+HASSHAREDLIB=1
+SHORTSUFFIX=lnx
+endif
+ifeq ($(OS_TARGET),freebsd)
+BATCHEXT=.sh
+EXEEXT=
+HASSHAREDLIB=1
+SHORTSUFFIX=fbs
+endif
+ifeq ($(OS_TARGET),netbsd)
+BATCHEXT=.sh
+EXEEXT=
+HASSHAREDLIB=1
+SHORTSUFFIX=nbs
+endif
+ifeq ($(OS_TARGET),openbsd)
+BATCHEXT=.sh
+EXEEXT=
+HASSHAREDLIB=1
+SHORTSUFFIX=obs
+endif
+ifeq ($(OS_TARGET),win32)
+PPUEXT=.ppw
+OEXT=.ow
+ASMEXT=.sw
+SMARTEXT=.slw
+STATICLIBEXT=.aw
+SHAREDLIBEXT=.dll
+SHORTSUFFIX=w32
+endif
+ifeq ($(OS_TARGET),os2)
+BATCHEXT=.cmd
+PPUEXT=.ppo
+ASMEXT=.so2
+OEXT=.oo2
+AOUTEXT=.out
+SMARTEXT=.sl2
+STATICLIBPREFIX=
+STATICLIBEXT=.ao2
+SHAREDLIBEXT=.dll
+SHORTSUFFIX=os2
+ECHO=echo
+IMPORTLIBPREFIX=
+endif
+ifeq ($(OS_TARGET),amiga)
+EXEEXT=
+PPUEXT=.ppu
+ASMEXT=.s
+OEXT=.o
+SMARTEXT=.sl
+STATICLIBEXT=.a
+SHAREDLIBEXT=.library
+SHORTSUFFIX=amg
+endif
+ifeq ($(OS_TARGET),atari)
+PPUEXT=.ppu
+ASMEXT=.s
+OEXT=.o
+SMARTEXT=.sl
+STATICLIBEXT=.a
+EXEEXT=.ttp
+SHORTSUFFIX=ata
+endif
+ifeq ($(OS_TARGET),beos)
+BATCHEXT=.sh
+PPUEXT=.ppu
+ASMEXT=.s
+OEXT=.o
+SMARTEXT=.sl
+STATICLIBEXT=.a
+EXEEXT=
+SHORTSUFFIX=be
+endif
+ifeq ($(OS_TARGET),solaris)
+BATCHEXT=.sh
+PPUEXT=.ppu
+ASMEXT=.s
+OEXT=.o
+SMARTEXT=.sl
+STATICLIBEXT=.a
+EXEEXT=
+SHORTSUFFIX=sun
+endif
+ifeq ($(OS_TARGET),qnx)
+BATCHEXT=.sh
+PPUEXT=.ppu
+ASMEXT=.s
+OEXT=.o
+SMARTEXT=.sl
+STATICLIBEXT=.a
+EXEEXT=
+SHORTSUFFIX=qnx
+endif
+ifeq ($(OS_TARGET),netware)
+STATICLIBPREFIX=
+PPUEXT=.ppu
+OEXT=.o
+ASMEXT=.s
+SMARTEXT=.sl
+STATICLIBEXT=.a
+SHAREDLIBEXT=.nlm
+EXEEXT=.nlm
+SHORTSUFFIX=nw
+IMPORTLIBPREFIX=imp
+endif
+ifeq ($(OS_TARGET),netwlibc)
+STATICLIBPREFIX=
+PPUEXT=.ppu
+OEXT=.o
+ASMEXT=.s
+SMARTEXT=.sl
+STATICLIBEXT=.a
+SHAREDLIBEXT=.nlm
+EXEEXT=.nlm
+SHORTSUFFIX=nwl
+IMPORTLIBPREFIX=imp
+endif
+ifeq ($(OS_TARGET),macos)
+BATCHEXT=
+PPUEXT=.ppu
+ASMEXT=.s
+OEXT=.o
+SMARTEXT=.sl
+STATICLIBEXT=.a
+EXEEXT=
+DEBUGSYMEXT=.xcoff
+SHORTSUFFIX=mac
+IMPORTLIBPREFIX=imp
+endif
+endif
+ifneq ($(findstring $(OS_SOURCE),$(LIMIT83fs)),)
+FPCMADE=fpcmade.$(SHORTSUFFIX)
+ZIPSUFFIX=$(SHORTSUFFIX)
+ZIPCROSSPREFIX=
+ZIPSOURCESUFFIX=src
+ZIPEXAMPLESUFFIX=exm
+else
+FPCMADE=fpcmade.$(TARGETSUFFIX)
+ZIPSOURCESUFFIX=.source
+ZIPEXAMPLESUFFIX=.examples
+ifdef CROSSCOMPILE
+ZIPSUFFIX=.$(SOURCESUFFIX)
+ZIPCROSSPREFIX=$(TARGETSUFFIX)-
+else
+ZIPSUFFIX=.$(TARGETSUFFIX)
+ZIPCROSSPREFIX=
+endif
+endif
+ifndef ECHO
+ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(ECHO),)
+ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(ECHO),)
+ECHO= __missing_command_ECHO
+else
+ECHO:=$(firstword $(ECHO))
+endif
+else
+ECHO:=$(firstword $(ECHO))
+endif
+endif
+export ECHO
+ifndef DATE
+DATE:=$(strip $(wildcard $(addsuffix /gdate$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(DATE),)
+DATE:=$(strip $(wildcard $(addsuffix /date$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(DATE),)
+DATE= __missing_command_DATE
+else
+DATE:=$(firstword $(DATE))
+endif
+else
+DATE:=$(firstword $(DATE))
+endif
+endif
+export DATE
+ifndef GINSTALL
+GINSTALL:=$(strip $(wildcard $(addsuffix /ginstall$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(GINSTALL),)
+GINSTALL:=$(strip $(wildcard $(addsuffix /install$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(GINSTALL),)
+GINSTALL= __missing_command_GINSTALL
+else
+GINSTALL:=$(firstword $(GINSTALL))
+endif
+else
+GINSTALL:=$(firstword $(GINSTALL))
+endif
+endif
+export GINSTALL
+ifndef CPPROG
+CPPROG:=$(strip $(wildcard $(addsuffix /cp$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(CPPROG),)
+CPPROG= __missing_command_CPPROG
+else
+CPPROG:=$(firstword $(CPPROG))
+endif
+endif
+export CPPROG
+ifndef RMPROG
+RMPROG:=$(strip $(wildcard $(addsuffix /rm$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(RMPROG),)
+RMPROG= __missing_command_RMPROG
+else
+RMPROG:=$(firstword $(RMPROG))
+endif
+endif
+export RMPROG
+ifndef MVPROG
+MVPROG:=$(strip $(wildcard $(addsuffix /mv$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(MVPROG),)
+MVPROG= __missing_command_MVPROG
+else
+MVPROG:=$(firstword $(MVPROG))
+endif
+endif
+export MVPROG
+ifndef MKDIRPROG
+MKDIRPROG:=$(strip $(wildcard $(addsuffix /gmkdir$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(MKDIRPROG),)
+MKDIRPROG:=$(strip $(wildcard $(addsuffix /mkdir$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(MKDIRPROG),)
+MKDIRPROG= __missing_command_MKDIRPROG
+else
+MKDIRPROG:=$(firstword $(MKDIRPROG))
+endif
+else
+MKDIRPROG:=$(firstword $(MKDIRPROG))
+endif
+endif
+export MKDIRPROG
+ifndef ECHOREDIR
+ifndef inUnix
+ECHOREDIR=echo
+else
+ECHOREDIR=$(ECHO)
+endif
+endif
+ifndef COPY
+COPY:=$(CPPROG) -fp
+endif
+ifndef COPYTREE
+COPYTREE:=$(CPPROG) -Rfp
+endif
+ifndef MKDIRTREE
+MKDIRTREE:=$(MKDIRPROG) -p
+endif
+ifndef MOVE
+MOVE:=$(MVPROG) -f
+endif
+ifndef DEL
+DEL:=$(RMPROG) -f
+endif
+ifndef DELTREE
+DELTREE:=$(RMPROG) -rf
+endif
+ifndef INSTALL
+ifdef inUnix
+INSTALL:=$(GINSTALL) -c -m 644
+else
+INSTALL:=$(COPY)
+endif
+endif
+ifndef INSTALLEXE
+ifdef inUnix
+INSTALLEXE:=$(GINSTALL) -c -m 755
+else
+INSTALLEXE:=$(COPY)
+endif
+endif
+ifndef MKDIR
+MKDIR:=$(GINSTALL) -m 755 -d
+endif
+export ECHOREDIR COPY COPYTREE MOVE DEL DELTREE INSTALL INSTALLEXE MKDIR
+ifndef PPUMOVE
+PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(PPUMOVE),)
+PPUMOVE= __missing_command_PPUMOVE
+else
+PPUMOVE:=$(firstword $(PPUMOVE))
+endif
+endif
+export PPUMOVE
+ifndef FPCMAKE
+FPCMAKE:=$(strip $(wildcard $(addsuffix /fpcmake$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(FPCMAKE),)
+FPCMAKE= __missing_command_FPCMAKE
+else
+FPCMAKE:=$(firstword $(FPCMAKE))
+endif
+endif
+export FPCMAKE
+ifndef ZIPPROG
+ZIPPROG:=$(strip $(wildcard $(addsuffix /zip$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(ZIPPROG),)
+ZIPPROG= __missing_command_ZIPPROG
+else
+ZIPPROG:=$(firstword $(ZIPPROG))
+endif
+endif
+export ZIPPROG
+ifndef TARPROG
+TARPROG:=$(strip $(wildcard $(addsuffix /gtar$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(TARPROG),)
+TARPROG:=$(strip $(wildcard $(addsuffix /tar$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(TARPROG),)
+TARPROG= __missing_command_TARPROG
+else
+TARPROG:=$(firstword $(TARPROG))
+endif
+else
+TARPROG:=$(firstword $(TARPROG))
+endif
+endif
+export TARPROG
+ASNAME=$(BINUTILSPREFIX)as
+LDNAME=$(BINUTILSPREFIX)ld
+ARNAME=$(BINUTILSPREFIX)ar
+RCNAME=$(BINUTILSPREFIX)rc
+ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
+ifeq ($(OS_TARGET),win32)
+ifeq ($(CROSSBINDIR),)
+ASNAME=asw
+LDNAME=ldw
+ARNAME=arw
+endif
+endif
+endif
+ifndef ASPROG
+ifdef CROSSBINDIR
+ASPROG=$(CROSSBINDIR)/$(ASNAME)$(SRCEXEEXT)
+else
+ASPROG=$(ASNAME)
+endif
+endif
+ifndef LDPROG
+ifdef CROSSBINDIR
+LDPROG=$(CROSSBINDIR)/$(LDNAME)$(SRCEXEEXT)
+else
+LDPROG=$(LDNAME)
+endif
+endif
+ifndef RCPROG
+ifdef CROSSBINDIR
+RCPROG=$(CROSSBINDIR)/$(RCNAME)$(SRCEXEEXT)
+else
+RCPROG=$(RCNAME)
+endif
+endif
+ifndef ARPROG
+ifdef CROSSBINDIR
+ARPROG=$(CROSSBINDIR)/$(ARNAME)$(SRCEXEEXT)
+else
+ARPROG=$(ARNAME)
+endif
+endif
+AS=$(ASPROG)
+LD=$(LDPROG)
+RC=$(RCPROG)
+AR=$(ARPROG)
+PPAS=ppas$(SRCBATCHEXT)
+ifdef inUnix
+LDCONFIG=ldconfig
+else
+LDCONFIG=
+endif
+ifdef DATE
+DATESTR:=$(shell $(DATE) +%Y%m%d)
+else
+DATESTR=
+endif
+ifndef UPXPROG
+ifeq ($(OS_TARGET),go32v2)
+UPXPROG:=1
+endif
+ifeq ($(OS_TARGET),win32)
+UPXPROG:=1
+endif
+ifdef UPXPROG
+UPXPROG:=$(strip $(wildcard $(addsuffix /upx$(SRCEXEEXT),$(SEARCHPATH))))
+ifeq ($(UPXPROG),)
+UPXPROG=
+else
+UPXPROG:=$(firstword $(UPXPROG))
+endif
+else
+UPXPROG=
+endif
+endif
+export UPXPROG
+ZIPOPT=-9
+ZIPEXT=.zip
+ifeq ($(USETAR),bz2)
+TAROPT=vj
+TAREXT=.tar.bz2
+else
+TAROPT=vz
+TAREXT=.tar.gz
+endif
+override REQUIRE_PACKAGES=rtl univint
+ifeq ($(FULL_TARGET),i386-linux)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-go32v2)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-win32)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-os2)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-freebsd)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-beos)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-haiku)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-netbsd)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-solaris)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-qnx)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-netware)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-openbsd)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-wdosx)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-darwin)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-emx)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-watcom)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-netwlibc)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-wince)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-embedded)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),i386-symbian)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),m68k-linux)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),m68k-freebsd)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),m68k-netbsd)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),m68k-amiga)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),m68k-atari)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),m68k-openbsd)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),m68k-palmos)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),m68k-embedded)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),powerpc-linux)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),powerpc-netbsd)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),powerpc-amiga)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),powerpc-macos)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),powerpc-darwin)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),powerpc-morphos)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),powerpc-embedded)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),sparc-linux)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),sparc-netbsd)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),sparc-solaris)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),sparc-embedded)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),x86_64-linux)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),x86_64-freebsd)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),x86_64-darwin)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),x86_64-win64)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),x86_64-embedded)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),arm-linux)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),arm-palmos)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),arm-darwin)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),arm-wince)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),arm-gba)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),arm-nds)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),arm-embedded)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),arm-symbian)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),powerpc64-linux)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),powerpc64-darwin)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),powerpc64-embedded)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),avr-embedded)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),armeb-linux)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifeq ($(FULL_TARGET),armeb-embedded)
+REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_UNIVINT=1
+endif
+ifdef REQUIRE_PACKAGES_RTL
+PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/Makefile.fpc,$(PACKAGESDIR))))))
+ifneq ($(PACKAGEDIR_RTL),)
+ifneq ($(wildcard $(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)),)
+UNITDIR_RTL=$(PACKAGEDIR_RTL)/units/$(TARGETSUFFIX)
+else
+UNITDIR_RTL=$(PACKAGEDIR_RTL)
+endif
+ifdef CHECKDEPEND
+$(PACKAGEDIR_RTL)/$(FPCMADE):
+	$(MAKE) -C $(PACKAGEDIR_RTL) $(FPCMADE)
+override ALLDEPENDENCIES+=$(PACKAGEDIR_RTL)/$(FPCMADE)
+endif
+else
+PACKAGEDIR_RTL=
+UNITDIR_RTL:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /rtl/Package.fpc,$(UNITSDIR)))))
+ifneq ($(UNITDIR_RTL),)
+UNITDIR_RTL:=$(firstword $(UNITDIR_RTL))
+else
+UNITDIR_RTL=
+endif
+endif
+ifdef UNITDIR_RTL
+override COMPILER_UNITDIR+=$(UNITDIR_RTL)
+endif
+endif
+ifdef REQUIRE_PACKAGES_UNIVINT
+PACKAGEDIR_UNIVINT:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /univint/Makefile.fpc,$(PACKAGESDIR))))))
+ifneq ($(PACKAGEDIR_UNIVINT),)
+ifneq ($(wildcard $(PACKAGEDIR_UNIVINT)/units/$(TARGETSUFFIX)),)
+UNITDIR_UNIVINT=$(PACKAGEDIR_UNIVINT)/units/$(TARGETSUFFIX)
+else
+UNITDIR_UNIVINT=$(PACKAGEDIR_UNIVINT)
+endif
+ifdef CHECKDEPEND
+$(PACKAGEDIR_UNIVINT)/$(FPCMADE):
+	$(MAKE) -C $(PACKAGEDIR_UNIVINT) $(FPCMADE)
+override ALLDEPENDENCIES+=$(PACKAGEDIR_UNIVINT)/$(FPCMADE)
+endif
+else
+PACKAGEDIR_UNIVINT=
+UNITDIR_UNIVINT:=$(subst /Package.fpc,,$(strip $(wildcard $(addsuffix /univint/Package.fpc,$(UNITSDIR)))))
+ifneq ($(UNITDIR_UNIVINT),)
+UNITDIR_UNIVINT:=$(firstword $(UNITDIR_UNIVINT))
+else
+UNITDIR_UNIVINT=
+endif
+endif
+ifdef UNITDIR_UNIVINT
+override COMPILER_UNITDIR+=$(UNITDIR_UNIVINT)
+endif
+endif
+ifndef NOCPUDEF
+override FPCOPTDEF=$(ARCH)
+endif
+ifneq ($(OS_TARGET),$(OS_SOURCE))
+override FPCOPT+=-T$(OS_TARGET)
+endif
+ifneq ($(CPU_TARGET),$(CPU_SOURCE))
+override FPCOPT+=-P$(ARCH)
+endif
+ifeq ($(OS_SOURCE),openbsd)
+override FPCOPT+=-FD$(NEW_BINUTILS_PATH)
+endif
+ifndef CROSSBOOTSTRAP
+ifneq ($(BINUTILSPREFIX),)
+override FPCOPT+=-XP$(BINUTILSPREFIX)
+endif
+ifneq ($(BINUTILSPREFIX),)
+override FPCOPT+=-Xr$(RLINKPATH)
+endif
+endif
+ifdef UNITDIR
+override FPCOPT+=$(addprefix -Fu,$(UNITDIR))
+endif
+ifdef LIBDIR
+override FPCOPT+=$(addprefix -Fl,$(LIBDIR))
+endif
+ifdef OBJDIR
+override FPCOPT+=$(addprefix -Fo,$(OBJDIR))
+endif
+ifdef INCDIR
+override FPCOPT+=$(addprefix -Fi,$(INCDIR))
+endif
+ifdef LINKSMART
+override FPCOPT+=-XX
+endif
+ifdef CREATESMART
+override FPCOPT+=-CX
+endif
+ifdef DEBUG
+override FPCOPT+=-gl
+override FPCOPTDEF+=DEBUG
+endif
+ifdef RELEASE
+ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
+ifeq ($(CPU_TARGET),i386)
+FPCCPUOPT:=-OG2p3
+endif
+ifeq ($(CPU_TARGET),powerpc)
+FPCCPUOPT:=-O1r
+endif
+else
+FPCCPUOPT:=-O2
+endif
+override FPCOPT+=-Ur -Xs $(FPCCPUOPT) -n
+override FPCOPTDEF+=RELEASE
+endif
+ifdef STRIP
+override FPCOPT+=-Xs
+endif
+ifdef OPTIMIZE
+override FPCOPT+=-O2
+endif
+ifdef VERBOSE
+override FPCOPT+=-vwni
+endif
+ifdef COMPILER_OPTIONS
+override FPCOPT+=$(COMPILER_OPTIONS)
+endif
+ifdef COMPILER_UNITDIR
+override FPCOPT+=$(addprefix -Fu,$(COMPILER_UNITDIR))
+endif
+ifdef COMPILER_LIBRARYDIR
+override FPCOPT+=$(addprefix -Fl,$(COMPILER_LIBRARYDIR))
+endif
+ifdef COMPILER_OBJECTDIR
+override FPCOPT+=$(addprefix -Fo,$(COMPILER_OBJECTDIR))
+endif
+ifdef COMPILER_INCLUDEDIR
+override FPCOPT+=$(addprefix -Fi,$(COMPILER_INCLUDEDIR))
+endif
+ifdef CROSSBINDIR
+override FPCOPT+=-FD$(CROSSBINDIR)
+endif
+ifdef COMPILER_TARGETDIR
+override FPCOPT+=-FE$(COMPILER_TARGETDIR)
+ifeq ($(COMPILER_TARGETDIR),.)
+override TARGETDIRPREFIX=
+else
+override TARGETDIRPREFIX=$(COMPILER_TARGETDIR)/
+endif
+endif
+ifdef COMPILER_UNITTARGETDIR
+override FPCOPT+=-FU$(COMPILER_UNITTARGETDIR)
+ifeq ($(COMPILER_UNITTARGETDIR),.)
+override UNITTARGETDIRPREFIX=
+else
+override UNITTARGETDIRPREFIX=$(COMPILER_UNITTARGETDIR)/
+endif
+else
+ifdef COMPILER_TARGETDIR
+override COMPILER_UNITTARGETDIR=$(COMPILER_TARGETDIR)
+override UNITTARGETDIRPREFIX=$(TARGETDIRPREFIX)
+endif
+endif
+ifdef CREATESHARED
+override FPCOPT+=-Cg
+ifeq ($(CPU_TARGET),i386)
+override FPCOPT+=-Aas
+endif
+endif
+ifeq ($(findstring 2.0.,$(FPC_VERSION)),)
+ifeq ($(OS_TARGET),linux)
+ifeq ($(CPU_TARGET),x86_64)
+override FPCOPT+=-Cg
+endif
+endif
+endif
+ifdef LINKSHARED
+endif
+ifdef OPT
+override FPCOPT+=$(OPT)
+endif
+ifdef FPCOPTDEF
+override FPCOPT+=$(addprefix -d,$(FPCOPTDEF))
+endif
+ifdef CFGFILE
+override FPCOPT+=@$(CFGFILE)
+endif
+ifdef USEENV
+override FPCEXTCMD:=$(FPCOPT)
+override FPCOPT:=!FPCEXTCMD
+export FPCEXTCMD
+endif
+override AFULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
+override AFULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
+ifneq ($(AFULL_TARGET),$(AFULL_SOURCE))
+override ACROSSCOMPILE=1
+endif
+ifdef ACROSSCOMPILE
+override FPCOPT+=$(CROSSOPT)
+endif
+override COMPILER:=$(FPC) $(FPCOPT)
+ifeq (,$(findstring -s ,$(COMPILER)))
+EXECPPAS=
+else
+ifeq ($(FULL_SOURCE),$(FULL_TARGET))
+ifdef RUNBATCH
+EXECPPAS:=@$(RUNBATCH) $(PPAS)
+else
+EXECPPAS:=@$(PPAS)
+endif
+endif
+endif
+.PHONY: fpc_units
+ifneq ($(TARGET_UNITS)$(TARGET_IMPLICITUNITS),)
+override ALLTARGET+=fpc_units
+override UNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_UNITS))
+override IMPLICITUNITPPUFILES=$(addsuffix $(PPUEXT),$(TARGET_IMPLICITUNITS))
+override INSTALLPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
+override CLEANPPUFILES+=$(UNITPPUFILES) $(IMPLICITUNITPPUFILES)
+endif
+fpc_units: $(COMPILER_UNITTARGETDIR) $(UNITPPUFILES)
+ifdef TARGET_RSTS
+override RSTFILES=$(addsuffix $(RSTEXT),$(TARGET_RSTS))
+override CLEANRSTFILES+=$(RSTFILES)
+endif
+.PHONY: fpc_all fpc_smart fpc_debug fpc_release fpc_shared
+$(FPCMADE): $(ALLDEPENDENCIES) $(ALLTARGET)
+	@$(ECHOREDIR) Compiled > $(FPCMADE)
+fpc_all: $(FPCMADE)
+fpc_smart:
+	$(MAKE) all LINKSMART=1 CREATESMART=1
+fpc_debug:
+	$(MAKE) all DEBUG=1
+fpc_release:
+	$(MAKE) all RELEASE=1
+.SUFFIXES: $(EXEEXT) $(PPUEXT) $(OEXT) .pas .lpr .dpr .pp .rc .res
+$(COMPILER_UNITTARGETDIR):
+	$(MKDIRTREE) $(COMPILER_UNITTARGETDIR)
+$(COMPILER_TARGETDIR):
+	$(MKDIRTREE) $(COMPILER_TARGETDIR)
+%$(PPUEXT): %.pp
+	$(COMPILER) $<
+	$(EXECPPAS)
+%$(PPUEXT): %.pas
+	$(COMPILER) $<
+	$(EXECPPAS)
+%$(EXEEXT): %.pp
+	$(COMPILER) $<
+	$(EXECPPAS)
+%$(EXEEXT): %.pas
+	$(COMPILER) $<
+	$(EXECPPAS)
+%$(EXEEXT): %.lpr
+	$(COMPILER) $<
+	$(EXECPPAS)
+%$(EXEEXT): %.dpr
+	$(COMPILER) $<
+	$(EXECPPAS)
+%.res: %.rc
+	windres -i $< -o $@
+vpath %.pp $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
+vpath %.pas $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
+vpath %.lpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
+vpath %.dpr $(COMPILER_SOURCEDIR) $(COMPILER_INCLUDEDIR)
+vpath %.inc $(COMPILER_INCLUDEDIR)
+vpath %$(OEXT) $(COMPILER_UNITTARGETDIR)
+vpath %$(PPUEXT) $(COMPILER_UNITTARGETDIR)
+.PHONY: fpc_shared
+override INSTALLTARGET+=fpc_shared_install
+ifndef SHARED_LIBVERSION
+SHARED_LIBVERSION=$(FPC_VERSION)
+endif
+ifndef SHARED_LIBNAME
+SHARED_LIBNAME=$(PACKAGE_NAME)
+endif
+ifndef SHARED_FULLNAME
+SHARED_FULLNAME=$(SHAREDLIBPREFIX)$(SHARED_LIBNAME)-$(SHARED_LIBVERSION)$(SHAREDLIBEXT)
+endif
+ifndef SHARED_LIBUNITS
+SHARED_LIBUNITS:=$(TARGET_UNITS) $(TARGET_IMPLICITUNITS)
+override SHARED_LIBUNITS:=$(filter-out $(INSTALL_BUILDUNIT),$(SHARED_LIBUNITS))
+endif
+fpc_shared:
+ifdef HASSHAREDLIB
+	$(MAKE) all CREATESHARED=1 LINKSHARED=1 CREATESMART=1
+ifneq ($(SHARED_BUILD),n)
+	$(PPUMOVE) -q $(SHARED_LIBUNITS) -i$(COMPILER_UNITTARGETDIR) -o$(SHARED_FULLNAME) -d$(COMPILER_UNITTARGETDIR)
+endif
+else
+	@$(ECHO) Shared Libraries not supported
+endif
+fpc_shared_install:
+ifneq ($(SHARED_BUILD),n)
+ifneq ($(SHARED_LIBUNITS),)
+ifneq ($(wildcard $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME)),)
+	$(INSTALL) $(COMPILER_UNITTARGETDIR)/$(SHARED_FULLNAME) $(INSTALL_SHAREDDIR)
+endif
+endif
+endif
+.PHONY: fpc_install fpc_sourceinstall fpc_exampleinstall
+ifdef INSTALL_UNITS
+override INSTALLPPUFILES+=$(addsuffix $(PPUEXT),$(INSTALL_UNITS))
+endif
+ifdef INSTALL_BUILDUNIT
+override INSTALLPPUFILES:=$(filter-out $(INSTALL_BUILDUNIT)$(PPUEXT),$(INSTALLPPUFILES))
+endif
+ifdef INSTALLPPUFILES
+override INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(INSTALLPPUFILES)))
+ifneq ($(UNITTARGETDIRPREFIX),)
+override INSTALLPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPUFILES)))
+override INSTALLPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(notdir $(INSTALLPPULINKFILES))))
+endif
+override INSTALL_CREATEPACKAGEFPC=1
+endif
+ifdef INSTALLEXEFILES
+ifneq ($(TARGETDIRPREFIX),)
+override INSTALLEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(notdir $(INSTALLEXEFILES)))
+endif
+endif
+fpc_install: all $(INSTALLTARGET)
+ifdef INSTALLEXEFILES
+	$(MKDIR) $(INSTALL_BINDIR)
+ifdef UPXPROG
+	-$(UPXPROG) $(INSTALLEXEFILES)
+endif
+	$(INSTALLEXE) $(INSTALLEXEFILES) $(INSTALL_BINDIR)
+endif
+ifdef INSTALL_CREATEPACKAGEFPC
+ifdef FPCMAKE
+ifdef PACKAGE_VERSION
+ifneq ($(wildcard Makefile.fpc),)
+	$(FPCMAKE) -p -T$(CPU_TARGET)-$(OS_TARGET) Makefile.fpc
+	$(MKDIR) $(INSTALL_UNITDIR)
+	$(INSTALL) Package.fpc $(INSTALL_UNITDIR)
+endif
+endif
+endif
+endif
+ifdef INSTALLPPUFILES
+	$(MKDIR) $(INSTALL_UNITDIR)
+	$(INSTALL) $(INSTALLPPUFILES) $(INSTALL_UNITDIR)
+ifneq ($(INSTALLPPULINKFILES),)
+	$(INSTALL) $(INSTALLPPULINKFILES) $(INSTALL_UNITDIR)
+endif
+ifneq ($(wildcard $(LIB_FULLNAME)),)
+	$(MKDIR) $(INSTALL_LIBDIR)
+	$(INSTALL) $(LIB_FULLNAME) $(INSTALL_LIBDIR)
+ifdef inUnix
+	ln -sf $(LIB_FULLNAME) $(INSTALL_LIBDIR)/$(LIB_NAME)
+endif
+endif
+endif
+ifdef INSTALL_FILES
+	$(MKDIR) $(INSTALL_DATADIR)
+	$(INSTALL) $(INSTALL_FILES) $(INSTALL_DATADIR)
+endif
+fpc_sourceinstall: distclean
+	$(MKDIR) $(INSTALL_SOURCEDIR)
+	$(COPYTREE) $(BASEDIR)/* $(INSTALL_SOURCEDIR)
+fpc_exampleinstall: $(addsuffix _distclean,$(TARGET_EXAMPLEDIRS))
+ifdef HASEXAMPLES
+	$(MKDIR) $(INSTALL_EXAMPLEDIR)
+endif
+ifdef EXAMPLESOURCEFILES
+	$(COPY) $(EXAMPLESOURCEFILES) $(INSTALL_EXAMPLEDIR)
+endif
+ifdef TARGET_EXAMPLEDIRS
+	$(COPYTREE) $(addsuffix /*,$(TARGET_EXAMPLEDIRS)) $(INSTALL_EXAMPLEDIR)
+endif
+.PHONY: fpc_distinstall
+fpc_distinstall: install exampleinstall
+.PHONY: fpc_zipinstall fpc_zipsourceinstall fpc_zipexampleinstall
+ifndef PACKDIR
+ifndef inUnix
+PACKDIR=$(BASEDIR)/../fpc-pack
+else
+PACKDIR=/tmp/fpc-pack
+endif
+endif
+ifndef ZIPNAME
+ifdef DIST_ZIPNAME
+ZIPNAME=$(DIST_ZIPNAME)
+else
+ZIPNAME=$(PACKAGE_NAME)
+endif
+endif
+ifndef FULLZIPNAME
+FULLZIPNAME=$(ZIPCROSSPREFIX)$(ZIPPREFIX)$(ZIPNAME)$(ZIPSUFFIX)
+endif
+ifndef ZIPTARGET
+ifdef DIST_ZIPTARGET
+ZIPTARGET=DIST_ZIPTARGET
+else
+ZIPTARGET=install
+endif
+endif
+ifndef USEZIP
+ifdef inUnix
+USETAR=1
+endif
+endif
+ifndef inUnix
+USEZIPWRAPPER=1
+endif
+ifdef USEZIPWRAPPER
+ZIPPATHSEP=$(PATHSEP)
+ZIPWRAPPER=$(subst /,$(PATHSEP),$(DIST_DESTDIR)/fpczip$(SRCBATCHEXT))
+else
+ZIPPATHSEP=/
+endif
+ZIPCMD_CDPACK:=cd $(subst /,$(ZIPPATHSEP),$(PACKDIR))
+ZIPCMD_CDBASE:=cd $(subst /,$(ZIPPATHSEP),$(BASEDIR))
+ifdef USETAR
+ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(TAREXT)
+ZIPCMD_ZIP:=$(TARPROG) cf$(TAROPT) $(ZIPDESTFILE) *
+else
+ZIPDESTFILE:=$(DIST_DESTDIR)/$(FULLZIPNAME)$(ZIPEXT)
+ZIPCMD_ZIP:=$(subst /,$(ZIPPATHSEP),$(ZIPPROG)) -Dr $(ZIPOPT) $(ZIPDESTFILE) *
+endif
+fpc_zipinstall:
+	$(MAKE) $(ZIPTARGET) INSTALL_PREFIX=$(PACKDIR) ZIPINSTALL=1
+	$(MKDIR) $(DIST_DESTDIR)
+	$(DEL) $(ZIPDESTFILE)
+ifdef USEZIPWRAPPER
+ifneq ($(ECHOREDIR),echo)
+	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDPACK))" > $(ZIPWRAPPER)
+	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_ZIP))" >> $(ZIPWRAPPER)
+	$(ECHOREDIR) -e "$(subst \,\\,$(ZIPCMD_CDBASE))" >> $(ZIPWRAPPER)
+else
+	echo $(ZIPCMD_CDPACK) > $(ZIPWRAPPER)
+	echo $(ZIPCMD_ZIP) >> $(ZIPWRAPPER)
+	echo $(ZIPCMD_CDBASE) >> $(ZIPWRAPPER)
+endif
+ifdef inUnix
+	/bin/sh $(ZIPWRAPPER)
+else
+ifdef RUNBATCH
+	$(RUNBATCH) $(ZIPWRAPPER)
+else
+	$(ZIPWRAPPER)
+endif
+endif
+	$(DEL) $(ZIPWRAPPER)
+else
+	$(ZIPCMD_CDPACK) ; $(ZIPCMD_ZIP) ; $(ZIPCMD_CDBASE)
+endif
+	$(DELTREE) $(PACKDIR)
+fpc_zipsourceinstall:
+	$(MAKE) fpc_zipinstall ZIPTARGET=sourceinstall ZIPSUFFIX=$(ZIPSOURCESUFFIX)
+fpc_zipexampleinstall:
+ifdef HASEXAMPLES
+	$(MAKE) fpc_zipinstall ZIPTARGET=exampleinstall ZIPSUFFIX=$(ZIPEXAMPLESUFFIX)
+endif
+fpc_zipdistinstall:
+	$(MAKE) fpc_zipinstall ZIPTARGET=distinstall
+.PHONY: fpc_clean fpc_cleanall fpc_distclean
+ifdef EXEFILES
+override CLEANEXEFILES:=$(addprefix $(TARGETDIRPREFIX),$(CLEANEXEFILES))
+endif
+ifdef CLEAN_UNITS
+override CLEANPPUFILES+=$(addsuffix $(PPUEXT),$(CLEAN_UNITS))
+endif
+ifdef CLEANPPUFILES
+override CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES)) $(addprefix $(STATICLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES))) $(addprefix $(IMPORTLIBPREFIX),$(subst $(PPUEXT),$(STATICLIBEXT),$(CLEANPPUFILES)))
+ifdef DEBUGSYMEXT
+override CLEANPPULINKFILES+=$(subst $(PPUEXT),$(DEBUGSYMEXT),$(CLEANPPUFILES))
+endif
+override CLEANPPUFILES:=$(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPUFILES))
+override CLEANPPULINKFILES:=$(wildcard $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANPPULINKFILES)))
+endif
+fpc_clean: $(CLEANTARGET)
+ifdef CLEANEXEFILES
+	-$(DEL) $(CLEANEXEFILES)
+endif
+ifdef CLEANPPUFILES
+	-$(DEL) $(CLEANPPUFILES)
+endif
+ifneq ($(CLEANPPULINKFILES),)
+	-$(DEL) $(CLEANPPULINKFILES)
+endif
+ifdef CLEANRSTFILES
+	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
+endif
+ifdef CLEAN_FILES
+	-$(DEL) $(CLEAN_FILES)
+endif
+ifdef LIB_NAME
+	-$(DEL) $(LIB_NAME) $(LIB_FULLNAME)
+endif
+	-$(DEL) $(FPCMADE) Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
+	-$(DEL) *$(ASMEXT) *_ppas$(BATCHEXT)
+fpc_cleanall: $(CLEANTARGET)
+ifdef CLEANEXEFILES
+	-$(DEL) $(CLEANEXEFILES)
+endif
+ifdef COMPILER_UNITTARGETDIR
+ifdef CLEANPPUFILES
+	-$(DEL) $(CLEANPPUFILES)
+endif
+ifneq ($(CLEANPPULINKFILES),)
+	-$(DEL) $(CLEANPPULINKFILES)
+endif
+ifdef CLEANRSTFILES
+	-$(DEL) $(addprefix $(UNITTARGETDIRPREFIX),$(CLEANRSTFILES))
+endif
+endif
+	-$(DELTREE) units
+	-$(DEL) *$(OEXT) *$(PPUEXT) *$(RSTEXT) *$(ASMEXT) *$(STATICLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
+ifneq ($(PPUEXT),.ppu)
+	-$(DEL) *.o *.ppu *.a
+endif
+	-$(DELTREE) *$(SMARTEXT)
+	-$(DEL) fpcmade.* Package.fpc $(PPAS) script.res link.res $(FPCEXTFILE) $(REDIRFILE)
+	-$(DEL) *_ppas$(BATCHEXT)
+ifdef AOUTEXT
+	-$(DEL) *$(AOUTEXT)
+endif
+ifdef DEBUGSYMEXT
+	-$(DEL) *$(DEBUGSYMEXT)
+endif
+fpc_distclean: cleanall
+.PHONY: fpc_baseinfo
+override INFORULES+=fpc_baseinfo
+fpc_baseinfo:
+	@$(ECHO)
+	@$(ECHO)  == Package info ==
+	@$(ECHO)  Package Name..... $(PACKAGE_NAME)
+	@$(ECHO)  Package Version.. $(PACKAGE_VERSION)
+	@$(ECHO)
+	@$(ECHO)  == Configuration info ==
+	@$(ECHO)
+	@$(ECHO)  FPC.......... $(FPC)
+	@$(ECHO)  FPC Version.. $(FPC_VERSION)
+	@$(ECHO)  Source CPU... $(CPU_SOURCE)
+	@$(ECHO)  Target CPU... $(CPU_TARGET)
+	@$(ECHO)  Source OS.... $(OS_SOURCE)
+	@$(ECHO)  Target OS.... $(OS_TARGET)
+	@$(ECHO)  Full Source.. $(FULL_SOURCE)
+	@$(ECHO)  Full Target.. $(FULL_TARGET)
+	@$(ECHO)  SourceSuffix. $(SOURCESUFFIX)
+	@$(ECHO)  TargetSuffix. $(TARGETSUFFIX)
+	@$(ECHO)
+	@$(ECHO)  == Directory info ==
+	@$(ECHO)
+	@$(ECHO)  Required pkgs... $(REQUIRE_PACKAGES)
+	@$(ECHO)
+	@$(ECHO)  Basedir......... $(BASEDIR)
+	@$(ECHO)  FPCDir.......... $(FPCDIR)
+	@$(ECHO)  CrossBinDir..... $(CROSSBINDIR)
+	@$(ECHO)  UnitsDir........ $(UNITSDIR)
+	@$(ECHO)  PackagesDir..... $(PACKAGESDIR)
+	@$(ECHO)
+	@$(ECHO)  GCC library..... $(GCCLIBDIR)
+	@$(ECHO)  Other library... $(OTHERLIBDIR)
+	@$(ECHO)
+	@$(ECHO)  == Tools info ==
+	@$(ECHO)
+	@$(ECHO)  As........ $(AS)
+	@$(ECHO)  Ld........ $(LD)
+	@$(ECHO)  Ar........ $(AR)
+	@$(ECHO)  Rc........ $(RC)
+	@$(ECHO)
+	@$(ECHO)  Mv........ $(MVPROG)
+	@$(ECHO)  Cp........ $(CPPROG)
+	@$(ECHO)  Rm........ $(RMPROG)
+	@$(ECHO)  GInstall.. $(GINSTALL)
+	@$(ECHO)  Echo...... $(ECHO)
+	@$(ECHO)  Shell..... $(SHELL)
+	@$(ECHO)  Date...... $(DATE)
+	@$(ECHO)  FPCMake... $(FPCMAKE)
+	@$(ECHO)  PPUMove... $(PPUMOVE)
+	@$(ECHO)  Upx....... $(UPXPROG)
+	@$(ECHO)  Zip....... $(ZIPPROG)
+	@$(ECHO)
+	@$(ECHO)  == Object info ==
+	@$(ECHO)
+	@$(ECHO)  Target Loaders........ $(TARGET_LOADERS)
+	@$(ECHO)  Target Units.......... $(TARGET_UNITS)
+	@$(ECHO)  Target Implicit Units. $(TARGET_IMPLICITUNITS)
+	@$(ECHO)  Target Programs....... $(TARGET_PROGRAMS)
+	@$(ECHO)  Target Dirs........... $(TARGET_DIRS)
+	@$(ECHO)  Target Examples....... $(TARGET_EXAMPLES)
+	@$(ECHO)  Target ExampleDirs.... $(TARGET_EXAMPLEDIRS)
+	@$(ECHO)
+	@$(ECHO)  Clean Units......... $(CLEAN_UNITS)
+	@$(ECHO)  Clean Files......... $(CLEAN_FILES)
+	@$(ECHO)
+	@$(ECHO)  Install Units....... $(INSTALL_UNITS)
+	@$(ECHO)  Install Files....... $(INSTALL_FILES)
+	@$(ECHO)
+	@$(ECHO)  == Install info ==
+	@$(ECHO)
+	@$(ECHO)  DateStr.............. $(DATESTR)
+	@$(ECHO)  ZipName.............. $(ZIPNAME)
+	@$(ECHO)  ZipPrefix............ $(ZIPPREFIX)
+	@$(ECHO)  ZipCrossPrefix....... $(ZIPCROSSPREFIX)
+	@$(ECHO)  ZipSuffix............ $(ZIPSUFFIX)
+	@$(ECHO)  FullZipName.......... $(FULLZIPNAME)
+	@$(ECHO)  Install FPC Package.. $(INSTALL_FPCPACKAGE)
+	@$(ECHO)
+	@$(ECHO)  Install base dir..... $(INSTALL_BASEDIR)
+	@$(ECHO)  Install binary dir... $(INSTALL_BINDIR)
+	@$(ECHO)  Install library dir.. $(INSTALL_LIBDIR)
+	@$(ECHO)  Install units dir.... $(INSTALL_UNITDIR)
+	@$(ECHO)  Install source dir... $(INSTALL_SOURCEDIR)
+	@$(ECHO)  Install doc dir...... $(INSTALL_DOCDIR)
+	@$(ECHO)  Install example dir.. $(INSTALL_EXAMPLEDIR)
+	@$(ECHO)  Install data dir..... $(INSTALL_DATADIR)
+	@$(ECHO)
+	@$(ECHO)  Dist destination dir. $(DIST_DESTDIR)
+	@$(ECHO)  Dist zip name........ $(DIST_ZIPNAME)
+	@$(ECHO)
+.PHONY: fpc_info
+fpc_info: $(INFORULES)
+.PHONY: fpc_makefile fpc_makefiles fpc_makefile_sub1 fpc_makefile_sub2 \
+	fpc_makefile_dirs
+fpc_makefile:
+	$(FPCMAKE) -w -T$(OS_TARGET) Makefile.fpc
+fpc_makefile_sub1:
+ifdef TARGET_DIRS
+	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_DIRS))
+endif
+ifdef TARGET_EXAMPLEDIRS
+	$(FPCMAKE) -w -T$(OS_TARGET) $(addsuffix /Makefile.fpc,$(TARGET_EXAMPLEDIRS))
+endif
+fpc_makefile_sub2: $(addsuffix _makefile_dirs,$(TARGET_DIRS) $(TARGET_EXAMPLEDIRS))
+fpc_makefile_dirs: fpc_makefile_sub1 fpc_makefile_sub2
+fpc_makefiles: fpc_makefile fpc_makefile_dirs
+all: fpc_all
+debug: fpc_debug
+smart: fpc_smart
+release: fpc_release
+units: fpc_units
+examples:
+shared: fpc_shared
+install: fpc_install
+sourceinstall: fpc_sourceinstall
+exampleinstall: fpc_exampleinstall
+distinstall: fpc_distinstall
+zipinstall: fpc_zipinstall
+zipsourceinstall: fpc_zipsourceinstall
+zipexampleinstall: fpc_zipexampleinstall
+zipdistinstall: fpc_zipdistinstall
+clean: fpc_clean
+distclean: fpc_distclean
+cleanall: fpc_cleanall
+info: fpc_info
+makefiles: fpc_makefiles
+.PHONY: all debug smart release units examples shared install sourceinstall exampleinstall distinstall zipinstall zipsourceinstall zipexampleinstall zipdistinstall clean distclean cleanall info makefiles
+ifneq ($(wildcard fpcmake.loc),)
+include fpcmake.loc
+endif

+ 27 - 0
packages/cocoaint/Makefile.fpc

@@ -0,0 +1,27 @@
+#
+#   Makefile.fpc for Apple Universal Interfaces for Free Pascal
+#
+
+[package]
+name=cocoaint
+version=2.5.1
+
+[target]
+units=CocoaAll
+
+[libs]
+libversion=2.5.1
+
+[install]
+fpcpackage=y
+
+[compiler]
+sourcedir=src
+
+[default]
+fpcdir=../..
+
+[require]
+packages=univint
+
+[rules]

+ 89 - 0
packages/cocoaint/src/CocoaAll.pas

@@ -0,0 +1,89 @@
+unit CocoaAll;
+
+{$mode objfpc}
+{$modeswitch objectivec1}
+{$define NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES}
+
+{NOTE: This is to prevent against a huge list of "never used" private variable notes}
+{$notes off}
+
+interface
+
+uses 
+  ctypes, MacOSAll;
+
+{$include UndefinedTypes.inc}
+
+{$define HEADER}
+{$include foundation/Foundation.inc}
+{$include appkit/AppKit.inc}
+{$undef HEADER}
+
+{$define TYPES}
+{$include foundation/Foundation.inc}
+{$include appkit/AppKit.inc}
+{$undef TYPES}
+
+{$define RECORDS}
+{$include foundation/Foundation.inc}
+{$include appkit/AppKit.inc}
+{$undef RECORDS}
+
+type
+{$define FORWARD}
+{$include foundation/Foundation.inc}
+{$include appkit/AppKit.inc}
+{$undef FORWARD}
+
+{$include UndefinedClasses.inc}
+
+{$define CLASSES}
+{$include foundation/Foundation.inc}
+{$include appkit/AppKit.inc}
+{$undef CLASSES}
+ 
+{$define PROTOCOLS}
+{$include foundation/Foundation.inc}
+{$include appkit/AppKit.inc}
+{$undef PROTOCOLS}
+
+{$define FUNCTIONS}
+{$include foundation/Foundation.inc}
+{$include appkit/AppKit.inc}
+{$undef FUNCTIONS}
+
+{$define EXTERNAL_SYMBOLS}
+{$include foundation/Foundation.inc}
+{$include appkit/AppKit.inc}
+{$undef EXTERNAL_SYMBOLS}
+
+{$notes on}
+
+{ Inline functions }
+function NSMakeRange (loc: NSUInteger; len: NSUInteger): NSRange;
+function NSMaxRange (range: NSRange): NSUInteger;
+function NSLocationInRange (loc: NSUInteger; range: NSRange): boolean;
+function NSEqualRanges (range1, range2: NSRange): boolean;
+function NSMakePoint (x: CGFloat; y: CGFloat): NSPoint;
+function NSMakeSize(w: CGFloat; h: CGFloat): NSSize;
+function NSMakeRect(x, y: CGFloat; w, h: CGFloat): NSRect;
+function NSMaxX (aRect: NSRect): CGFloat;
+function NSMaxY (aRect: NSRect): CGFloat;
+function NSMidX (aRect: NSRect): CGFloat;
+function NSMidY (aRect: NSRect): CGFloat;
+function NSMinX (aRect: NSRect): CGFloat;
+function NSMinY (aRect: NSRect): CGFloat;
+function NSWidth (aRect: NSRect): CGFloat;
+function NSHeight (aRect: NSRect): CGFloat;
+function NSRectFromCGRect (aRect: CGRect): NSRect;
+function NSRectToCGRect (aRect: NSRect): CGRect;
+function NSPointFromCGPoint (aPoint: CGPoint): NSPoint;
+function NSPointToCGPoint (aPoint: NSPoint): CGPoint;
+function NSSizeFromCGSize(aSize: CGSize): NSSize;
+function NSSizeToCGSize(aSize: NSSize): CGSize;
+
+implementation
+
+{$include InlineFunctions.inc}
+
+end.

+ 127 - 0
packages/cocoaint/src/InlineFunctions.inc

@@ -0,0 +1,127 @@
+
+function NSMakeRange (loc: NSUInteger; len: NSUInteger): NSRange;
+begin
+ result.location := loc;
+ result.length := len;
+end;
+
+function NSMaxRange (range: NSRange): NSUInteger;
+begin
+ result := range.location + range.length;
+end;
+
+function NSLocationInRange (loc: NSUInteger; range: NSRange): boolean;
+begin
+ if (loc <= range.location + range.length) and (loc >= range.location) then
+  result := true
+ else
+  result := false;
+end;
+
+function NSEqualRanges (range1, range2: NSRange): boolean;
+begin
+ if (range1.location = range2.location) and (range1.length = range2.length) then
+  result := true
+ else
+  result := false;
+end;
+
+function NSMakePoint (x: CGFloat; y: CGFloat): NSPoint;
+begin
+  result.y := y;
+  result.x := x;
+end;
+
+function NSMakeSize(w: CGFloat; h: CGFloat): NSSize;
+begin
+  result.width := w;
+  result.height := h;
+end;
+
+function NSMakeRect(x, y: CGFloat; w, h: CGFloat): NSRect;
+begin
+  result.origin.x := x;
+  result.origin.y := y;
+  result.size.width := w;
+  result.size.height := h;
+end;
+
+function NSMaxX (aRect: NSRect): CGFloat;
+begin
+  result := aRect.origin.x + aRect.size.width;
+end;
+
+function NSMaxY (aRect: NSRect): CGFloat;
+begin
+  result := aRect.origin.y + aRect.size.height;
+end;
+
+function NSMidX (aRect: NSRect): CGFloat;
+begin
+  result := (aRect.origin.x + aRect.size.width) * 0.5 ;
+end;
+
+function NSMidY (aRect: NSRect): CGFloat;
+begin
+  result := (aRect.origin.y + aRect.size.height) * 0.5 ;
+end;
+
+function NSMinX (aRect: NSRect): CGFloat;
+begin
+  result := aRect.origin.x;
+end;
+
+function NSMinY (aRect: NSRect): CGFloat;
+begin
+  result := aRect.origin.y;
+end;
+
+function NSWidth (aRect: NSRect): CGFloat;
+begin
+  result := aRect.size.width;
+end;
+
+function NSHeight (aRect: NSRect): CGFloat;
+begin
+  result := aRect.size.height;
+end;
+
+function NSRectFromCGRect (aRect: CGRect): NSRect;
+begin
+  result.origin.x := aRect.origin.x;
+  result.origin.y := aRect.origin.y;
+  result.size.width := aRect.size.width;
+  result.size.height := aRect.size.height;
+end;
+
+function NSRectToCGRect (aRect: NSRect): CGRect;
+begin
+  result.origin.x := aRect.origin.x;
+  result.origin.y := aRect.origin.y;
+  result.size.width := aRect.size.width;
+  result.size.height := aRect.size.height;
+end;
+
+function NSPointFromCGPoint (aPoint: CGPoint): NSPoint;
+begin
+  result.y := aPoint.y;
+  result.x := aPoint.x;
+end;
+
+function NSPointToCGPoint (aPoint: NSPoint): CGPoint;
+begin
+  result.y := aPoint.y;
+  result.x := aPoint.x;
+end;
+
+function NSSizeFromCGSize(aSize: CGSize): NSSize;
+begin
+  result.width := aSize.width;
+  result.height := aSize.height;
+end;
+
+function NSSizeToCGSize(aSize: NSSize): CGSize;
+begin
+  result.width := aSize.width;
+  result.height := aSize.height;
+end;

+ 658 - 0
packages/cocoaint/src/NSDelegatesAll.pas

@@ -0,0 +1,658 @@
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 9:10:40 ICT 2009 }
+
+unit NSDelegatesAll;
+interface
+
+{ Copy and paste these delegate methods into your real classes. }
+
+type
+  NSAlertDelegate = objccategory
+    function alertShowHelp(alert: NSAlert): Boolean; message 'alertShowHelp:';
+  end;
+
+type
+  NSAnimationDelegate = objccategory
+    procedure animation_didReachProgressMark(animation: NSAnimation; progress: NSAnimationProgress); message 'animation:didReachProgressMark:';
+    function animation_valueForProgress(animation: NSAnimation; progress: NSAnimationProgress): single; message 'animation:valueForProgress:';
+    procedure animationDidEnd(animation: NSAnimation); message 'animationDidEnd:';
+    procedure animationDidStop(animation: NSAnimation); message 'animationDidStop:';
+    function animationShouldStart(animation: NSAnimation): Boolean; message 'animationShouldStart:';
+  end;
+
+type
+  NSApplicationDelegate = objccategory
+    function application_openFile(sender: NSApplication; filename: NSString): Boolean; message 'application:openFile:';
+    function application_openFileWithoutUI(sender: id; filename: NSString): Boolean; message 'application:openFileWithoutUI:';
+    procedure application_openFiles(sender: NSApplication; filenames: NSArray); message 'application:openFiles:';
+    function application_openTempFile(sender: NSApplication; filename: NSString): Boolean; message 'application:openTempFile:';
+    function application_printFile(sender: NSApplication; filename: NSString): Boolean; message 'application:printFile:';
+    procedure application_printFiles(sender: NSApplication; filenames: NSArray); message 'application:printFiles:';
+    function application_printFiles_withSettings_showPrintPanels(application: NSApplication; fileNames: NSArray; printSettings: NSDictionary; showPrintPanels: Boolean): NSApplicationPrintReply; message 'application:printFiles:withSettings:showPrintPanels:';
+    function application_willPresentError(application: NSApplication; error: NSError): NSError; message 'application:willPresentError:';
+    function applicationDockMenu(sender: NSApplication): NSMenu; message 'applicationDockMenu:';
+    function applicationOpenUntitledFile(sender: NSApplication): Boolean; message 'applicationOpenUntitledFile:';
+    function applicationShouldHandleReopen_hasVisibleWindows(sender: NSApplication; flag: Boolean): Boolean; message 'applicationShouldHandleReopen:hasVisibleWindows:';
+    function applicationShouldOpenUntitledFile(sender: NSApplication): Boolean; message 'applicationShouldOpenUntitledFile:';
+    function applicationShouldTerminate(sender: NSApplication): NSApplicationTerminateReply; message 'applicationShouldTerminate:';
+    function applicationShouldTerminateAfterLastWindowClosed(sender: NSApplication): Boolean; message 'applicationShouldTerminateAfterLastWindowClosed:';
+  end;
+
+type
+  NSApplicationNotifications = objccategory
+    procedure applicationDidBecomeActive(notification: NSNotification); message 'applicationDidBecomeActive:';
+    procedure applicationDidChangeScreenParameters(notification: NSNotification); message 'applicationDidChangeScreenParameters:';
+    procedure applicationDidFinishLaunching(notification: NSNotification); message 'applicationDidFinishLaunching:';
+    procedure applicationDidHide(notification: NSNotification); message 'applicationDidHide:';
+    procedure applicationDidResignActive(notification: NSNotification); message 'applicationDidResignActive:';
+    procedure applicationDidUnhide(notification: NSNotification); message 'applicationDidUnhide:';
+    procedure applicationDidUpdate(notification: NSNotification); message 'applicationDidUpdate:';
+    procedure applicationWillBecomeActive(notification: NSNotification); message 'applicationWillBecomeActive:';
+    procedure applicationWillFinishLaunching(notification: NSNotification); message 'applicationWillFinishLaunching:';
+    procedure applicationWillHide(notification: NSNotification); message 'applicationWillHide:';
+    procedure applicationWillResignActive(notification: NSNotification); message 'applicationWillResignActive:';
+    procedure applicationWillTerminate(notification: NSNotification); message 'applicationWillTerminate:';
+    procedure applicationWillUnhide(notification: NSNotification); message 'applicationWillUnhide:';
+    procedure applicationWillUpdate(notification: NSNotification); message 'applicationWillUpdate:';
+  end;
+
+type
+  NSApplicationScriptingDelegation = objccategory
+    function application_delegateHandlesKey(sender: NSApplication; key: NSString): Boolean; message 'application:delegateHandlesKey:';
+  end;
+
+type
+  NSBrowserDelegate = objccategory
+    function browser_acceptDrop_atRow_column_dropOperation(browser: NSBrowser; info: id; row: clong; column: clong; dropOperation: NSBrowserDropOperation): Boolean; message 'browser:acceptDrop:atRow:column:dropOperation:';
+    function browser_canDragRowsWithIndexes_inColumn_withEvent(browser: NSBrowser; rowIndexes: NSIndexSet; column: clong; event: NSEvent): Boolean; message 'browser:canDragRowsWithIndexes:inColumn:withEvent:';
+    procedure browser_createRowsForColumn_inMatrix(sender: NSBrowser; column: clong; matrix: NSMatrix); message 'browser:createRowsForColumn:inMatrix:';
+    function browser_draggingImageForRowsWithIndexes_inColumn_withEvent_offset(browser: NSBrowser; rowIndexes: NSIndexSet; column: clong; event: NSEvent; dragImageOffset: NSPointPointer): NSImage; message 'browser:draggingImageForRowsWithIndexes:inColumn:withEvent:offset:';
+    function browser_isColumnValid(sender: NSBrowser; column: clong): Boolean; message 'browser:isColumnValid:';
+    function browser_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes_inColumn(browser: NSBrowser; dropDestination: NSURL; rowIndexes: NSIndexSet; column: clong): NSArray; message 'browser:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWithIndexes:inColumn:';
+    function browser_nextTypeSelectMatchFromRow_toRow_inColumn_forString(browser: NSBrowser; startRow: clong; endRow: clong; column: clong; searchString: NSString): clong; message 'browser:nextTypeSelectMatchFromRow:toRow:inColumn:forString:';
+    function browser_numberOfRowsInColumn(sender: NSBrowser; column: clong): clong; message 'browser:numberOfRowsInColumn:';
+    function browser_selectCellWithString_inColumn(sender: NSBrowser; title: NSString; column: clong): Boolean; message 'browser:selectCellWithString:inColumn:';
+    function browser_selectRow_inColumn(sender: NSBrowser; row: clong; column: clong): Boolean; message 'browser:selectRow:inColumn:';
+    function browser_shouldShowCellExpansionForRow_column(browser: NSBrowser; row: clong; column: clong): Boolean; message 'browser:shouldShowCellExpansionForRow:column:';
+    function browser_shouldSizeColumn_forUserResize_toWidth(browser: NSBrowser; columnIndex: clong; forUserResize: Boolean; suggestedWidth: CGFloat): CGFloat; message 'browser:shouldSizeColumn:forUserResize:toWidth:';
+    function browser_shouldTypeSelectForEvent_withCurrentSearchString(browser: NSBrowser; event: NSEvent; searchString: NSString): Boolean; message 'browser:shouldTypeSelectForEvent:withCurrentSearchString:';
+    function browser_sizeToFitWidthOfColumn(browser: NSBrowser; columnIndex: clong): CGFloat; message 'browser:sizeToFitWidthOfColumn:';
+    function browser_titleOfColumn(sender: NSBrowser; column: clong): NSString; message 'browser:titleOfColumn:';
+    function browser_typeSelectStringForRow_inColumn(browser: NSBrowser; row: clong; column: clong): NSString; message 'browser:typeSelectStringForRow:inColumn:';
+    function browser_validateDrop_proposedRow_column_dropOperation(browser: NSBrowser; info: id; row: clong; column: clong; dropOperation: NSBrowserDropOperation): NSDragOperation; message 'browser:validateDrop:proposedRow:column:dropOperation:';
+    procedure browser_willDisplayCell_atRow_column(sender: NSBrowser; cell_: id; row: clong; column: clong); message 'browser:willDisplayCell:atRow:column:';
+    function browser_writeRowsWithIndexes_inColumn_toPasteboard(browser: NSBrowser; rowIndexes: NSIndexSet; column: clong; pasteboard: NSPasteboard): Boolean; message 'browser:writeRowsWithIndexes:inColumn:toPasteboard:';
+    procedure browserColumnConfigurationDidChange(notification: NSNotification); message 'browserColumnConfigurationDidChange:';
+    procedure browserDidScroll(sender: NSBrowser); message 'browserDidScroll:';
+    procedure browserWillScroll(sender: NSBrowser); message 'browserWillScroll:';
+  end;
+
+type
+  NSComboBoxCellDataSource = objccategory
+    function comboBoxCell_completedString(aComboBoxCell: NSComboBoxCell; uncompletedString: NSString): NSString; message 'comboBoxCell:completedString:';
+    function comboBoxCell_indexOfItemWithStringValue(aComboBoxCell: NSComboBoxCell; string_: NSString): culong; message 'comboBoxCell:indexOfItemWithStringValue:';
+    function comboBoxCell_objectValueForItemAtIndex(aComboBoxCell: NSComboBoxCell; index: clong): id; message 'comboBoxCell:objectValueForItemAtIndex:';
+    function numberOfItemsInComboBoxCell(comboBoxCell: NSComboBoxCell): clong; message 'numberOfItemsInComboBoxCell:';
+  end;
+
+type
+  NSComboBoxDataSource = objccategory
+    function comboBox_completedString(aComboBox: NSComboBox; string_: NSString): NSString; message 'comboBox:completedString:';
+    function comboBox_indexOfItemWithStringValue(aComboBox: NSComboBox; string_: NSString): culong; message 'comboBox:indexOfItemWithStringValue:';
+    function comboBox_objectValueForItemAtIndex(aComboBox: NSComboBox; index: clong): id; message 'comboBox:objectValueForItemAtIndex:';
+    function numberOfItemsInComboBox(aComboBox: NSComboBox): clong; message 'numberOfItemsInComboBox:';
+  end;
+
+type
+  NSComboBoxNotifications = objccategory
+    procedure comboBoxSelectionDidChange(notification: NSNotification); message 'comboBoxSelectionDidChange:';
+    procedure comboBoxSelectionIsChanging(notification: NSNotification); message 'comboBoxSelectionIsChanging:';
+    procedure comboBoxWillDismiss(notification: NSNotification); message 'comboBoxWillDismiss:';
+    procedure comboBoxWillPopUp(notification: NSNotification); message 'comboBoxWillPopUp:';
+  end;
+
+type
+  NSConnectionDelegateMethods = objccategory
+    function authenticateComponents_withData(components: NSArray; signature: NSData): Boolean; message 'authenticateComponents:withData:';
+    function authenticationDataForComponents(components: NSArray): NSData; message 'authenticationDataForComponents:';
+    function connection_shouldMakeNewConnection(ancestor: NSConnection; conn: NSConnection): Boolean; message 'connection:shouldMakeNewConnection:';
+    function createConversationForConnection(conn: NSConnection): id; message 'createConversationForConnection:';
+    function makeNewConnection_sender(conn: NSConnection; ancestor: NSConnection): Boolean; message 'makeNewConnection:sender:';
+  end;
+
+type
+  NSControlSubclassDelegate = objccategory
+    function control_didFailToFormatString_errorDescription(control: NSControl; string_: NSString; error: NSString): Boolean; message 'control:didFailToFormatString:errorDescription:';
+    procedure control_didFailToValidatePartialString_errorDescription(control: NSControl; string_: NSString; error: NSString); message 'control:didFailToValidatePartialString:errorDescription:';
+    function control_isValidObject(control: NSControl; obj: id): Boolean; message 'control:isValidObject:';
+    function control_textShouldBeginEditing(control: NSControl; fieldEditor: NSText): Boolean; message 'control:textShouldBeginEditing:';
+    function control_textShouldEndEditing(control: NSControl; fieldEditor: NSText): Boolean; message 'control:textShouldEndEditing:';
+    function control_textView_completions_forPartialWordRange_indexOfSelectedItem(control: NSControl; textView: NSTextView; words: NSArray; charRange: NSRange; index: clong): NSArray; message 'control:textView:completions:forPartialWordRange:indexOfSelectedItem:';
+    function control_textView_doCommandBySelector(control: NSControl; textView: NSTextView; commandSelector: SEL): Boolean; message 'control:textView:doCommandBySelector:';
+  end;
+
+type
+  NSControlSubclassNotifications = objccategory
+    procedure controlTextDidBeginEditing(obj: NSNotification); message 'controlTextDidBeginEditing:';
+    procedure controlTextDidChange(obj: NSNotification); message 'controlTextDidChange:';
+    procedure controlTextDidEndEditing(obj: NSNotification); message 'controlTextDidEndEditing:';
+  end;
+
+type
+  NSCopyLinkMoveHandler = objccategory
+    function fileManager_shouldProceedAfterError(fm: NSFileManager; errorInfo: NSDictionary): Boolean; message 'fileManager:shouldProceedAfterError:';
+    procedure fileManager_willProcessPath(fm: NSFileManager; path: NSString); message 'fileManager:willProcessPath:';
+  end;
+
+type
+  NSDatePickerCellDelegate = objccategory
+    procedure datePickerCell_validateProposedDateValue_timeInterval(aDatePickerCell: NSDatePickerCell; proposedDateValue: NSDate; proposedTimeInterval: NSTimeInterval); message 'datePickerCell:validateProposedDateValue:timeInterval:';
+  end;
+
+type
+  NSDistantObjectRequestMethods = objccategory
+    function connection_handleRequest(connection_: NSConnection; doreq: NSDistantObjectRequest): Boolean; message 'connection:handleRequest:';
+  end;
+
+type
+  NSDraggingDestination = objccategory
+    procedure concludeDragOperation(sender: id); message 'concludeDragOperation:';
+    procedure draggingEnded(sender: id); message 'draggingEnded:';
+    function draggingEntered(sender: id): NSDragOperation; message 'draggingEntered:';
+    procedure draggingExited(sender: id); message 'draggingExited:';
+    function draggingUpdated(sender: id): NSDragOperation; message 'draggingUpdated:';
+    function performDragOperation(sender: id): Boolean; message 'performDragOperation:';
+    function prepareForDragOperation(sender: id): Boolean; message 'prepareForDragOperation:';
+    function wantsPeriodicDraggingUpdates: Boolean; message 'wantsPeriodicDraggingUpdates';
+  end;
+
+type
+  NSDraggingSource = objccategory
+    procedure draggedImage_beganAt(image: NSImage; screenPoint: NSPoint); message 'draggedImage:beganAt:';
+    procedure draggedImage_endedAt_deposited(image: NSImage; screenPoint: NSPoint; flag: Boolean); message 'draggedImage:endedAt:deposited:';
+    procedure draggedImage_endedAt_operation(image: NSImage; screenPoint: NSPoint; operation: NSDragOperation); message 'draggedImage:endedAt:operation:';
+    procedure draggedImage_movedTo(image: NSImage; screenPoint: NSPoint); message 'draggedImage:movedTo:';
+    function draggingSourceOperationMaskForLocal(flag: Boolean): NSDragOperation; message 'draggingSourceOperationMaskForLocal:';
+    function ignoreModifierKeysWhileDragging: Boolean; message 'ignoreModifierKeysWhileDragging';
+    function namesOfPromisedFilesDroppedAtDestination(dropDestination: NSURL): NSArray; message 'namesOfPromisedFilesDroppedAtDestination:';
+  end;
+
+type
+  NSDrawerDelegate = objccategory
+    function drawerShouldClose(sender: NSDrawer): Boolean; message 'drawerShouldClose:';
+    function drawerShouldOpen(sender: NSDrawer): Boolean; message 'drawerShouldOpen:';
+    function drawerWillResizeContents_toSize(sender: NSDrawer; contentSize: NSSize): NSSize; message 'drawerWillResizeContents:toSize:';
+  end;
+
+type
+  NSDrawerNotifications = objccategory
+    procedure drawerDidClose(notification: NSNotification); message 'drawerDidClose:';
+    procedure drawerDidOpen(notification: NSNotification); message 'drawerDidOpen:';
+    procedure drawerWillClose(notification: NSNotification); message 'drawerWillClose:';
+    procedure drawerWillOpen(notification: NSNotification); message 'drawerWillOpen:';
+  end;
+
+type
+  NSEditorRegistration = objccategory
+    procedure objectDidBeginEditing(editor: id); message 'objectDidBeginEditing:';
+    procedure objectDidEndEditing(editor: id); message 'objectDidEndEditing:';
+  end;
+
+type
+  NSFileManagerFileOperationAdditions = objccategory
+    function fileManager_shouldCopyItemAtPath_toPath(fileManager: NSFileManager; srcPath: NSString; dstPath: NSString): Boolean; message 'fileManager:shouldCopyItemAtPath:toPath:';
+    function fileManager_shouldLinkItemAtPath_toPath(fileManager: NSFileManager; srcPath: NSString; dstPath: NSString): Boolean; message 'fileManager:shouldLinkItemAtPath:toPath:';
+    function fileManager_shouldMoveItemAtPath_toPath(fileManager: NSFileManager; srcPath: NSString; dstPath: NSString): Boolean; message 'fileManager:shouldMoveItemAtPath:toPath:';
+    function fileManager_shouldProceedAfterError_copyingItemAtPath_toPath(fileManager: NSFileManager; error: NSError; srcPath: NSString; dstPath: NSString): Boolean; message 'fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:';
+    function fileManager_shouldProceedAfterError_linkingItemAtPath_toPath(fileManager: NSFileManager; error: NSError; srcPath: NSString; dstPath: NSString): Boolean; message 'fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:';
+    function fileManager_shouldProceedAfterError_movingItemAtPath_toPath(fileManager: NSFileManager; error: NSError; srcPath: NSString; dstPath: NSString): Boolean; message 'fileManager:shouldProceedAfterError:movingItemAtPath:toPath:';
+    function fileManager_shouldProceedAfterError_removingItemAtPath(fileManager: NSFileManager; error: NSError; path: NSString): Boolean; message 'fileManager:shouldProceedAfterError:removingItemAtPath:';
+    function fileManager_shouldRemoveItemAtPath(fileManager: NSFileManager; path: NSString): Boolean; message 'fileManager:shouldRemoveItemAtPath:';
+  end;
+
+type
+  NSFontManagerDelegate = objccategory
+    function fontManager_willIncludeFont(sender: id; fontName: NSString): Boolean; message 'fontManager:willIncludeFont:';
+  end;
+
+type
+  NSImageDelegate = objccategory
+    procedure image_didLoadPartOfRepresentation_withValidRows(image: NSImage; rep: NSImageRep; rows: clong); message 'image:didLoadPartOfRepresentation:withValidRows:';
+    procedure image_didLoadRepresentation_withStatus(image: NSImage; rep: NSImageRep; status: NSImageLoadStatus); message 'image:didLoadRepresentation:withStatus:';
+    procedure image_didLoadRepresentationHeader(image: NSImage; rep: NSImageRep); message 'image:didLoadRepresentationHeader:';
+    procedure image_willLoadRepresentation(image: NSImage; rep: NSImageRep); message 'image:willLoadRepresentation:';
+    function imageDidNotDraw_inRect(sender: id; aRect: NSRect): NSImage; message 'imageDidNotDraw:inRect:';
+  end;
+
+type
+  NSKeyValueObserverNotification = objccategory
+    procedure didChange_valuesAtIndexes_forKey(changeKind: NSKeyValueChange; indexes: NSIndexSet; key: NSString); message 'didChange:valuesAtIndexes:forKey:';
+    procedure didChangeValueForKey(key: NSString); message 'didChangeValueForKey:';
+    procedure didChangeValueForKey_withSetMutation_usingObjects(key: NSString; mutationKind: NSKeyValueSetMutationKind; objects: NSSet); message 'didChangeValueForKey:withSetMutation:usingObjects:';
+    procedure willChange_valuesAtIndexes_forKey(changeKind: NSKeyValueChange; indexes: NSIndexSet; key: NSString); message 'willChange:valuesAtIndexes:forKey:';
+    procedure willChangeValueForKey(key: NSString); message 'willChangeValueForKey:';
+    procedure willChangeValueForKey_withSetMutation_usingObjects(key: NSString; mutationKind: NSKeyValueSetMutationKind; objects: NSSet); message 'willChangeValueForKey:withSetMutation:usingObjects:';
+  end;
+
+type
+  NSKeyedArchiverDelegate = objccategory
+    procedure archiver_didEncodeObject(archiver: NSKeyedArchiver; object_: id); message 'archiver:didEncodeObject:';
+    function archiver_willEncodeObject(archiver: NSKeyedArchiver; object_: id): id; message 'archiver:willEncodeObject:';
+    procedure archiver_willReplaceObject_withObject(archiver: NSKeyedArchiver; object_: id; newObject: id); message 'archiver:willReplaceObject:withObject:';
+    procedure archiverDidFinish(archiver: NSKeyedArchiver); message 'archiverDidFinish:';
+    procedure archiverWillFinish(archiver: NSKeyedArchiver); message 'archiverWillFinish:';
+  end;
+
+type
+  NSKeyedUnarchiverDelegate = objccategory
+    function unarchiver_cannotDecodeObjectOfClassName_originalClasses(unarchiver: NSKeyedUnarchiver; name: NSString; classNames: NSArray): Pobjc_class; message 'unarchiver:cannotDecodeObjectOfClassName:originalClasses:';
+    function unarchiver_didDecodeObject(unarchiver: NSKeyedUnarchiver; object_: id): id; message 'unarchiver:didDecodeObject:';
+    procedure unarchiver_willReplaceObject_withObject(unarchiver: NSKeyedUnarchiver; object_: id; newObject: id); message 'unarchiver:willReplaceObject:withObject:';
+    procedure unarchiverDidFinish(unarchiver: NSKeyedUnarchiver); message 'unarchiverDidFinish:';
+    procedure unarchiverWillFinish(unarchiver: NSKeyedUnarchiver); message 'unarchiverWillFinish:';
+  end;
+
+type
+  NSLayoutManagerDelegate = objccategory
+    procedure layoutManager_didCompleteLayoutForTextContainer_atEnd(layoutManager: NSLayoutManager; textContainer: NSTextContainer; layoutFinishedFlag: Boolean); message 'layoutManager:didCompleteLayoutForTextContainer:atEnd:';
+    function layoutManager_shouldUseTemporaryAttributes_forDrawingToScreen_atCharacterIndex_effectiveRange(layoutManager: NSLayoutManager; attrs: NSDictionary; toScreen: Boolean; charIndex: culong; effectiveCharRange: NSRangePointer): NSDictionary; message 'layoutManager:shouldUseTemporaryAttributes:forDrawingToScreen:atCharacterIndex:effectiveRange:';
+    procedure layoutManagerDidInvalidateLayout(sender: NSLayoutManager); message 'layoutManagerDidInvalidateLayout:';
+  end;
+
+type
+  NSMachPortDelegateMethods = objccategory
+    procedure handleMachMessage(msg: Pointer); message 'handleMachMessage:';
+  end;
+
+type
+  NSMenuDelegate = objccategory
+    function menu_updateItem_atIndex_shouldCancel(menu: NSMenu; item: NSMenuItem; index: clong; shouldCancel: Boolean): Boolean; message 'menu:updateItem:atIndex:shouldCancel:';
+    procedure menu_willHighlightItem(menu: NSMenu; item: NSMenuItem); message 'menu:willHighlightItem:';
+    procedure menuDidClose(menu: NSMenu); message 'menuDidClose:';
+    function menuHasKeyEquivalent_forEvent_target_action(menu: NSMenu; event: NSEvent; target: id; action: SEL): Boolean; message 'menuHasKeyEquivalent:forEvent:target:action:';
+    procedure menuNeedsUpdate(menu: NSMenu); message 'menuNeedsUpdate:';
+    procedure menuWillOpen(menu: NSMenu); message 'menuWillOpen:';
+    function numberOfItemsInMenu(menu: NSMenu): clong; message 'numberOfItemsInMenu:';
+  end;
+
+type
+  NSMetadataQueryDelegate = objccategory
+    function metadataQuery_replacementObjectForResultObject(query: NSMetadataQuery; result_: NSMetadataItem): id; message 'metadataQuery:replacementObjectForResultObject:';
+    function metadataQuery_replacementValueForAttribute_value(query: NSMetadataQuery; attrName: NSString; attrValue: id): id; message 'metadataQuery:replacementValueForAttribute:value:';
+  end;
+
+type
+  NSNetServiceBrowserDelegateMethods = objccategory
+    procedure netServiceBrowser_didFindDomain_moreComing(aNetServiceBrowser: NSNetServiceBrowser; domainString: NSString; moreComing: Boolean); message 'netServiceBrowser:didFindDomain:moreComing:';
+    procedure netServiceBrowser_didFindService_moreComing(aNetServiceBrowser: NSNetServiceBrowser; aNetService: NSNetService; moreComing: Boolean); message 'netServiceBrowser:didFindService:moreComing:';
+    procedure netServiceBrowser_didNotSearch(aNetServiceBrowser: NSNetServiceBrowser; errorDict: NSDictionary); message 'netServiceBrowser:didNotSearch:';
+    procedure netServiceBrowser_didRemoveDomain_moreComing(aNetServiceBrowser: NSNetServiceBrowser; domainString: NSString; moreComing: Boolean); message 'netServiceBrowser:didRemoveDomain:moreComing:';
+    procedure netServiceBrowser_didRemoveService_moreComing(aNetServiceBrowser: NSNetServiceBrowser; aNetService: NSNetService; moreComing: Boolean); message 'netServiceBrowser:didRemoveService:moreComing:';
+    procedure netServiceBrowserDidStopSearch(aNetServiceBrowser: NSNetServiceBrowser); message 'netServiceBrowserDidStopSearch:';
+    procedure netServiceBrowserWillSearch(aNetServiceBrowser: NSNetServiceBrowser); message 'netServiceBrowserWillSearch:';
+  end;
+
+type
+  NSNetServiceDelegateMethods = objccategory
+    procedure netService_didNotPublish(sender: NSNetService; errorDict: NSDictionary); message 'netService:didNotPublish:';
+    procedure netService_didNotResolve(sender: NSNetService; errorDict: NSDictionary); message 'netService:didNotResolve:';
+    procedure netService_didUpdateTXTRecordData(sender: NSNetService; data: NSData); message 'netService:didUpdateTXTRecordData:';
+    procedure netServiceDidPublish(sender: NSNetService); message 'netServiceDidPublish:';
+    procedure netServiceDidResolveAddress(sender: NSNetService); message 'netServiceDidResolveAddress:';
+    procedure netServiceDidStop(sender: NSNetService); message 'netServiceDidStop:';
+    procedure netServiceWillPublish(sender: NSNetService); message 'netServiceWillPublish:';
+    procedure netServiceWillResolve(sender: NSNetService); message 'netServiceWillResolve:';
+  end;
+
+type
+  NSOutlineViewDataSource = objccategory
+    function outlineView_acceptDrop_item_childIndex(outlineView: NSOutlineView; info: id; item: id; index: clong): Boolean; message 'outlineView:acceptDrop:item:childIndex:';
+    function outlineView_child_ofItem(outlineView: NSOutlineView; index: clong; item: id): id; message 'outlineView:child:ofItem:';
+    function outlineView_isItemExpandable(outlineView: NSOutlineView; item: id): Boolean; message 'outlineView:isItemExpandable:';
+    function outlineView_itemForPersistentObject(outlineView: NSOutlineView; object_: id): id; message 'outlineView:itemForPersistentObject:';
+    function outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems(outlineView: NSOutlineView; dropDestination: NSURL; items: NSArray): NSArray; message 'outlineView:namesOfPromisedFilesDroppedAtDestination:forDraggedItems:';
+    function outlineView_numberOfChildrenOfItem(outlineView: NSOutlineView; item: id): clong; message 'outlineView:numberOfChildrenOfItem:';
+    function outlineView_objectValueForTableColumn_byItem(outlineView: NSOutlineView; tableColumn: NSTableColumn; item: id): id; message 'outlineView:objectValueForTableColumn:byItem:';
+    function outlineView_persistentObjectForItem(outlineView: NSOutlineView; item: id): id; message 'outlineView:persistentObjectForItem:';
+    procedure outlineView_setObjectValue_forTableColumn_byItem(outlineView: NSOutlineView; object_: id; tableColumn: NSTableColumn; item: id); message 'outlineView:setObjectValue:forTableColumn:byItem:';
+    procedure outlineView_sortDescriptorsDidChange(outlineView: NSOutlineView; oldDescriptors: NSArray); message 'outlineView:sortDescriptorsDidChange:';
+    function outlineView_validateDrop_proposedItem_proposedChildIndex(outlineView: NSOutlineView; info: id; item: id; index: clong): NSDragOperation; message 'outlineView:validateDrop:proposedItem:proposedChildIndex:';
+    function outlineView_writeItems_toPasteboard(outlineView: NSOutlineView; items: NSArray; pasteboard: NSPasteboard): Boolean; message 'outlineView:writeItems:toPasteboard:';
+  end;
+
+type
+  NSOutlineViewDelegate = objccategory
+    function outlineView_dataCellForTableColumn_item(outlineView: NSOutlineView; tableColumn: NSTableColumn; item: id): NSCell; message 'outlineView:dataCellForTableColumn:item:';
+    procedure outlineView_didClickTableColumn(outlineView: NSOutlineView; tableColumn: NSTableColumn); message 'outlineView:didClickTableColumn:';
+    procedure outlineView_didDragTableColumn(outlineView: NSOutlineView; tableColumn: NSTableColumn); message 'outlineView:didDragTableColumn:';
+    function outlineView_heightOfRowByItem(outlineView: NSOutlineView; item: id): CGFloat; message 'outlineView:heightOfRowByItem:';
+    function outlineView_isGroupItem(outlineView: NSOutlineView; item: id): Boolean; message 'outlineView:isGroupItem:';
+    procedure outlineView_mouseDownInHeaderOfTableColumn(outlineView: NSOutlineView; tableColumn: NSTableColumn); message 'outlineView:mouseDownInHeaderOfTableColumn:';
+    function outlineView_nextTypeSelectMatchFromItem_toItem_forString(outlineView: NSOutlineView; startItem: id; endItem: id; searchString: NSString): id; message 'outlineView:nextTypeSelectMatchFromItem:toItem:forString:';
+    function outlineView_selectionIndexesForProposedSelection(outlineView: NSOutlineView; proposedSelectionIndexes: NSIndexSet): NSIndexSet; message 'outlineView:selectionIndexesForProposedSelection:';
+    function outlineView_shouldCollapseItem(outlineView: NSOutlineView; item: id): Boolean; message 'outlineView:shouldCollapseItem:';
+    function outlineView_shouldEditTableColumn_item(outlineView: NSOutlineView; tableColumn: NSTableColumn; item: id): Boolean; message 'outlineView:shouldEditTableColumn:item:';
+    function outlineView_shouldExpandItem(outlineView: NSOutlineView; item: id): Boolean; message 'outlineView:shouldExpandItem:';
+    function outlineView_shouldSelectItem(outlineView: NSOutlineView; item: id): Boolean; message 'outlineView:shouldSelectItem:';
+    function outlineView_shouldSelectTableColumn(outlineView: NSOutlineView; tableColumn: NSTableColumn): Boolean; message 'outlineView:shouldSelectTableColumn:';
+    function outlineView_shouldShowCellExpansionForTableColumn_item(outlineView: NSOutlineView; tableColumn: NSTableColumn; item: id): Boolean; message 'outlineView:shouldShowCellExpansionForTableColumn:item:';
+    function outlineView_shouldTrackCell_forTableColumn_item(outlineView: NSOutlineView; cell_: NSCell; tableColumn: NSTableColumn; item: id): Boolean; message 'outlineView:shouldTrackCell:forTableColumn:item:';
+    function outlineView_shouldTypeSelectForEvent_withCurrentSearchString(outlineView: NSOutlineView; event: NSEvent; searchString: NSString): Boolean; message 'outlineView:shouldTypeSelectForEvent:withCurrentSearchString:';
+    function outlineView_toolTipForCell_rect_tableColumn_item_mouseLocation(outlineView: NSOutlineView; cell_: NSCell; rect: NSRectPointer; tableColumn: NSTableColumn; item: id; mouseLocation: NSPoint): NSString; message 'outlineView:toolTipForCell:rect:tableColumn:item:mouseLocation:';
+    function outlineView_typeSelectStringForTableColumn_item(outlineView: NSOutlineView; tableColumn: NSTableColumn; item: id): NSString; message 'outlineView:typeSelectStringForTableColumn:item:';
+    procedure outlineView_willDisplayCell_forTableColumn_item(outlineView: NSOutlineView; cell_: id; tableColumn: NSTableColumn; item: id); message 'outlineView:willDisplayCell:forTableColumn:item:';
+    procedure outlineView_willDisplayOutlineCell_forTableColumn_item(outlineView: NSOutlineView; cell_: id; tableColumn: NSTableColumn; item: id); message 'outlineView:willDisplayOutlineCell:forTableColumn:item:';
+    function selectionShouldChangeInOutlineView(outlineView: NSOutlineView): Boolean; message 'selectionShouldChangeInOutlineView:';
+  end;
+
+type
+  NSOutlineViewNotifications = objccategory
+    procedure outlineViewColumnDidMove(notification: NSNotification); message 'outlineViewColumnDidMove:';
+    procedure outlineViewColumnDidResize(notification: NSNotification); message 'outlineViewColumnDidResize:';
+    procedure outlineViewItemDidCollapse(notification: NSNotification); message 'outlineViewItemDidCollapse:';
+    procedure outlineViewItemDidExpand(notification: NSNotification); message 'outlineViewItemDidExpand:';
+    procedure outlineViewItemWillCollapse(notification: NSNotification); message 'outlineViewItemWillCollapse:';
+    procedure outlineViewItemWillExpand(notification: NSNotification); message 'outlineViewItemWillExpand:';
+    procedure outlineViewSelectionDidChange(notification: NSNotification); message 'outlineViewSelectionDidChange:';
+    procedure outlineViewSelectionIsChanging(notification: NSNotification); message 'outlineViewSelectionIsChanging:';
+  end;
+
+type
+  NSPasteboardOwner = objccategory
+    procedure pasteboard_provideDataForType(sender: NSPasteboard; type_: NSString); message 'pasteboard:provideDataForType:';
+    procedure pasteboardChangedOwner(sender: NSPasteboard); message 'pasteboardChangedOwner:';
+  end;
+
+type
+  NSPortDelegateMethods = objccategory
+    procedure handlePortMessage(message: NSPortMessage); message 'handlePortMessage:';
+  end;
+
+type
+  NSRuleEditorDelegateMethods = objccategory
+    function ruleEditor_child_forCriterion_withRowType(editor: NSRuleEditor; index: clong; criterion: id; rowType: NSRuleEditorRowType): id; message 'ruleEditor:child:forCriterion:withRowType:';
+    function ruleEditor_displayValueForCriterion_inRow(editor: NSRuleEditor; criterion: id; row: clong): id; message 'ruleEditor:displayValueForCriterion:inRow:';
+    function ruleEditor_numberOfChildrenForCriterion_withRowType(editor: NSRuleEditor; criterion: id; rowType: NSRuleEditorRowType): clong; message 'ruleEditor:numberOfChildrenForCriterion:withRowType:';
+    function ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow(editor: NSRuleEditor; criterion: id; value: id; row: clong): NSDictionary; message 'ruleEditor:predicatePartsForCriterion:withDisplayValue:inRow:';
+    procedure ruleEditorRowsDidChange(notification: NSNotification); message 'ruleEditorRowsDidChange:';
+  end;
+
+type
+  NSSavePanelDelegate = objccategory
+    function panel_compareFilename_with_caseSensitive(sender: id; name: NSString; name1: NSString; caseSensitive: Boolean): NSComparisonResult; message 'panel:compareFilename:with:caseSensitive:';
+    procedure panel_directoryDidChange(sender: id; path: NSString); message 'panel:directoryDidChange:';
+    function panel_isValidFilename(sender: id; filename_: NSString): Boolean; message 'panel:isValidFilename:';
+    function panel_shouldShowFilename(sender: id; filename_: NSString): Boolean; message 'panel:shouldShowFilename:';
+    function panel_userEnteredFilename_confirmed(sender: id; filename_: NSString; okFlag: Boolean): NSString; message 'panel:userEnteredFilename:confirmed:';
+    procedure panel_willExpand(sender: id; expanding: Boolean); message 'panel:willExpand:';
+    procedure panelSelectionDidChange(sender: id); message 'panelSelectionDidChange:';
+  end;
+
+type
+  NSSoundDelegateMethods = objccategory
+    procedure sound_didFinishPlaying(sound: NSSound; aBool: Boolean); message 'sound:didFinishPlaying:';
+  end;
+
+type
+  NSSpeechRecognizerDelegate = objccategory
+    procedure speechRecognizer_didRecognizeCommand(sender: NSSpeechRecognizer; command: id); message 'speechRecognizer:didRecognizeCommand:';
+  end;
+
+type
+  NSSpeechSynthesizerDelegate = objccategory
+    procedure speechSynthesizer_didEncounterErrorAtIndex_ofString_message(sender: NSSpeechSynthesizer; characterIndex: culong; string_: NSString; message: NSString); message 'speechSynthesizer:didEncounterErrorAtIndex:ofString:message:';
+    procedure speechSynthesizer_didEncounterSyncMessage(sender: NSSpeechSynthesizer; message: NSString); message 'speechSynthesizer:didEncounterSyncMessage:';
+    procedure speechSynthesizer_didFinishSpeaking(sender: NSSpeechSynthesizer; finishedSpeaking: Boolean); message 'speechSynthesizer:didFinishSpeaking:';
+    procedure speechSynthesizer_willSpeakPhoneme(sender: NSSpeechSynthesizer; phonemeOpcode: cshort); message 'speechSynthesizer:willSpeakPhoneme:';
+    procedure speechSynthesizer_willSpeakWord_ofString(sender: NSSpeechSynthesizer; characterRange: NSRange; string_: NSString); message 'speechSynthesizer:willSpeakWord:ofString:';
+  end;
+
+type
+  NSSpellServerDelegate = objccategory
+    function spellServer_checkGrammarInString_language_details(sender: NSSpellServer; stringToCheck: NSString; language: NSString; details: NSArray): NSRange; message 'spellServer:checkGrammarInString:language:details:';
+    procedure spellServer_didForgetWord_inLanguage(sender: NSSpellServer; word: NSString; language: NSString); message 'spellServer:didForgetWord:inLanguage:';
+    procedure spellServer_didLearnWord_inLanguage(sender: NSSpellServer; word: NSString; language: NSString); message 'spellServer:didLearnWord:inLanguage:';
+    function spellServer_findMisspelledWordInString_language_wordCount_countOnly(sender: NSSpellServer; stringToCheck: NSString; language: NSString; wordCount: clong; countOnly: Boolean): NSRange; message 'spellServer:findMisspelledWordInString:language:wordCount:countOnly:';
+    function spellServer_suggestCompletionsForPartialWordRange_inString_language(sender: NSSpellServer; range: NSRange; string_: NSString; language: NSString): NSArray; message 'spellServer:suggestCompletionsForPartialWordRange:inString:language:';
+    function spellServer_suggestGuessesForWord_inLanguage(sender: NSSpellServer; word: NSString; language: NSString): NSArray; message 'spellServer:suggestGuessesForWord:inLanguage:';
+  end;
+
+type
+  NSSplitViewDelegate = objccategory
+    function splitView_additionalEffectiveRectOfDividerAtIndex(splitView: NSSplitView; dividerIndex: clong): NSRect; message 'splitView:additionalEffectiveRectOfDividerAtIndex:';
+    function splitView_canCollapseSubview(splitView: NSSplitView; subview: NSView): Boolean; message 'splitView:canCollapseSubview:';
+    function splitView_constrainMaxCoordinate_ofSubviewAt(splitView: NSSplitView; proposedMaximumPosition: CGFloat; dividerIndex: clong): CGFloat; message 'splitView:constrainMaxCoordinate:ofSubviewAt:';
+    function splitView_constrainMinCoordinate_ofSubviewAt(splitView: NSSplitView; proposedMinimumPosition: CGFloat; dividerIndex: clong): CGFloat; message 'splitView:constrainMinCoordinate:ofSubviewAt:';
+    function splitView_constrainSplitPosition_ofSubviewAt(splitView: NSSplitView; proposedPosition: CGFloat; dividerIndex: clong): CGFloat; message 'splitView:constrainSplitPosition:ofSubviewAt:';
+    function splitView_effectiveRect_forDrawnRect_ofDividerAtIndex(splitView: NSSplitView; proposedEffectiveRect: NSRect; drawnRect: NSRect; dividerIndex: clong): NSRect; message 'splitView:effectiveRect:forDrawnRect:ofDividerAtIndex:';
+    procedure splitView_resizeSubviewsWithOldSize(splitView: NSSplitView; oldSize: NSSize); message 'splitView:resizeSubviewsWithOldSize:';
+    function splitView_shouldCollapseSubview_forDoubleClickOnDividerAtIndex(splitView: NSSplitView; subview: NSView; dividerIndex: clong): Boolean; message 'splitView:shouldCollapseSubview:forDoubleClickOnDividerAtIndex:';
+    function splitView_shouldHideDividerAtIndex(splitView: NSSplitView; dividerIndex: clong): Boolean; message 'splitView:shouldHideDividerAtIndex:';
+    procedure splitViewDidResizeSubviews(notification: NSNotification); message 'splitViewDidResizeSubviews:';
+    procedure splitViewWillResizeSubviews(notification: NSNotification); message 'splitViewWillResizeSubviews:';
+  end;
+
+type
+  NSStreamDelegateEventExtensions = objccategory
+    procedure stream_handleEvent(aStream: NSStream; eventCode: NSStreamEvent); message 'stream:handleEvent:';
+  end;
+
+type
+  NSTabViewDelegate = objccategory
+    procedure tabView_didSelectTabViewItem(tabView: NSTabView; tabViewItem: NSTabViewItem); message 'tabView:didSelectTabViewItem:';
+    function tabView_shouldSelectTabViewItem(tabView: NSTabView; tabViewItem: NSTabViewItem): Boolean; message 'tabView:shouldSelectTabViewItem:';
+    procedure tabView_willSelectTabViewItem(tabView: NSTabView; tabViewItem: NSTabViewItem); message 'tabView:willSelectTabViewItem:';
+    procedure tabViewDidChangeNumberOfTabViewItems(TabView: NSTabView); message 'tabViewDidChangeNumberOfTabViewItems:';
+  end;
+
+type
+  NSTableDataSource = objccategory
+    function numberOfRowsInTableView(tableView: NSTableView): clong; message 'numberOfRowsInTableView:';
+    function tableView_acceptDrop_row_dropOperation(tableView: NSTableView; info: id; row: clong; dropOperation: NSTableViewDropOperation): Boolean; message 'tableView:acceptDrop:row:dropOperation:';
+    function tableView_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes(tableView: NSTableView; dropDestination: NSURL; indexSet: NSIndexSet): NSArray; message 'tableView:namesOfPromisedFilesDroppedAtDestination:forDraggedRowsWithIndexes:';
+    function tableView_objectValueForTableColumn_row(tableView: NSTableView; tableColumn: NSTableColumn; row: clong): id; message 'tableView:objectValueForTableColumn:row:';
+    procedure tableView_setObjectValue_forTableColumn_row(tableView: NSTableView; object_: id; tableColumn: NSTableColumn; row: clong); message 'tableView:setObjectValue:forTableColumn:row:';
+    procedure tableView_sortDescriptorsDidChange(tableView: NSTableView; oldDescriptors: NSArray); message 'tableView:sortDescriptorsDidChange:';
+    function tableView_validateDrop_proposedRow_proposedDropOperation(tableView: NSTableView; info: id; row: clong; dropOperation: NSTableViewDropOperation): NSDragOperation; message 'tableView:validateDrop:proposedRow:proposedDropOperation:';
+    function tableView_writeRows_toPasteboard(tableView: NSTableView; rows: NSArray; pboard: NSPasteboard): Boolean; message 'tableView:writeRows:toPasteboard:';
+    function tableView_writeRowsWithIndexes_toPasteboard(tableView: NSTableView; rowIndexes: NSIndexSet; pboard: NSPasteboard): Boolean; message 'tableView:writeRowsWithIndexes:toPasteboard:';
+  end;
+
+type
+  NSTableViewDelegate = objccategory
+    function selectionShouldChangeInTableView(tableView: NSTableView): Boolean; message 'selectionShouldChangeInTableView:';
+    function tableView_dataCellForTableColumn_row(tableView: NSTableView; tableColumn: NSTableColumn; row: clong): NSCell; message 'tableView:dataCellForTableColumn:row:';
+    procedure tableView_didClickTableColumn(tableView: NSTableView; tableColumn: NSTableColumn); message 'tableView:didClickTableColumn:';
+    procedure tableView_didDragTableColumn(tableView: NSTableView; tableColumn: NSTableColumn); message 'tableView:didDragTableColumn:';
+    function tableView_heightOfRow(tableView: NSTableView; row: clong): CGFloat; message 'tableView:heightOfRow:';
+    function tableView_isGroupRow(tableView: NSTableView; row: clong): Boolean; message 'tableView:isGroupRow:';
+    procedure tableView_mouseDownInHeaderOfTableColumn(tableView: NSTableView; tableColumn: NSTableColumn); message 'tableView:mouseDownInHeaderOfTableColumn:';
+    function tableView_nextTypeSelectMatchFromRow_toRow_forString(tableView: NSTableView; startRow: clong; endRow: clong; searchString: NSString): clong; message 'tableView:nextTypeSelectMatchFromRow:toRow:forString:';
+    function tableView_selectionIndexesForProposedSelection(tableView: NSTableView; proposedSelectionIndexes: NSIndexSet): NSIndexSet; message 'tableView:selectionIndexesForProposedSelection:';
+    function tableView_shouldEditTableColumn_row(tableView: NSTableView; tableColumn: NSTableColumn; row: clong): Boolean; message 'tableView:shouldEditTableColumn:row:';
+    function tableView_shouldSelectRow(tableView: NSTableView; row: clong): Boolean; message 'tableView:shouldSelectRow:';
+    function tableView_shouldSelectTableColumn(tableView: NSTableView; tableColumn: NSTableColumn): Boolean; message 'tableView:shouldSelectTableColumn:';
+    function tableView_shouldShowCellExpansionForTableColumn_row(tableView: NSTableView; tableColumn: NSTableColumn; row: clong): Boolean; message 'tableView:shouldShowCellExpansionForTableColumn:row:';
+    function tableView_shouldTrackCell_forTableColumn_row(tableView: NSTableView; cell_: NSCell; tableColumn: NSTableColumn; row: clong): Boolean; message 'tableView:shouldTrackCell:forTableColumn:row:';
+    function tableView_shouldTypeSelectForEvent_withCurrentSearchString(tableView: NSTableView; event: NSEvent; searchString: NSString): Boolean; message 'tableView:shouldTypeSelectForEvent:withCurrentSearchString:';
+    function tableView_toolTipForCell_rect_tableColumn_row_mouseLocation(tableView: NSTableView; cell_: NSCell; rect: NSRectPointer; tableColumn: NSTableColumn; row: clong; mouseLocation: NSPoint): NSString; message 'tableView:toolTipForCell:rect:tableColumn:row:mouseLocation:';
+    function tableView_typeSelectStringForTableColumn_row(tableView: NSTableView; tableColumn: NSTableColumn; row: clong): NSString; message 'tableView:typeSelectStringForTableColumn:row:';
+    procedure tableView_willDisplayCell_forTableColumn_row(tableView: NSTableView; cell_: id; tableColumn: NSTableColumn; row: clong); message 'tableView:willDisplayCell:forTableColumn:row:';
+  end;
+
+type
+  NSTableViewNotifications = objccategory
+    procedure tableViewColumnDidMove(notification: NSNotification); message 'tableViewColumnDidMove:';
+    procedure tableViewColumnDidResize(notification: NSNotification); message 'tableViewColumnDidResize:';
+    procedure tableViewSelectionDidChange(notification: NSNotification); message 'tableViewSelectionDidChange:';
+    procedure tableViewSelectionIsChanging(notification: NSNotification); message 'tableViewSelectionIsChanging:';
+  end;
+
+type
+  NSTextDelegate = objccategory
+    procedure textDidBeginEditing(notification: NSNotification); message 'textDidBeginEditing:';
+    procedure textDidChange(notification: NSNotification); message 'textDidChange:';
+    procedure textDidEndEditing(notification: NSNotification); message 'textDidEndEditing:';
+    function textShouldBeginEditing(textObject: NSText): Boolean; message 'textShouldBeginEditing:';
+    function textShouldEndEditing(textObject: NSText): Boolean; message 'textShouldEndEditing:';
+  end;
+
+type
+  NSTextStorageDelegate = objccategory
+    procedure textStorageDidProcessEditing(notification: NSNotification); message 'textStorageDidProcessEditing:';
+    procedure textStorageWillProcessEditing(notification: NSNotification); message 'textStorageWillProcessEditing:';
+  end;
+
+type
+  NSTextViewDelegate = objccategory
+    procedure textView_clickedOnCell_inRect(textView: NSTextView; cell: id; cellFrame: NSRect); message 'textView:clickedOnCell:inRect:';
+    procedure textView_clickedOnCell_inRect_atIndex(textView: NSTextView; cell: id; cellFrame: NSRect; charIndex: culong); message 'textView:clickedOnCell:inRect:atIndex:';
+    function textView_clickedOnLink(textView: NSTextView; link: id): Boolean; message 'textView:clickedOnLink:';
+    function textView_clickedOnLink_atIndex(textView: NSTextView; link: id; charIndex: culong): Boolean; message 'textView:clickedOnLink:atIndex:';
+    function textView_completions_forPartialWordRange_indexOfSelectedItem(textView: NSTextView; words: NSArray; charRange: NSRange; index: clong): NSArray; message 'textView:completions:forPartialWordRange:indexOfSelectedItem:';
+    function textView_doCommandBySelector(textView: NSTextView; commandSelector: SEL): Boolean; message 'textView:doCommandBySelector:';
+    procedure textView_doubleClickedOnCell_inRect(textView: NSTextView; cell: id; cellFrame: NSRect); message 'textView:doubleClickedOnCell:inRect:';
+    procedure textView_doubleClickedOnCell_inRect_atIndex(textView: NSTextView; cell: id; cellFrame: NSRect; charIndex: culong); message 'textView:doubleClickedOnCell:inRect:atIndex:';
+    procedure textView_draggedCell_inRect_event(view: NSTextView; cell: id; rect: NSRect; event: NSEvent); message 'textView:draggedCell:inRect:event:';
+    procedure textView_draggedCell_inRect_event_atIndex(view: NSTextView; cell: id; rect: NSRect; event: NSEvent; charIndex: culong); message 'textView:draggedCell:inRect:event:atIndex:';
+    function textView_menu_forEvent_atIndex(view: NSTextView; menu_: NSMenu; event: NSEvent; charIndex: culong): NSMenu; message 'textView:menu:forEvent:atIndex:';
+    function textView_shouldChangeTextInRange_replacementString(textView: NSTextView; affectedCharRange: NSRange; replacementString: NSString): Boolean; message 'textView:shouldChangeTextInRange:replacementString:';
+    function textView_shouldChangeTextInRanges_replacementStrings(textView: NSTextView; affectedRanges: NSArray; replacementStrings: NSArray): Boolean; message 'textView:shouldChangeTextInRanges:replacementStrings:';
+    function textView_shouldChangeTypingAttributes_toAttributes(textView: NSTextView; oldTypingAttributes: NSDictionary; newTypingAttributes: NSDictionary): NSDictionary; message 'textView:shouldChangeTypingAttributes:toAttributes:';
+    function textView_shouldSetSpellingState_range(textView: NSTextView; value: clong; affectedCharRange: NSRange): clong; message 'textView:shouldSetSpellingState:range:';
+    function textView_willChangeSelectionFromCharacterRange_toCharacterRange(textView: NSTextView; oldSelectedCharRange: NSRange; newSelectedCharRange: NSRange): NSRange; message 'textView:willChangeSelectionFromCharacterRange:toCharacterRange:';
+    function textView_willChangeSelectionFromCharacterRanges_toCharacterRanges(textView: NSTextView; oldSelectedCharRanges: NSArray; newSelectedCharRanges: NSArray): NSArray; message 'textView:willChangeSelectionFromCharacterRanges:toCharacterRanges:';
+    function textView_willDisplayToolTip_forCharacterAtIndex(textView: NSTextView; toolTip_: NSString; characterIndex: culong): NSString; message 'textView:willDisplayToolTip:forCharacterAtIndex:';
+    function textView_writablePasteboardTypesForCell_atIndex(view: NSTextView; cell: id; charIndex: culong): NSArray; message 'textView:writablePasteboardTypesForCell:atIndex:';
+    function textView_writeCell_atIndex_toPasteboard_type(view: NSTextView; cell: id; charIndex: culong; pboard: NSPasteboard; type_: NSString): Boolean; message 'textView:writeCell:atIndex:toPasteboard:type:';
+    procedure textViewDidChangeSelection(notification: NSNotification); message 'textViewDidChangeSelection:';
+    procedure textViewDidChangeTypingAttributes(notification: NSNotification); message 'textViewDidChangeTypingAttributes:';
+    function undoManagerForTextView(view: NSTextView): NSUndoManager; message 'undoManagerForTextView:';
+  end;
+
+type
+  NSTokenFieldCellDelegate = objccategory
+    function tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem(tokenFieldCell: NSTokenFieldCell; substring: NSString; tokenIndex: clong; selectedIndex: clong): NSArray; message 'tokenFieldCell:completionsForSubstring:indexOfToken:indexOfSelectedItem:';
+    function tokenFieldCell_displayStringForRepresentedObject(tokenFieldCell: NSTokenFieldCell; representedObject_: id): NSString; message 'tokenFieldCell:displayStringForRepresentedObject:';
+    function tokenFieldCell_editingStringForRepresentedObject(tokenFieldCell: NSTokenFieldCell; representedObject_: id): NSString; message 'tokenFieldCell:editingStringForRepresentedObject:';
+    function tokenFieldCell_hasMenuForRepresentedObject(tokenFieldCell: NSTokenFieldCell; representedObject_: id): Boolean; message 'tokenFieldCell:hasMenuForRepresentedObject:';
+    function tokenFieldCell_menuForRepresentedObject(tokenFieldCell: NSTokenFieldCell; representedObject_: id): NSMenu; message 'tokenFieldCell:menuForRepresentedObject:';
+    function tokenFieldCell_readFromPasteboard(tokenFieldCell: NSTokenFieldCell; pboard: NSPasteboard): NSArray; message 'tokenFieldCell:readFromPasteboard:';
+    function tokenFieldCell_representedObjectForEditingString(tokenFieldCell: NSTokenFieldCell; editingString: NSString): id; message 'tokenFieldCell:representedObjectForEditingString:';
+    function tokenFieldCell_shouldAddObjects_atIndex(tokenFieldCell: NSTokenFieldCell; tokens: NSArray; index: culong): NSArray; message 'tokenFieldCell:shouldAddObjects:atIndex:';
+    function tokenFieldCell_styleForRepresentedObject(tokenFieldCell: NSTokenFieldCell; representedObject_: id): NSTokenStyle; message 'tokenFieldCell:styleForRepresentedObject:';
+    function tokenFieldCell_writeRepresentedObjects_toPasteboard(tokenFieldCell: NSTokenFieldCell; objects: NSArray; pboard: NSPasteboard): Boolean; message 'tokenFieldCell:writeRepresentedObjects:toPasteboard:';
+  end;
+
+type
+  NSTokenFieldDelegate = objccategory
+    function tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem(tokenField: NSTokenField; substring: NSString; tokenIndex: clong; selectedIndex: clong): NSArray; message 'tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem:';
+    function tokenField_displayStringForRepresentedObject(tokenField: NSTokenField; representedObject: id): NSString; message 'tokenField:displayStringForRepresentedObject:';
+    function tokenField_editingStringForRepresentedObject(tokenField: NSTokenField; representedObject: id): NSString; message 'tokenField:editingStringForRepresentedObject:';
+    function tokenField_hasMenuForRepresentedObject(tokenField: NSTokenField; representedObject: id): Boolean; message 'tokenField:hasMenuForRepresentedObject:';
+    function tokenField_menuForRepresentedObject(tokenField: NSTokenField; representedObject: id): NSMenu; message 'tokenField:menuForRepresentedObject:';
+    function tokenField_readFromPasteboard(tokenField: NSTokenField; pboard: NSPasteboard): NSArray; message 'tokenField:readFromPasteboard:';
+    function tokenField_representedObjectForEditingString(tokenField: NSTokenField; editingString: NSString): id; message 'tokenField:representedObjectForEditingString:';
+    function tokenField_shouldAddObjects_atIndex(tokenField: NSTokenField; tokens: NSArray; index: culong): NSArray; message 'tokenField:shouldAddObjects:atIndex:';
+    function tokenField_styleForRepresentedObject(tokenField: NSTokenField; representedObject: id): NSTokenStyle; message 'tokenField:styleForRepresentedObject:';
+    function tokenField_writeRepresentedObjects_toPasteboard(tokenField: NSTokenField; objects: NSArray; pboard: NSPasteboard): Boolean; message 'tokenField:writeRepresentedObjects:toPasteboard:';
+  end;
+
+type
+  NSToolbarDelegate = objccategory
+    function toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar(toolbar: NSToolbar; itemIdentifier: NSString; flag: Boolean): NSToolbarItem; message 'toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:';
+    function toolbarAllowedItemIdentifiers(toolbar: NSToolbar): NSArray; message 'toolbarAllowedItemIdentifiers:';
+    function toolbarDefaultItemIdentifiers(toolbar: NSToolbar): NSArray; message 'toolbarDefaultItemIdentifiers:';
+    function toolbarSelectableItemIdentifiers(toolbar: NSToolbar): NSArray; message 'toolbarSelectableItemIdentifiers:';
+  end;
+
+type
+  NSToolbarNotifications = objccategory
+    procedure toolbarDidRemoveItem(notification: NSNotification); message 'toolbarDidRemoveItem:';
+    procedure toolbarWillAddItem(notification: NSNotification); message 'toolbarWillAddItem:';
+  end;
+
+type
+  NSURLConnectionDelegate = objccategory
+    procedure connection_didCancelAuthenticationChallenge(connection: NSURLConnection; challenge: NSURLAuthenticationChallenge); message 'connection:didCancelAuthenticationChallenge:';
+    procedure connection_didFailWithError(connection: NSURLConnection; error: NSError); message 'connection:didFailWithError:';
+    procedure connection_didReceiveAuthenticationChallenge(connection: NSURLConnection; challenge: NSURLAuthenticationChallenge); message 'connection:didReceiveAuthenticationChallenge:';
+    procedure connection_didReceiveData(connection: NSURLConnection; data: NSData); message 'connection:didReceiveData:';
+    procedure connection_didReceiveResponse(connection: NSURLConnection; response: NSURLResponse); message 'connection:didReceiveResponse:';
+    function connection_willCacheResponse(connection: NSURLConnection; cachedResponse: NSCachedURLResponse): NSCachedURLResponse; message 'connection:willCacheResponse:';
+    function connection_willSendRequest_redirectResponse(connection: NSURLConnection; request: NSURLRequest; response: NSURLResponse): NSURLRequest; message 'connection:willSendRequest:redirectResponse:';
+    procedure connectionDidFinishLoading(connection: NSURLConnection); message 'connectionDidFinishLoading:';
+  end;
+
+type
+  NSURLDownloadDelegate = objccategory
+    procedure download_decideDestinationWithSuggestedFilename(download: NSURLDownload; filename: NSString); message 'download:decideDestinationWithSuggestedFilename:';
+    procedure download_didCancelAuthenticationChallenge(download: NSURLDownload; challenge: NSURLAuthenticationChallenge); message 'download:didCancelAuthenticationChallenge:';
+    procedure download_didCreateDestination(download: NSURLDownload; path: NSString); message 'download:didCreateDestination:';
+    procedure download_didFailWithError(download: NSURLDownload; error: NSError); message 'download:didFailWithError:';
+    procedure download_didReceiveAuthenticationChallenge(download: NSURLDownload; challenge: NSURLAuthenticationChallenge); message 'download:didReceiveAuthenticationChallenge:';
+    procedure download_didReceiveDataOfLength(download: NSURLDownload; length: culong); message 'download:didReceiveDataOfLength:';
+    procedure download_didReceiveResponse(download: NSURLDownload; response: NSURLResponse); message 'download:didReceiveResponse:';
+    function download_shouldDecodeSourceDataOfMIMEType(download: NSURLDownload; encodingType: NSString): Boolean; message 'download:shouldDecodeSourceDataOfMIMEType:';
+    procedure download_willResumeWithResponse_fromByte(download: NSURLDownload; response: NSURLResponse; startingByte: clonglong); message 'download:willResumeWithResponse:fromByte:';
+    function download_willSendRequest_redirectResponse(download: NSURLDownload; request_: NSURLRequest; redirectResponse: NSURLResponse): NSURLRequest; message 'download:willSendRequest:redirectResponse:';
+    procedure downloadDidBegin(download: NSURLDownload); message 'downloadDidBegin:';
+    procedure downloadDidFinish(download: NSURLDownload); message 'downloadDidFinish:';
+  end;
+
+type
+  NSWindowDelegate = objccategory
+    function window_shouldDragDocumentWithEvent_from_withPasteboard(window: NSWindow; event: NSEvent; dragImageLocation: NSPoint; pasteboard: NSPasteboard): Boolean; message 'window:shouldDragDocumentWithEvent:from:withPasteboard:';
+    function window_shouldPopUpDocumentPathMenu(window: NSWindow; menu_: NSMenu): Boolean; message 'window:shouldPopUpDocumentPathMenu:';
+    function window_willPositionSheet_usingRect(window: NSWindow; sheet: NSWindow; rect: NSRect): NSRect; message 'window:willPositionSheet:usingRect:';
+    function windowShouldClose(sender: id): Boolean; message 'windowShouldClose:';
+    function windowShouldZoom_toFrame(window: NSWindow; newFrame: NSRect): Boolean; message 'windowShouldZoom:toFrame:';
+    function windowWillResize_toSize(sender: NSWindow; frameSize: NSSize): NSSize; message 'windowWillResize:toSize:';
+    function windowWillReturnFieldEditor_toObject(sender: NSWindow; client: id): id; message 'windowWillReturnFieldEditor:toObject:';
+    function windowWillReturnUndoManager(window: NSWindow): NSUndoManager; message 'windowWillReturnUndoManager:';
+    function windowWillUseStandardFrame_defaultFrame(window: NSWindow; newFrame: NSRect): NSRect; message 'windowWillUseStandardFrame:defaultFrame:';
+  end;
+
+type
+  NSWindowNotifications = objccategory
+    procedure windowDidBecomeKey(notification: NSNotification); message 'windowDidBecomeKey:';
+    procedure windowDidBecomeMain(notification: NSNotification); message 'windowDidBecomeMain:';
+    procedure windowDidChangeScreen(notification: NSNotification); message 'windowDidChangeScreen:';
+    procedure windowDidChangeScreenProfile(notification: NSNotification); message 'windowDidChangeScreenProfile:';
+    procedure windowDidDeminiaturize(notification: NSNotification); message 'windowDidDeminiaturize:';
+    procedure windowDidEndSheet(notification: NSNotification); message 'windowDidEndSheet:';
+    procedure windowDidExpose(notification: NSNotification); message 'windowDidExpose:';
+    procedure windowDidMiniaturize(notification: NSNotification); message 'windowDidMiniaturize:';
+    procedure windowDidMove(notification: NSNotification); message 'windowDidMove:';
+    procedure windowDidResignKey(notification: NSNotification); message 'windowDidResignKey:';
+    procedure windowDidResignMain(notification: NSNotification); message 'windowDidResignMain:';
+    procedure windowDidResize(notification: NSNotification); message 'windowDidResize:';
+    procedure windowDidUpdate(notification: NSNotification); message 'windowDidUpdate:';
+    procedure windowWillBeginSheet(notification: NSNotification); message 'windowWillBeginSheet:';
+    procedure windowWillClose(notification: NSNotification); message 'windowWillClose:';
+    procedure windowWillMiniaturize(notification: NSNotification); message 'windowWillMiniaturize:';
+    procedure windowWillMove(notification: NSNotification); message 'windowWillMove:';
+  end;
+
+type
+  NSXMLParserDelegateEventAdditions = objccategory
+    procedure parser_didEndElement_namespaceURI_qualifiedName(parser: NSXMLParser; elementName: NSString; namespaceURI: NSString; qName: NSString); message 'parser:didEndElement:namespaceURI:qualifiedName:';
+    procedure parser_didEndMappingPrefix(parser: NSXMLParser; prefix: NSString); message 'parser:didEndMappingPrefix:';
+    procedure parser_didStartElement_namespaceURI_qualifiedName_attributes(parser: NSXMLParser; elementName: NSString; namespaceURI: NSString; qName: NSString; attributeDict: NSDictionary); message 'parser:didStartElement:namespaceURI:qualifiedName:attributes:';
+    procedure parser_didStartMappingPrefix_toURI(parser: NSXMLParser; prefix: NSString; namespaceURI: NSString); message 'parser:didStartMappingPrefix:toURI:';
+    procedure parser_foundAttributeDeclarationWithName_forElement_type_defaultValue(parser: NSXMLParser; attributeName: NSString; elementName: NSString; type_: NSString; defaultValue: NSString); message 'parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:';
+    procedure parser_foundCDATA(parser: NSXMLParser; CDATABlock: NSData); message 'parser:foundCDATA:';
+    procedure parser_foundCharacters(parser: NSXMLParser; string_: NSString); message 'parser:foundCharacters:';
+    procedure parser_foundComment(parser: NSXMLParser; comment: NSString); message 'parser:foundComment:';
+    procedure parser_foundElementDeclarationWithName_model(parser: NSXMLParser; elementName: NSString; model: NSString); message 'parser:foundElementDeclarationWithName:model:';
+    procedure parser_foundExternalEntityDeclarationWithName_publicID_systemID(parser: NSXMLParser; name: NSString; publicID_: NSString; systemID_: NSString); message 'parser:foundExternalEntityDeclarationWithName:publicID:systemID:';
+    procedure parser_foundIgnorableWhitespace(parser: NSXMLParser; whitespaceString: NSString); message 'parser:foundIgnorableWhitespace:';
+    procedure parser_foundInternalEntityDeclarationWithName_value(parser: NSXMLParser; name: NSString; value: NSString); message 'parser:foundInternalEntityDeclarationWithName:value:';
+    procedure parser_foundNotationDeclarationWithName_publicID_systemID(parser: NSXMLParser; name: NSString; publicID_: NSString; systemID_: NSString); message 'parser:foundNotationDeclarationWithName:publicID:systemID:';
+    procedure parser_foundProcessingInstructionWithTarget_data(parser: NSXMLParser; target: NSString; data: NSString); message 'parser:foundProcessingInstructionWithTarget:data:';
+    procedure parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName(parser: NSXMLParser; name: NSString; publicID_: NSString; systemID_: NSString; notationName: NSString); message 'parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:';
+    procedure parser_parseErrorOccurred(parser: NSXMLParser; parseError: NSError); message 'parser:parseErrorOccurred:';
+    function parser_resolveExternalEntityName_systemID(parser: NSXMLParser; name: NSString; systemID_: NSString): NSData; message 'parser:resolveExternalEntityName:systemID:';
+    procedure parser_validationErrorOccurred(parser: NSXMLParser; validationError: NSError); message 'parser:validationErrorOccurred:';
+    procedure parserDidEndDocument(parser: NSXMLParser); message 'parserDidEndDocument:';
+    procedure parserDidStartDocument(parser: NSXMLParser); message 'parserDidStartDocument:';
+  end;

+ 57 - 0
packages/cocoaint/src/UndefinedClasses.inc

@@ -0,0 +1,57 @@
+{MISSING CLASSES}
+NSTypesetter = NSObject;
+NSInvocation = id;
+NSPointerFunctions = id;
+NSManagedObjectContext = id;
+NSFetchRequest = id;
+CIColor = id;
+NSPredicateOperator = id;
+
+{"internal" classes that appeared in instance variables - declare as external?}
+NSURLAuthenticationChallengeInternal = id;
+NSURLCredentialInternal = id;
+NSURLCredentialStorageInternal = id;
+NSURLProtectionSpaceInternal = id;
+NSCachedURLResponseInternal = id;
+NSURLCacheInternal = id;
+NSURLConnectionInternal = id;
+NSURLProtocolInternal = id;
+NSURLRequestInternal = id;
+NSURLResponseInternal = id;
+NSHTTPURLResponseInternal = id;
+NSHTTPCookieInternal = id;
+NSHTTPCookieStorageInternal = id;
+NSURLDownloadInternal = id;
+
+{"auxiliary" instance variable classes - external?}
+_NSImageAuxiliary = id;
+_NSViewAuxiliary = id;
+NSWindowAuxiliary = id;
+NSSavePanelAuxiliary = id;
+
+{private instance variable classes - external?}
+NSNavView = id;
+NSMouseTracker = id;
+__NSOVRowEntry = id;
+NSStorage = id;
+NSRunStorage = id;
+NSSortedArray = id;
+NSTabWell = id;
+NSManagedObjectModel = id;
+
+{MISSING PROTOCOLS}
+NSCopyingProtocol = objcprotocol
+end; external;
+
+NSMutableCopyingProtocol = objcprotocol
+end; external;
+
+NSCodingProtocol = objcprotocol
+end; external;
+
+NSValidatedUserInterfaceItemProtocol = objcprotocol
+end; external;
+
+NSUserInterfaceValidationsProtocol = objcprotocol
+end; external;
+

+ 80 - 0
packages/cocoaint/src/UndefinedTypes.inc

@@ -0,0 +1,80 @@
+type
+  __NSAppleEventManagerSuspension = Pointer;
+  CGFloat = Float32;
+  UTF = UInt32;
+  va_list = Pointer; //typedef __darwin_va_list	va_list;
+  NSPointerFunctionsOptions = UInt16;
+  URefCon = UInt32;
+  SRefCon = SInt32;
+  IBAction = Pointer;
+  CIContext = id;
+  CIFilter = id;
+  CIImage = id;
+  CALayer = id;
+  QTMovie = Pointer;
+  GLint = integer;
+  GLenum = integer;
+  GLsizei = integer;
+  GLbitfield = integer;
+  objc_protocol = protocol;
+  
+{ Private instance variable types }
+type
+ _NSImageCellAnimationState = Pointer;
+ _CGLPBufferObject = Pointer;
+ PATHSEGMENT = Pointer;		{from NSBezierPath.h what is this???}
+ 
+{ Pointer C-Types }
+{ Note: the parser appends "Pointer" by default but these may have preferred names in ctypes. }
+type
+ culongPointer = ^culong;
+ UInt32Pointer = Pointer;
+ 
+{ An array of objects }
+type
+  NSObjectArrayOfObjects = array[0..(high(longint) div sizeof(id))-1] of id;
+  NSObjectArrayOfObjectsPtr = ^NSObjectArrayOfObjects;
+
+{ Cocoa types }
+const
+  NSIntegerMax = high(clong);
+  NSIntegerMin = low(clong);
+  NSUIntegerMax = high(culong);
+ 
+const
+ NX_TABLET_POINTER_UNKNOWN = 0;
+ NX_TABLET_POINTER_PEN = 1;
+ NX_TABLET_POINTER_CURSOR = 2;
+ NX_TABLET_POINTER_ERASER = 3;
+ 
+ NX_SUBTYPE_DEFAULT = 0;
+ NX_SUBTYPE_TABLET_POINT = 1;
+ NX_SUBTYPE_TABLET_PROXIMITY = 2;
+ 
+ NX_TABLET_BUTTON_PENTIPMASK = $0001;
+ NX_TABLET_BUTTON_PENLOWERSIDEMASK = $0002;
+ NX_TABLET_BUTTON_PENUPPERSIDEMASK = $0004;
+  
+{ The CFError API is not in MacOSAll! we need to port this for PasCocoa... } 
+type
+  CFErrorRef = Pointer;
+ 
+{ Parser hacks - these types should never exist }
+type
+  char_ = Pointer;
+  aeDesc_ = AEDesc;
+  CIContext_ = id;
+  CIImage_ = id;
+  NSRangePointerPointer = Pointer;
+
+{ Parse bugs - these should have been parsed but were not due to errors }
+type
+  NSHashEnumerator = Pointer; {struct}
+  NSMapEnumerator = Pointer; {struct}
+  NSUncaughtExceptionHandler = Pointer; {function?}
+ 
+{ NSPointerFunctions - missing from where?? }
+const
+  NSPointerFunctionsZeroingWeakMemory = 1 shl 0;
+  NSPointerFunctionsCopyIn = 1 shl 16;
+  NSPointerFunctionsObjectPointerPersonality = 2 shl 8;

+ 181 - 0
packages/cocoaint/src/appkit/AppKit.inc

@@ -0,0 +1,181 @@
+{
+	AppKit.h
+	Application Kit
+	Copyright (c) 1994-2007, Apple Inc.
+	All rights reserved.
+
+	This file is included by all AppKit application source files for easy building.  Using this file is preferred over importing individual files because it will use a precompiled version.
+}
+
+
+{NOTE: These headers were added for compatibility}
+{$include CIColor.inc}
+{include NSValidatedUserInterfaceItem.inc}	// ??? NSValidatedUserInterfaceItem.h is not located in the current version in AppKit.framework.
+
+{From AppKit.h}
+{$include NSResponder.inc} 
+{$include NSGraphicsContext.inc} 
+{$include NSAccessibility.inc} 
+{$include NSAlert.inc} 
+{$include NSAnimationContext.inc} 
+{$include NSAppleScriptExtensions.inc} 
+{$include NSApplication.inc} 
+{$include NSParagraphStyle.inc} 
+{$include NSCell.inc} 
+{$include NSActionCell.inc} 
+{$include NSButtonCell.inc} 
+{$include NSDockTile.inc} 
+{$include NSFont.inc} 
+{$include NSFontDescriptor.inc} 
+{$include NSFontManager.inc} 
+{$include NSFormCell.inc} 
+{$include NSMenu.inc} 
+{$include NSMenuItem.inc} 
+{$include NSColor.inc} 
+{$include NSColorSpace.inc} 
+{$include NSBrowserCell.inc} 
+{$include NSColorList.inc} 
+{$include NSColorPicking.inc} 
+{$include NSColorPicker.inc} 
+{$include NSCursor.inc} 
+{$include NSDocument.inc} 
+{$include NSDocumentController.inc} 
+{$include NSDragging.inc} 
+{$include NSErrors.inc} 
+{$include NSEvent.inc} 
+{$include NSFileWrapper.inc} 
+{$include NSHelpManager.inc} 
+{$include NSGradient.inc} 
+{$include NSGraphics.inc} 
+{$include NSImage.inc} 
+{$include NSImageCell.inc} 
+{$include NSImageRep.inc} 
+{$include NSBitmapImageRep.inc} 
+{$include NSCachedImageRep.inc} 
+{$include NSCIImageRep.inc} 
+{$include NSCustomImageRep.inc} 
+{$include NSEPSImageRep.inc} 
+{$include NSNib.inc} 
+{$include NSNibLoading.inc} 
+{$include NSPrinter.inc} 
+{$include NSSpeechRecognizer.inc} 
+{$include NSSpeechSynthesizer.inc} 
+{$include NSSpellChecker.inc} 
+{$include NSPageLayout.inc} 
+{$include NSPasteboard.inc} 
+{$include NSPrintInfo.inc} 
+{$include NSPrintOperation.inc} 
+{$include NSScreen.inc} 
+{$include NSSliderCell.inc} 
+{$include NSSpellProtocol.inc} 
+{$include NSTextFieldCell.inc} 
+{$include NSTokenFieldCell.inc} 
+{$include NSTrackingArea.inc} 
+{$include NSView.inc} 
+{$include NSScrollView.inc} 
+{$include NSSplitView.inc} 
+{$include NSClipView.inc} 
+{$include NSText.inc} 
+{$include NSViewController.inc} 
+{$include NSControl.inc} 
+{$include NSButton.inc}
+{$include NSPopUpButton.inc} 
+{$include NSImageView.inc} 
+{$include NSColorWell.inc} 
+{$include NSBrowser.inc} 
+{$include NSMatrix.inc}
+{$include NSForm.inc} 
+{$include NSBox.inc}
+{$include NSScroller.inc} 
+{$include NSSegmentedControl.inc} 
+{$include NSSlider.inc} 
+{$include NSTextField.inc} 
+{$include NSTokenField.inc} 
+{$include NSWindow.inc}
+{$include NSPanel.inc} 
+{$include NSColorPanel.inc} 
+{$include NSFontPanel.inc}
+{$include NSPrintPanel.inc} 
+{$include NSSavePanel.inc} 
+{$include NSOpenPanel.inc} 
+{$include NSWindowController.inc} 
+{$include NSWorkspace.inc} 
+{$include NSComboBox.inc} 
+{$include NSComboBoxCell.inc} 
+{$include NSTableColumn.inc} 
+{$include NSTableHeaderCell.inc} 
+{$include NSTableHeaderView.inc} 
+{$include NSTableView.inc} 
+{$include NSOutlineView.inc} 
+{$include NSAttributedString.inc} 
+{$include NSLayoutManager.inc} 
+{$include NSTextStorage.inc} 
+{$include NSTextView.inc} 
+{$include NSTextContainer.inc} 
+{$include NSTextAttachment.inc} 
+{$include NSInputManager.inc} 
+{$include NSInputServer.inc} 
+{$include NSStringDrawing.inc} 
+{$include NSRulerMarker.inc} 
+{$include NSRulerView.inc} 
+{$include NSSecureTextField.inc} 
+{$include NSInterfaceStyle.inc} 
+{------------> NOT FOUND!}{include NSNibDeclarations.inc} 
+{$include NSProgressIndicator.inc} 
+{$include NSTabView.inc} 
+{$include NSTabViewItem.inc} 
+{$include NSMenuView.inc} 
+{$include NSMenuItemCell.inc} 
+{$include NSPopUpButtonCell.inc} 
+{$include NSAffineTransform.inc} 
+{$include NSBezierPath.inc} 
+{$include NSPICTImageRep.inc} 
+{$include NSStatusBar.inc} 
+{$include NSStatusItem.inc} 
+{$include NSSound.inc} 
+{$include NSMovie.inc} 
+{$include NSMovieView.inc} 
+{$include NSPDFImageRep.inc} 
+{$include NSQuickDrawView.inc} 
+{$include NSDrawer.inc} 
+{$include NSOpenGL.inc} 
+{$include NSOpenGLView.inc} 
+{$include NSApplicationScripting.inc} 
+{$include NSDocumentScripting.inc} 
+{$include NSTextStorageScripting.inc} 
+{$include NSToolbar.inc} 
+{$include NSToolbarItem.inc} 
+{$include NSToolbarItemGroup.inc} 
+{$include NSWindowScripting.inc} 
+{$include NSStepper.inc} 
+{$include NSStepperCell.inc} 
+{$include NSGlyphInfo.inc} 
+{$include NSShadow.inc} 
+{$include NSATSTypesetter.inc} 
+{$include NSGlyphGenerator.inc} 
+{$include NSSearchField.inc} 
+{$include NSSearchFieldCell.inc} 
+{$include NSController.inc} 
+{$include NSObjectController.inc} 
+{$include NSArrayController.inc} 
+{$include NSDictionaryController.inc} 
+{$include NSTreeNode.inc} 
+{$include NSTreeController.inc} 
+{$include NSUserDefaultsController.inc} 
+{$include NSKeyValueBinding.inc} 
+{$include NSTextList.inc} 
+{$include NSTextTable.inc} 
+{$include NSDatePickerCell.inc} 
+{$include NSDatePicker.inc} 
+{$include NSLevelIndicatorCell.inc} 
+{$include NSLevelIndicator.inc} 
+{$include NSAnimation.inc} 
+{$include NSPersistentDocument.inc} 
+{$include NSRuleEditor.inc} 
+{$include NSPredicateEditor.inc} 
+{include NSPredicateEditorRowTemplate.inc} 	// ??? this is missing from I don't know where
+{$include NSPathCell.inc} 
+{$include NSPathControl.inc} 
+{$include NSPathComponentCell.inc} 
+{$include NSCollectionView.inc} 
+{$include NSTextInputClient.inc} 

+ 0 - 0
packages/cocoaint/src/appkit/CIColor.inc


+ 125 - 0
packages/cocoaint/src/appkit/NSATSTypesetter.inc

@@ -0,0 +1,125 @@
+{ Parsed from Appkit.framework NSATSTypesetter.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSATSTYPESETTER_PAS_H}
+{$define NSATSTYPESETTER_PAS_H}
+type
+  NSATSTypesetterPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSATSTYPESETTER_PAS_T}
+{$define NSATSTYPESETTER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSATSTYPESETTER_PAS_R}
+{$define NSATSTYPESETTER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSATSTYPESETTER_PAS_F}
+{$define NSATSTYPESETTER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSATSTYPESETTER_PAS_T}
+{$define NSATSTYPESETTER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSATSTypesetter = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSATSTYPESETTER_PAS_C}
+{$define NSATSTYPESETTER_PAS_C}
+
+{ NSATSTypesetter }
+  NSATSTypesetter = objcclass(NSTypesetter)
+  private
+    _attributedString: NSAttributedString;
+    _paragraphGlyphRange: NSRange;
+    _paragraphSeparatorGlyphRange: NSRange;
+    _lineFragmentPadding: CGFloat;
+    _layoutManager: NSLayoutManager;
+    _textContainers: NSArray;
+    _currentTextContainer: NSTextContainer;
+    _currentTextContainerIndex: culong;
+    _currentTextContainerSize: NSSize;
+    _currentParagraphStyle: NSParagraphStyle;
+    __atsReserved: Pointer;
+    __private: id;
+    
+  public
+    class function alloc: NSATSTypesetter; message 'alloc';
+
+    class function sharedTypesetter: id; message 'sharedTypesetter';
+
+    { Category: NSPantherCompatibility }
+    function lineFragmentRectForProposedRect_remainingRect(proposedRect: NSRect; remainingRect: NSRectPointer): NSRect; message 'lineFragmentRectForProposedRect:remainingRect:';
+
+    { Category: NSPrimitiveInterface }
+    function usesFontLeading: Boolean; message 'usesFontLeading';
+    procedure setUsesFontLeading(flag: Boolean); message 'setUsesFontLeading:';
+    function typesetterBehavior: NSTypesetterBehavior; message 'typesetterBehavior';
+    procedure setTypesetterBehavior(behavior: NSTypesetterBehavior); message 'setTypesetterBehavior:';
+    function hyphenationFactor: single; message 'hyphenationFactor';
+    procedure setHyphenationFactor(factor: single); message 'setHyphenationFactor:';
+    function lineFragmentPadding: CGFloat; message 'lineFragmentPadding';
+    procedure setLineFragmentPadding(padding: CGFloat); message 'setLineFragmentPadding:';
+    function substituteFontForFont(originalFont: NSFont): NSFont; message 'substituteFontForFont:';
+    function textTabForGlyphLocation_writingDirection_maxLocation(glyphLocation: CGFloat; direction: NSWritingDirection; maxLocation: CGFloat): NSTextTab; message 'textTabForGlyphLocation:writingDirection:maxLocation:';
+    function bidiProcessingEnabled: Boolean; message 'bidiProcessingEnabled';
+    procedure setBidiProcessingEnabled(flag: Boolean); message 'setBidiProcessingEnabled:';
+    procedure setAttributedString(attrString: NSAttributedString); message 'setAttributedString:';
+    function attributedString: NSAttributedString; message 'attributedString';
+    procedure setParagraphGlyphRange_separatorGlyphRange(paragraphRange: NSRange; paragraphSeparatorRange: NSRange); message 'setParagraphGlyphRange:separatorGlyphRange:';
+    function paragraphGlyphRange: NSRange; message 'paragraphGlyphRange';
+    function paragraphSeparatorGlyphRange: NSRange; message 'paragraphSeparatorGlyphRange';
+    function layoutParagraphAtPoint(var lineFragmentOrigin: NSPoint): culong; message 'layoutParagraphAtPoint:';
+    function lineSpacingAfterGlyphAtIndex_withProposedLineFragmentRect(glyphIndex: culong; rect: NSRect): CGFloat; message 'lineSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:';
+    function paragraphSpacingBeforeGlyphAtIndex_withProposedLineFragmentRect(glyphIndex: culong; rect: NSRect): CGFloat; message 'paragraphSpacingBeforeGlyphAtIndex:withProposedLineFragmentRect:';
+    function paragraphSpacingAfterGlyphAtIndex_withProposedLineFragmentRect(glyphIndex: culong; rect: NSRect): CGFloat; message 'paragraphSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:';
+    function layoutManager: NSLayoutManager; message 'layoutManager';
+    function currentTextContainer: NSTextContainer; message 'currentTextContainer';
+    procedure setHardInvalidation_forGlyphRange(flag: Boolean; glyphRange: NSRange); message 'setHardInvalidation:forGlyphRange:';
+    procedure getLineFragmentRect_usedRect_forParagraphSeparatorGlyphRange_atProposedOrigin(var lineFragmentRect: NSRect; var lineFragmentUsedRect: NSRect; paragraphSeparatorGlyphRange_: NSRange; lineOrigin: NSPoint); message 'getLineFragmentRect:usedRect:forParagraphSeparatorGlyphRange:atProposedOrigin:';
+
+    { Category: NSLayoutPhaseInterface }
+    procedure willSetLineFragmentRect_forGlyphRange_usedRect_baselineOffset(var lineRect: NSRect; glyphRange: NSRange; var usedRect: NSRect; var baselineOffset: CGFloat); message 'willSetLineFragmentRect:forGlyphRange:usedRect:baselineOffset:';
+    function shouldBreakLineByWordBeforeCharacterAtIndex(charIndex: culong): Boolean; message 'shouldBreakLineByWordBeforeCharacterAtIndex:';
+    function shouldBreakLineByHyphenatingBeforeCharacterAtIndex(charIndex: culong): Boolean; message 'shouldBreakLineByHyphenatingBeforeCharacterAtIndex:';
+    function hyphenationFactorForGlyphAtIndex(glyphIndex: culong): single; message 'hyphenationFactorForGlyphAtIndex:';
+    function hyphenCharacterForGlyphAtIndex(glyphIndex: culong): UTF32Char; message 'hyphenCharacterForGlyphAtIndex:';
+    function boundingBoxForControlGlyphAtIndex_forTextContainer_proposedLineFragment_glyphPosition_characterIndex(glyphIndex: culong; textContainer: NSTextContainer; proposedRect: NSRect; glyphPosition: NSPoint; charIndex: culong): NSRect; message 'boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:';
+
+    { Category: NSGlyphStorageInterface }
+    function characterRangeForGlyphRange_actualGlyphRange(glyphRange: NSRange; actualGlyphRange: NSRangePointer): NSRange; message 'characterRangeForGlyphRange:actualGlyphRange:';
+    function glyphRangeForCharacterRange_actualCharacterRange(charRange: NSRange; actualCharRange: NSRangePointer): NSRange; message 'glyphRangeForCharacterRange:actualCharacterRange:';
+    function getGlyphsInRange_glyphs_characterIndexes_glyphInscriptions_elasticBits(glyphsRange: NSRange; var glyphBuffer: NSGlyph; var charIndexBuffer: culong; var inscribeBuffer: NSGlyphInscription; var elasticBuffer: Boolean): culong; message 'getGlyphsInRange:glyphs:characterIndexes:glyphInscriptions:elasticBits:';
+    procedure setLineFragmentRect_forGlyphRange_usedRect_baselineOffset(fragmentRect: NSRect; glyphRange: NSRange; usedRect: NSRect; baselineOffset: CGFloat); message 'setLineFragmentRect:forGlyphRange:usedRect:baselineOffset:';
+    procedure substituteGlyphsInRange_withGlyphs(glyphRange: NSRange; var glyphs: NSGlyph); message 'substituteGlyphsInRange:withGlyphs:';
+    procedure insertGlyph_atGlyphIndex_characterIndex(glyph: NSGlyph; glyphIndex: culong; characterIndex: culong); message 'insertGlyph:atGlyphIndex:characterIndex:';
+    procedure deleteGlyphsInRange(glyphRange: NSRange); message 'deleteGlyphsInRange:';
+    procedure setNotShownAttribute_forGlyphRange(flag: Boolean; glyphRange: NSRange); message 'setNotShownAttribute:forGlyphRange:';
+    procedure setDrawsOutsideLineFragment_forGlyphRange(flag: Boolean; glyphRange: NSRange); message 'setDrawsOutsideLineFragment:forGlyphRange:';
+    procedure setLocation_withAdvancements_forStartOfGlyphRange(location: NSPoint; var advancements: CGFloat; glyphRange: NSRange); message 'setLocation:withAdvancements:forStartOfGlyphRange:';
+    procedure setAttachmentSize_forGlyphRange(attachmentSize: NSSize; glyphRange: NSRange); message 'setAttachmentSize:forGlyphRange:';
+    procedure setBidiLevels_forGlyphRange(var levels: byte; glyphRange: NSRange); message 'setBidiLevels:forGlyphRange:';
+  end; external;
+
+{$endif}
+{$endif}

+ 177 - 0
packages/cocoaint/src/appkit/NSAccessibility.inc

@@ -0,0 +1,177 @@
+{ Parsed from Appkit.framework NSAccessibility.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSACCESSIBILITY_PAS_T}
+{$define NSACCESSIBILITY_PAS_T}
+
+{ CFString constants }
+var
+  NSAccessibilityErrorCodeExceptionInfo: CFStringRef; external name '_NSAccessibilityErrorCodeExceptionInfo';
+  NSAccessibilityRoleAttribute: CFStringRef; external name '_NSAccessibilityRoleAttribute';
+  NSAccessibilityRoleDescriptionAttribute: CFStringRef; external name '_NSAccessibilityRoleDescriptionAttribute';
+  NSAccessibilitySubroleAttribute: CFStringRef; external name '_NSAccessibilitySubroleAttribute';
+  NSAccessibilityHelpAttribute: CFStringRef; external name '_NSAccessibilityHelpAttribute';
+  NSAccessibilityValueAttribute: CFStringRef; external name '_NSAccessibilityValueAttribute';
+  NSAccessibilityMinValueAttribute: CFStringRef; external name '_NSAccessibilityMinValueAttribute';
+  NSAccessibilityMaxValueAttribute: CFStringRef; external name '_NSAccessibilityMaxValueAttribute';
+  NSAccessibilityEnabledAttribute: CFStringRef; external name '_NSAccessibilityEnabledAttribute';
+  NSAccessibilityFocusedAttribute: CFStringRef; external name '_NSAccessibilityFocusedAttribute';
+  NSAccessibilityParentAttribute: CFStringRef; external name '_NSAccessibilityParentAttribute';
+  NSAccessibilityChildrenAttribute: CFStringRef; external name '_NSAccessibilityChildrenAttribute';
+  NSAccessibilityWindowAttribute: CFStringRef; external name '_NSAccessibilityWindowAttribute';
+  NSAccessibilitySelectedChildrenAttribute: CFStringRef; external name '_NSAccessibilitySelectedChildrenAttribute';
+  NSAccessibilityVisibleChildrenAttribute: CFStringRef; external name '_NSAccessibilityVisibleChildrenAttribute';
+  NSAccessibilityPositionAttribute: CFStringRef; external name '_NSAccessibilityPositionAttribute';
+  NSAccessibilitySizeAttribute: CFStringRef; external name '_NSAccessibilitySizeAttribute';
+  NSAccessibilityContentsAttribute: CFStringRef; external name '_NSAccessibilityContentsAttribute';
+  NSAccessibilityTitleAttribute: CFStringRef; external name '_NSAccessibilityTitleAttribute';
+  NSAccessibilityPreviousContentsAttribute: CFStringRef; external name '_NSAccessibilityPreviousContentsAttribute';
+  NSAccessibilityNextContentsAttribute: CFStringRef; external name '_NSAccessibilityNextContentsAttribute';
+  NSAccessibilityHeaderAttribute: CFStringRef; external name '_NSAccessibilityHeaderAttribute';
+  NSAccessibilityEditedAttribute: CFStringRef; external name '_NSAccessibilityEditedAttribute';
+  NSAccessibilityTabsAttribute: CFStringRef; external name '_NSAccessibilityTabsAttribute';
+  NSAccessibilityHorizontalScrollBarAttribute: CFStringRef; external name '_NSAccessibilityHorizontalScrollBarAttribute';
+  NSAccessibilityVerticalScrollBarAttribute: CFStringRef; external name '_NSAccessibilityVerticalScrollBarAttribute';
+  NSAccessibilityOverflowButtonAttribute: CFStringRef; external name '_NSAccessibilityOverflowButtonAttribute';
+  NSAccessibilityIncrementButtonAttribute: CFStringRef; external name '_NSAccessibilityIncrementButtonAttribute';
+  NSAccessibilityDecrementButtonAttribute: CFStringRef; external name '_NSAccessibilityDecrementButtonAttribute';
+  NSAccessibilityFilenameAttribute: CFStringRef; external name '_NSAccessibilityFilenameAttribute';
+  NSAccessibilityExpandedAttribute: CFStringRef; external name '_NSAccessibilityExpandedAttribute';
+  NSAccessibilitySelectedAttribute: CFStringRef; external name '_NSAccessibilitySelectedAttribute';
+  NSAccessibilitySplittersAttribute: CFStringRef; external name '_NSAccessibilitySplittersAttribute';
+  NSAccessibilityDocumentAttribute: CFStringRef; external name '_NSAccessibilityDocumentAttribute';
+  NSAccessibilityTitleUIElementAttribute: CFStringRef; external name '_NSAccessibilityTitleUIElementAttribute';
+  NSAccessibilitySelectedTextAttribute: CFStringRef; external name '_NSAccessibilitySelectedTextAttribute';
+  NSAccessibilitySelectedTextRangeAttribute: CFStringRef; external name '_NSAccessibilitySelectedTextRangeAttribute';
+  NSAccessibilityMainAttribute: CFStringRef; external name '_NSAccessibilityMainAttribute';
+  NSAccessibilityMinimizedAttribute: CFStringRef; external name '_NSAccessibilityMinimizedAttribute';
+  NSAccessibilityCloseButtonAttribute: CFStringRef; external name '_NSAccessibilityCloseButtonAttribute';
+  NSAccessibilityZoomButtonAttribute: CFStringRef; external name '_NSAccessibilityZoomButtonAttribute';
+  NSAccessibilityMinimizeButtonAttribute: CFStringRef; external name '_NSAccessibilityMinimizeButtonAttribute';
+  NSAccessibilityToolbarButtonAttribute: CFStringRef; external name '_NSAccessibilityToolbarButtonAttribute';
+  NSAccessibilityProxyAttribute: CFStringRef; external name '_NSAccessibilityProxyAttribute';
+  NSAccessibilityGrowAreaAttribute: CFStringRef; external name '_NSAccessibilityGrowAreaAttribute';
+  NSAccessibilityMenuBarAttribute: CFStringRef; external name '_NSAccessibilityMenuBarAttribute';
+  NSAccessibilityWindowsAttribute: CFStringRef; external name '_NSAccessibilityWindowsAttribute';
+  NSAccessibilityFrontmostAttribute: CFStringRef; external name '_NSAccessibilityFrontmostAttribute';
+  NSAccessibilityHiddenAttribute: CFStringRef; external name '_NSAccessibilityHiddenAttribute';
+  NSAccessibilityMainWindowAttribute: CFStringRef; external name '_NSAccessibilityMainWindowAttribute';
+  NSAccessibilityFocusedWindowAttribute: CFStringRef; external name '_NSAccessibilityFocusedWindowAttribute';
+  NSAccessibilityFocusedUIElementAttribute: CFStringRef; external name '_NSAccessibilityFocusedUIElementAttribute';
+  NSAccessibilityOrientationAttribute: CFStringRef; external name '_NSAccessibilityOrientationAttribute';
+  NSAccessibilityVerticalOrientationValue: CFStringRef; external name '_NSAccessibilityVerticalOrientationValue';
+  NSAccessibilityHorizontalOrientationValue: CFStringRef; external name '_NSAccessibilityHorizontalOrientationValue';
+  NSAccessibilityColumnTitlesAttribute: CFStringRef; external name '_NSAccessibilityColumnTitlesAttribute';
+  NSAccessibilityRowsAttribute: CFStringRef; external name '_NSAccessibilityRowsAttribute';
+  NSAccessibilityVisibleRowsAttribute: CFStringRef; external name '_NSAccessibilityVisibleRowsAttribute';
+  NSAccessibilitySelectedRowsAttribute: CFStringRef; external name '_NSAccessibilitySelectedRowsAttribute';
+  NSAccessibilityColumnsAttribute: CFStringRef; external name '_NSAccessibilityColumnsAttribute';
+  NSAccessibilityVisibleColumnsAttribute: CFStringRef; external name '_NSAccessibilityVisibleColumnsAttribute';
+  NSAccessibilitySelectedColumnsAttribute: CFStringRef; external name '_NSAccessibilitySelectedColumnsAttribute';
+  NSAccessibilityDisclosingAttribute: CFStringRef; external name '_NSAccessibilityDisclosingAttribute';
+  NSAccessibilityDisclosedRowsAttribute: CFStringRef; external name '_NSAccessibilityDisclosedRowsAttribute';
+  NSAccessibilityDisclosedByRowAttribute: CFStringRef; external name '_NSAccessibilityDisclosedByRowAttribute';
+  NSAccessibilityPressAction: CFStringRef; external name '_NSAccessibilityPressAction';
+  NSAccessibilityIncrementAction: CFStringRef; external name '_NSAccessibilityIncrementAction';
+  NSAccessibilityDecrementAction: CFStringRef; external name '_NSAccessibilityDecrementAction';
+  NSAccessibilityConfirmAction: CFStringRef; external name '_NSAccessibilityConfirmAction';
+  NSAccessibilityPickAction: CFStringRef; external name '_NSAccessibilityPickAction';
+  NSAccessibilityMainWindowChangedNotification: CFStringRef; external name '_NSAccessibilityMainWindowChangedNotification';
+  NSAccessibilityFocusedWindowChangedNotification: CFStringRef; external name '_NSAccessibilityFocusedWindowChangedNotification';
+  NSAccessibilityFocusedUIElementChangedNotification: CFStringRef; external name '_NSAccessibilityFocusedUIElementChangedNotification';
+  NSAccessibilityApplicationActivatedNotification: CFStringRef; external name '_NSAccessibilityApplicationActivatedNotification';
+  NSAccessibilityApplicationDeactivatedNotification: CFStringRef; external name '_NSAccessibilityApplicationDeactivatedNotification';
+  NSAccessibilityApplicationHiddenNotification: CFStringRef; external name '_NSAccessibilityApplicationHiddenNotification';
+  NSAccessibilityApplicationShownNotification: CFStringRef; external name '_NSAccessibilityApplicationShownNotification';
+  NSAccessibilityWindowCreatedNotification: CFStringRef; external name '_NSAccessibilityWindowCreatedNotification';
+  NSAccessibilityWindowMovedNotification: CFStringRef; external name '_NSAccessibilityWindowMovedNotification';
+  NSAccessibilityWindowResizedNotification: CFStringRef; external name '_NSAccessibilityWindowResizedNotification';
+  NSAccessibilityWindowMiniaturizedNotification: CFStringRef; external name '_NSAccessibilityWindowMiniaturizedNotification';
+  NSAccessibilityWindowDeminiaturizedNotification: CFStringRef; external name '_NSAccessibilityWindowDeminiaturizedNotification';
+  NSAccessibilityUIElementDestroyedNotification: CFStringRef; external name '_NSAccessibilityUIElementDestroyedNotification';
+  NSAccessibilityValueChangedNotification: CFStringRef; external name '_NSAccessibilityValueChangedNotification';
+  NSAccessibilityUnknownRole: CFStringRef; external name '_NSAccessibilityUnknownRole';
+  NSAccessibilityButtonRole: CFStringRef; external name '_NSAccessibilityButtonRole';
+  NSAccessibilityRadioButtonRole: CFStringRef; external name '_NSAccessibilityRadioButtonRole';
+  NSAccessibilityCheckBoxRole: CFStringRef; external name '_NSAccessibilityCheckBoxRole';
+  NSAccessibilitySliderRole: CFStringRef; external name '_NSAccessibilitySliderRole';
+  NSAccessibilityTabGroupRole: CFStringRef; external name '_NSAccessibilityTabGroupRole';
+  NSAccessibilityTextFieldRole: CFStringRef; external name '_NSAccessibilityTextFieldRole';
+  NSAccessibilityStaticTextRole: CFStringRef; external name '_NSAccessibilityStaticTextRole';
+  NSAccessibilityTextAreaRole: CFStringRef; external name '_NSAccessibilityTextAreaRole';
+  NSAccessibilityScrollAreaRole: CFStringRef; external name '_NSAccessibilityScrollAreaRole';
+  NSAccessibilityPopUpButtonRole: CFStringRef; external name '_NSAccessibilityPopUpButtonRole';
+  NSAccessibilityMenuButtonRole: CFStringRef; external name '_NSAccessibilityMenuButtonRole';
+  NSAccessibilityTableRole: CFStringRef; external name '_NSAccessibilityTableRole';
+  NSAccessibilityApplicationRole: CFStringRef; external name '_NSAccessibilityApplicationRole';
+  NSAccessibilityGroupRole: CFStringRef; external name '_NSAccessibilityGroupRole';
+  NSAccessibilityRadioGroupRole: CFStringRef; external name '_NSAccessibilityRadioGroupRole';
+  NSAccessibilityListRole: CFStringRef; external name '_NSAccessibilityListRole';
+  NSAccessibilityScrollBarRole: CFStringRef; external name '_NSAccessibilityScrollBarRole';
+  NSAccessibilityValueIndicatorRole: CFStringRef; external name '_NSAccessibilityValueIndicatorRole';
+  NSAccessibilityImageRole: CFStringRef; external name '_NSAccessibilityImageRole';
+  NSAccessibilityMenuBarRole: CFStringRef; external name '_NSAccessibilityMenuBarRole';
+  NSAccessibilityMenuRole: CFStringRef; external name '_NSAccessibilityMenuRole';
+  NSAccessibilityMenuItemRole: CFStringRef; external name '_NSAccessibilityMenuItemRole';
+  NSAccessibilityColumnRole: CFStringRef; external name '_NSAccessibilityColumnRole';
+  NSAccessibilityRowRole: CFStringRef; external name '_NSAccessibilityRowRole';
+  NSAccessibilityToolbarRole: CFStringRef; external name '_NSAccessibilityToolbarRole';
+  NSAccessibilityBusyIndicatorRole: CFStringRef; external name '_NSAccessibilityBusyIndicatorRole';
+  NSAccessibilityProgressIndicatorRole: CFStringRef; external name '_NSAccessibilityProgressIndicatorRole';
+  NSAccessibilityWindowRole: CFStringRef; external name '_NSAccessibilityWindowRole';
+  NSAccessibilityDrawerRole: CFStringRef; external name '_NSAccessibilityDrawerRole';
+  NSAccessibilitySystemWideRole: CFStringRef; external name '_NSAccessibilitySystemWideRole';
+  NSAccessibilityOutlineRole: CFStringRef; external name '_NSAccessibilityOutlineRole';
+  NSAccessibilityIncrementorRole: CFStringRef; external name '_NSAccessibilityIncrementorRole';
+  NSAccessibilityBrowserRole: CFStringRef; external name '_NSAccessibilityBrowserRole';
+  NSAccessibilityComboBoxRole: CFStringRef; external name '_NSAccessibilityComboBoxRole';
+  NSAccessibilitySplitGroupRole: CFStringRef; external name '_NSAccessibilitySplitGroupRole';
+  NSAccessibilitySplitterRole: CFStringRef; external name '_NSAccessibilitySplitterRole';
+  NSAccessibilityColorWellRole: CFStringRef; external name '_NSAccessibilityColorWellRole';
+  NSAccessibilityGrowAreaRole: CFStringRef; external name '_NSAccessibilityGrowAreaRole';
+  NSAccessibilitySheetRole: CFStringRef; external name '_NSAccessibilitySheetRole';
+  NSAccessibilityUnknownSubrole: CFStringRef; external name '_NSAccessibilityUnknownSubrole';
+  NSAccessibilityCloseButtonSubrole: CFStringRef; external name '_NSAccessibilityCloseButtonSubrole';
+  NSAccessibilityZoomButtonSubrole: CFStringRef; external name '_NSAccessibilityZoomButtonSubrole';
+  NSAccessibilityMinimizeButtonSubrole: CFStringRef; external name '_NSAccessibilityMinimizeButtonSubrole';
+  NSAccessibilityToolbarButtonSubrole: CFStringRef; external name '_NSAccessibilityToolbarButtonSubrole';
+  NSAccessibilityTableRowSubrole: CFStringRef; external name '_NSAccessibilityTableRowSubrole';
+  NSAccessibilityOutlineRowSubrole: CFStringRef; external name '_NSAccessibilityOutlineRowSubrole';
+  NSAccessibilitySecureTextFieldSubrole: CFStringRef; external name '_NSAccessibilitySecureTextFieldSubrole';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSACCESSIBILITY_PAS_R}
+{$define NSACCESSIBILITY_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSACCESSIBILITY_PAS_F}
+{$define NSACCESSIBILITY_PAS_F}
+
+{ Functions }
+function NSAccessibilityRoleDescription(var role: NSString; var subrole: NSString): NSString; cdecl; external name 'NSAccessibilityRoleDescription';
+function NSAccessibilityRoleDescriptionForUIElement(element: id): NSString; cdecl; external name 'NSAccessibilityRoleDescriptionForUIElement';
+function NSAccessibilityActionDescription(var action: NSString): NSString; cdecl; external name 'NSAccessibilityActionDescription';
+procedure NSAccessibilityRaiseBadArgumentException(element: id; var attribute: NSString; value: id); cdecl; external name 'NSAccessibilityRaiseBadArgumentException';
+function NSAccessibilityUnignoredAncestor(element: id): id; cdecl; external name 'NSAccessibilityUnignoredAncestor';
+function NSAccessibilityUnignoredDescendant(element: id): id; cdecl; external name 'NSAccessibilityUnignoredDescendant';
+function NSAccessibilityUnignoredChildren(var originalChildren: NSArray): NSArray; cdecl; external name 'NSAccessibilityUnignoredChildren';
+function NSAccessibilityUnignoredChildrenForOnlyChild(originalChild: id): NSArray; cdecl; external name 'NSAccessibilityUnignoredChildrenForOnlyChild';
+procedure NSAccessibilityPostNotification(element: id; var notification: NSString); cdecl; external name 'NSAccessibilityPostNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSACCESSIBILITY_PAS_T}
+{$define NSACCESSIBILITY_PAS_T}
+
+{$endif}
+{$endif}

+ 85 - 0
packages/cocoaint/src/appkit/NSActionCell.inc

@@ -0,0 +1,85 @@
+{ Parsed from Appkit.framework NSActionCell.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSACTIONCELL_PAS_H}
+{$define NSACTIONCELL_PAS_H}
+type
+  NSActionCellPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSACTIONCELL_PAS_T}
+{$define NSACTIONCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSACTIONCELL_PAS_R}
+{$define NSACTIONCELL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSACTIONCELL_PAS_F}
+{$define NSACTIONCELL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSACTIONCELL_PAS_T}
+{$define NSACTIONCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSActionCell = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSACTIONCELL_PAS_C}
+{$define NSACTIONCELL_PAS_C}
+
+{ NSActionCell }
+  NSActionCell = objcclass(NSCell)
+  private
+    __tag: clong;
+    __target: id;
+    __action: SEL;
+    __controlView: id;
+    
+  public
+    class function alloc: NSActionCell; message 'alloc';
+
+    function controlView: NSView; message 'controlView';
+    procedure setControlView(view: NSView); message 'setControlView:';
+    procedure setFont(fontObj: NSFont); message 'setFont:';
+    procedure setAlignment(mode: NSTextAlignment); message 'setAlignment:';
+    procedure setBordered(flag: Boolean); message 'setBordered:';
+    procedure setBezeled(flag: Boolean); message 'setBezeled:';
+    procedure setEnabled(flag: Boolean); message 'setEnabled:';
+    procedure setFloatingPointFormat_left_right(autoRange: Boolean; leftDigits: culong; rightDigits: culong); message 'setFloatingPointFormat:left:right:';
+    procedure setImage(image_: NSImage); message 'setImage:';
+    function target: id; message 'target';
+    procedure setTarget(anObject: id); message 'setTarget:';
+    function action: SEL; message 'action';
+    procedure setAction(aSelector: SEL); message 'setAction:';
+    function tag: clong; message 'tag';
+    procedure setTag(anInt: clong); message 'setTag:';
+    function stringValue: NSString; message 'stringValue';
+    function intValue: cint; message 'intValue';
+    function floatValue: single; message 'floatValue';
+    function doubleValue: double; message 'doubleValue';
+    procedure setObjectValue(obj: id); message 'setObjectValue:';
+    function integerValue: clong; message 'integerValue';
+  end; external;
+
+{$endif}
+{$endif}

+ 88 - 0
packages/cocoaint/src/appkit/NSAffineTransform.inc

@@ -0,0 +1,88 @@
+{ Parsed from Appkit.framework NSAffineTransform.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:30:59 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSAFFINETRANSFORM_PAS_H}
+{$define NSAFFINETRANSFORM_PAS_H}
+type
+  NSAffineTransformPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSAFFINETRANSFORM_PAS_T}
+{$define NSAFFINETRANSFORM_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSAFFINETRANSFORM_PAS_R}
+{$define NSAFFINETRANSFORM_PAS_R}
+
+{ Records }
+type
+  NSAffineTransformStruct = record
+    m11: CGFloat;
+    tX: CGFloat;
+  end;
+
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSAFFINETRANSFORM_PAS_F}
+{$define NSAFFINETRANSFORM_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSAFFINETRANSFORM_PAS_T}
+{$define NSAFFINETRANSFORM_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSAffineTransform = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSAFFINETRANSFORM_PAS_C}
+{$define NSAFFINETRANSFORM_PAS_C}
+
+{ NSAffineTransform }
+  NSAffineTransform = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __transformStruct: NSAffineTransformStruct;
+    
+  public
+    class function alloc: NSAffineTransform; message 'alloc';
+
+    class function transform: NSAffineTransform; message 'transform';
+    function initWithTransform(transform_: NSAffineTransform): id; message 'initWithTransform:';
+    procedure translateXBy_yBy(deltaX: CGFloat; deltaY: CGFloat); message 'translateXBy:yBy:';
+    procedure rotateByDegrees(angle: CGFloat); message 'rotateByDegrees:';
+    procedure rotateByRadians(angle: CGFloat); message 'rotateByRadians:';
+    procedure scaleBy(scale: CGFloat); message 'scaleBy:';
+    procedure scaleXBy_yBy(scaleX: CGFloat; scaleY: CGFloat); message 'scaleXBy:yBy:';
+    procedure invert; message 'invert';
+    procedure appendTransform(transform_: NSAffineTransform); message 'appendTransform:';
+    procedure prependTransform(transform_: NSAffineTransform); message 'prependTransform:';
+    function transformPoint(aPoint: NSPoint): NSPoint; message 'transformPoint:';
+    function transformSize(aSize: NSSize): NSSize; message 'transformSize:';
+    function transformStruct: NSAffineTransformStruct; message 'transformStruct';
+    procedure setTransformStruct(transformStruct_: NSAffineTransformStruct); message 'setTransformStruct:';
+
+    { Category: NSAppKitAdditons }
+    function transformBezierPath(aPath: NSBezierPath): NSBezierPath; message 'transformBezierPath:';
+    procedure set_; message 'set';
+    procedure concat; message 'concat';
+  end; external;
+
+{$endif}
+{$endif}

+ 133 - 0
packages/cocoaint/src/appkit/NSAlert.inc

@@ -0,0 +1,133 @@
+{ Parsed from Appkit.framework NSAlert.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSALERT_PAS_H}
+{$define NSALERT_PAS_H}
+type
+  NSAlertPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSALERT_PAS_T}
+{$define NSALERT_PAS_T}
+
+{ Constants }
+
+const
+  NSWarningAlertStyle = 0;
+  NSInformationalAlertStyle = 1;
+  NSCriticalAlertStyle = 2;
+
+const
+  NSAlertFirstButtonReturn = 1000;
+  NSAlertSecondButtonReturn = 1001;
+  NSAlertThirdButtonReturn = 1002;
+
+{ Types }
+type
+  NSAlertStyle = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSALERT_PAS_R}
+{$define NSALERT_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSALERT_PAS_F}
+{$define NSALERT_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSALERT_PAS_T}
+{$define NSALERT_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSAlert = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSALERT_PAS_C}
+{$define NSALERT_PAS_C}
+
+{ NSAlert }
+  NSAlert = objcclass(NSObject)
+  private
+    __informationField: NSTextField;
+    __first: id;
+    __second: id;
+    __third: id;
+    __buttons: NSArray;
+    __panel: NSPanel;
+    __messageField: id;
+    __imageView: id;
+    __minButtonSize: NSSize;
+    __buttonSpacing: CGFloat;
+    __buttonPadding: CGFloat;
+    __messagePadding: CGFloat;
+    __buttonSpacingMaxX: CGFloat;
+    __buttonSpacingY: CGFloat;
+    __modalDelegate: id;
+    __docWindow: NSWindow;
+    __didEndSelector: SEL;
+    __didDismissSelector: SEL;
+    __unbadgedImage: NSImage;
+    __defaultPanelSize: NSSize;
+    __helpButton: id;
+    __delegate: id;
+    __alertStyle: NSAlertStyle;
+    __helpAnchor: id;
+    __layoutDone: Boolean;
+    __showsHelp: Boolean;
+    __showsSuppressionButton: Boolean;
+    _reserved: Boolean;
+    __suppressionButton: id;
+    __accessoryView: id;
+    
+  public
+    class function alloc: NSAlert; message 'alloc';
+
+    class function alertWithError(error: NSError): NSAlert; message 'alertWithError:';
+    class function alertWithMessageText_defaultButton_alternateButton_otherButton_informativeTextWithFormat(message: NSString; defaultButton: NSString; alternateButton: NSString; otherButton: NSString; format: NSString): NSAlert; message 'alertWithMessageText:defaultButton:alternateButton:otherButton:informativeTextWithFormat:';
+    procedure setMessageText(messageText_: NSString); message 'setMessageText:';
+    procedure setInformativeText(informativeText_: NSString); message 'setInformativeText:';
+    function messageText: NSString; message 'messageText';
+    function informativeText: NSString; message 'informativeText';
+    procedure setIcon(icon_: NSImage); message 'setIcon:';
+    function icon: NSImage; message 'icon';
+    function addButtonWithTitle(title: NSString): NSButton; message 'addButtonWithTitle:';
+    function buttons: NSArray; message 'buttons';
+    procedure setShowsHelp(showsHelp_: Boolean); message 'setShowsHelp:';
+    function showsHelp: Boolean; message 'showsHelp';
+    procedure setHelpAnchor(anchor: NSString); message 'setHelpAnchor:';
+    function helpAnchor: NSString; message 'helpAnchor';
+    procedure setAlertStyle(style: NSAlertStyle); message 'setAlertStyle:';
+    function alertStyle: NSAlertStyle; message 'alertStyle';
+    procedure setDelegate(delegate_: id); message 'setDelegate:';
+    function delegate: id; message 'delegate';
+    procedure setShowsSuppressionButton(flag: Boolean); message 'setShowsSuppressionButton:';
+    function showsSuppressionButton: Boolean; message 'showsSuppressionButton';
+    function suppressionButton: NSButton; message 'suppressionButton';
+    procedure setAccessoryView(view: NSView); message 'setAccessoryView:';
+    function accessoryView: NSView; message 'accessoryView';
+    procedure layout; message 'layout';
+    function runModal: clong; message 'runModal';
+    procedure beginSheetModalForWindow_modalDelegate_didEndSelector_contextInfo(window_: NSWindow; delegate_: id; didEndSelector: SEL; contextInfo: Pointer); message 'beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:';
+    function window: id; message 'window';
+  end; external;
+
+{$endif}
+{$endif}

+ 174 - 0
packages/cocoaint/src/appkit/NSAnimation.inc

@@ -0,0 +1,174 @@
+{ Parsed from Appkit.framework NSAnimation.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSANIMATION_PAS_H}
+{$define NSANIMATION_PAS_H}
+type
+  NSAnimationPointer = Pointer;
+  NSViewAnimationPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSANIMATION_PAS_T}
+{$define NSANIMATION_PAS_T}
+
+{ Constants }
+
+const
+  NSAnimationEaseIn = 0;
+  NSAnimationEaseOut = 1;
+  NSAnimationLinear = 2;
+
+const
+  NSAnimationBlocking = 0;
+  NSAnimationNonblocking = 1;
+  NSAnimationNonblockingThreaded = 2;
+
+{ Types }
+type
+  NSAnimationCurve = culong;
+  NSAnimationBlockingMode = culong;
+  NSAnimationProgress = single;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSANIMATION_PAS_R}
+{$define NSANIMATION_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSANIMATION_PAS_F}
+{$define NSANIMATION_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSANIMATION_PAS_T}
+{$define NSANIMATION_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSAnimatablePropertyContainerProtocol = objcprotocol;
+  NSAnimation = objcclass;
+  NSViewAnimation = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSANIMATION_PAS_C}
+{$define NSANIMATION_PAS_C}
+
+{ NSAnimation }
+  NSAnimation = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __duration: NSTimeInterval;
+    __currentProgress: NSAnimationProgress;
+    __framesPerSecond: single;
+    __delegate: id;
+    __timer: NSTimer;
+    __startTime: NSTimeInterval;
+    __progressMarks: NSMutableArray;
+    __startAnimation: NSAnimation;
+    __stopAnimation: NSAnimation;
+    __nextProgressMark: cint;
+    __aFlags: bitpacked record
+        delegateAnimationShouldStart: 0..1;
+        delegateAnimationDidStop: 0..1;
+        delegateAnimationDidEnd: 0..1;
+        delegateAnimationValueForProgress: 0..1;
+        delegateAnimationDidReachProgressMark: 0..1;
+        animating: 0..1;
+        blocking: 0..1;
+        reserved: 0..((1 shl 25)-1);
+      end;
+    __aSettings: bitpacked record
+        animationCurve: 0..((1 shl 8)-1);
+        animationBlockingMode: 0..((1 shl 2)-1);
+        reserved: 0..((1 shl 22)-1);
+      end;
+    __reserved1: clong;
+    __reserved2: clong;
+    __reserved3: clong;
+    __reserved4: clong;
+    
+  public
+    class function alloc: NSAnimation; message 'alloc';
+
+    function initWithDuration_animationCurve(duration_: NSTimeInterval; animationCurve_: NSAnimationCurve): id; message 'initWithDuration:animationCurve:';
+    procedure startAnimation; message 'startAnimation';
+    procedure stopAnimation; message 'stopAnimation';
+    function isAnimating: Boolean; message 'isAnimating';
+    function currentProgress: NSAnimationProgress; message 'currentProgress';
+    procedure setCurrentProgress(progress: NSAnimationProgress); message 'setCurrentProgress:';
+    procedure setDuration(duration_: NSTimeInterval); message 'setDuration:';
+    function duration: NSTimeInterval; message 'duration';
+    function animationBlockingMode: NSAnimationBlockingMode; message 'animationBlockingMode';
+    procedure setAnimationBlockingMode(animationBlockingMode_: NSAnimationBlockingMode); message 'setAnimationBlockingMode:';
+    procedure setFrameRate(framesPerSecond: single); message 'setFrameRate:';
+    function frameRate: single; message 'frameRate';
+    procedure setAnimationCurve(curve: NSAnimationCurve); message 'setAnimationCurve:';
+    function animationCurve: NSAnimationCurve; message 'animationCurve';
+    function currentValue: single; message 'currentValue';
+    procedure setDelegate(delegate_: id); message 'setDelegate:';
+    function delegate: id; message 'delegate';
+    function progressMarks: NSArray; message 'progressMarks';
+    procedure setProgressMarks(progressMarks_: NSArray); message 'setProgressMarks:';
+    procedure addProgressMark(progressMark: NSAnimationProgress); message 'addProgressMark:';
+    procedure removeProgressMark(progressMark: NSAnimationProgress); message 'removeProgressMark:';
+    procedure startWhenAnimation_reachesProgress(animation: NSAnimation; startProgress: NSAnimationProgress); message 'startWhenAnimation:reachesProgress:';
+    procedure stopWhenAnimation_reachesProgress(animation: NSAnimation; stopProgress: NSAnimationProgress); message 'stopWhenAnimation:reachesProgress:';
+    procedure clearStartAnimation; message 'clearStartAnimation';
+    procedure clearStopAnimation; message 'clearStopAnimation';
+    function runLoopModesForAnimating: NSArray; message 'runLoopModesForAnimating';
+  end; external;
+
+{ NSViewAnimation }
+  NSViewAnimation = objcclass(NSAnimation)
+  private
+    __viewAnimations: NSArray;
+    __viewAnimationInfo: CFMutableDictionaryRef;
+    __windowAnimationInfo: CFMutableDictionaryRef;
+    __reserved4a: culong;
+    __reserved4b: culong;
+    __reserved4c: culong;
+    __vaFlags: bitpacked record
+        reserved: 0..((1 shl 32)-1);
+      end;
+    __reserved5: culong;
+    __reserved6: culong;
+    __reserved7: culong;
+    __reserved8: culong;
+    
+  public
+    class function alloc: NSViewAnimation; message 'alloc';
+
+    function initWithViewAnimations(viewAnimations_: NSArray): id; message 'initWithViewAnimations:';
+    function viewAnimations: NSArray; message 'viewAnimations';
+    procedure setViewAnimations(viewAnimations_: NSArray); message 'setViewAnimations:';
+  end; external;
+
+{$endif}
+{$endif}
+{$ifdef PROTOCOLS}
+{$ifndef NSANIMATION_PAS_P}
+{$define NSANIMATION_PAS_P}
+  
+{ NSAnimatablePropertyContainer Protocol }
+  NSAnimatablePropertyContainerProtocol = objcprotocol
+    function animator: id; message 'animator';
+    function animations: NSDictionary; message 'animations';
+    procedure setAnimations(dict: NSDictionary); message 'setAnimations:';
+    function animationForKey(key: NSString): id; message 'animationForKey:';
+  end; external name 'NSAnimatablePropertyContainer';
+{$endif}
+{$endif}

+ 67 - 0
packages/cocoaint/src/appkit/NSAnimationContext.inc

@@ -0,0 +1,67 @@
+{ Parsed from Appkit.framework NSAnimationContext.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSANIMATIONCONTEXT_PAS_H}
+{$define NSANIMATIONCONTEXT_PAS_H}
+type
+  NSAnimationContextPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSANIMATIONCONTEXT_PAS_T}
+{$define NSANIMATIONCONTEXT_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSANIMATIONCONTEXT_PAS_R}
+{$define NSANIMATIONCONTEXT_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSANIMATIONCONTEXT_PAS_F}
+{$define NSANIMATIONCONTEXT_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSANIMATIONCONTEXT_PAS_T}
+{$define NSANIMATIONCONTEXT_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSAnimationContext = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSANIMATIONCONTEXT_PAS_C}
+{$define NSANIMATIONCONTEXT_PAS_C}
+
+{ NSAnimationContext }
+  NSAnimationContext = objcclass(NSObject)
+  private
+    __duration: NSTimeInterval;
+    __reserved: id;
+    
+  public
+    class function alloc: NSAnimationContext; message 'alloc';
+
+    class procedure beginGrouping; message 'beginGrouping';
+    class procedure endGrouping; message 'endGrouping';
+    class function currentContext: NSAnimationContext; message 'currentContext';
+    procedure setDuration(duration_: NSTimeInterval); message 'setDuration:';
+    function duration: NSTimeInterval; message 'duration';
+  end; external;
+
+{$endif}
+{$endif}

+ 31 - 0
packages/cocoaint/src/appkit/NSAppleScriptExtensions.inc

@@ -0,0 +1,31 @@
+{ Parsed from Appkit.framework NSAppleScriptExtensions.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSAPPLESCRIPTEXTENSIONS_PAS_T}
+{$define NSAPPLESCRIPTEXTENSIONS_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSAPPLESCRIPTEXTENSIONS_PAS_R}
+{$define NSAPPLESCRIPTEXTENSIONS_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSAPPLESCRIPTEXTENSIONS_PAS_F}
+{$define NSAPPLESCRIPTEXTENSIONS_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSAPPLESCRIPTEXTENSIONS_PAS_T}
+{$define NSAPPLESCRIPTEXTENSIONS_PAS_T}
+
+{$endif}
+{$endif}

+ 285 - 0
packages/cocoaint/src/appkit/NSApplication.inc

@@ -0,0 +1,285 @@
+{ Parsed from Appkit.framework NSApplication.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSAPPLICATION_PAS_H}
+{$define NSAPPLICATION_PAS_H}
+type
+  NSApplicationPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSAPPLICATION_PAS_T}
+{$define NSAPPLICATION_PAS_T}
+
+{ Defines }
+const
+  NSAppKitVersionNumber10_0 = 577;
+  NSAppKitVersionNumber10_1 = 620;
+  NSAppKitVersionNumber10_2 = 663;
+  NSAppKitVersionNumber10_2_3 = 663.6;
+  NSAppKitVersionNumber10_3 = 743;
+  NSAppKitVersionNumber10_3_2 = 743.14;
+  NSAppKitVersionNumber10_3_3 = 743.2;
+  NSAppKitVersionNumber10_3_5 = 743.24;
+  NSAppKitVersionNumber10_3_7 = 743.33;
+  NSAppKitVersionNumber10_3_9 = 743.36;
+  NSAppKitVersionNumber10_4 = 824;
+
+{ CFString constants }
+var
+  NSModalPanelRunLoopMode: CFStringRef; external name '_NSModalPanelRunLoopMode';
+  NSEventTrackingRunLoopMode: CFStringRef; external name '_NSEventTrackingRunLoopMode';
+  NSApplicationDidBecomeActiveNotification: CFStringRef; external name '_NSApplicationDidBecomeActiveNotification';
+  NSApplicationDidHideNotification: CFStringRef; external name '_NSApplicationDidHideNotification';
+  NSApplicationDidFinishLaunchingNotification: CFStringRef; external name '_NSApplicationDidFinishLaunchingNotification';
+  NSApplicationDidResignActiveNotification: CFStringRef; external name '_NSApplicationDidResignActiveNotification';
+  NSApplicationDidUnhideNotification: CFStringRef; external name '_NSApplicationDidUnhideNotification';
+  NSApplicationDidUpdateNotification: CFStringRef; external name '_NSApplicationDidUpdateNotification';
+  NSApplicationWillBecomeActiveNotification: CFStringRef; external name '_NSApplicationWillBecomeActiveNotification';
+  NSApplicationWillHideNotification: CFStringRef; external name '_NSApplicationWillHideNotification';
+  NSApplicationWillFinishLaunchingNotification: CFStringRef; external name '_NSApplicationWillFinishLaunchingNotification';
+  NSApplicationWillResignActiveNotification: CFStringRef; external name '_NSApplicationWillResignActiveNotification';
+  NSApplicationWillUnhideNotification: CFStringRef; external name '_NSApplicationWillUnhideNotification';
+  NSApplicationWillUpdateNotification: CFStringRef; external name '_NSApplicationWillUpdateNotification';
+  NSApplicationWillTerminateNotification: CFStringRef; external name '_NSApplicationWillTerminateNotification';
+  NSApplicationDidChangeScreenParametersNotification: CFStringRef; external name '_NSApplicationDidChangeScreenParametersNotification';
+
+{ Constants }
+
+const
+  NSUpdateWindowsRunLoopOrdering = 500000;
+
+const
+  NSCriticalRequest = 0;
+  NSInformationalRequest = 10;
+
+const
+  NSApplicationDelegateReplySuccess = 0;
+  NSApplicationDelegateReplyCancel = 1;
+  NSApplicationDelegateReplyFailure = 2;
+
+const
+  NSTerminateCancel = 0;
+  NSTerminateNow = 1;
+  NSTerminateLater = 2;
+
+const
+  NSPrintingCancelled = 0;
+  NSPrintingSuccess = 1;
+  NSPrintingFailure = 3;
+  NSPrintingReplyLater = 2;
+
+{ Types }
+type
+  NSModalSession = Pointer;
+  NSThreadPrivate = Pointer;
+  _NSThreadPrivate = NSThreadPrivate;
+  NSRequestUserAttentionType = culong;
+  NSApplicationDelegateReply = culong;
+  NSApplicationTerminateReply = culong;
+  NSApplicationPrintReply = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSAPPLICATION_PAS_R}
+{$define NSAPPLICATION_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSAPPLICATION_PAS_F}
+{$define NSAPPLICATION_PAS_F}
+
+{ Functions }
+function NSApplicationMain(argc: cint; var argv: Pointer {array of char}): cint; cdecl; external name 'NSApplicationMain';
+function NSApplicationLoad: Boolean; cdecl; external name 'NSApplicationLoad';
+function NSShowsServicesMenuItem(var_: NSString): Boolean; cdecl; external name 'NSShowsServicesMenuItem';
+function NSSetShowsServicesMenuItem(var_: NSString; enabled: Boolean): clong; cdecl; external name 'NSSetShowsServicesMenuItem';
+procedure NSUpdateDynamicServices; cdecl; external name 'NSUpdateDynamicServices';
+function NSPerformService(var itemName: NSString; var pboard: NSPasteboard): Boolean; cdecl; external name 'NSPerformService';
+procedure NSRegisterServicesProvider(provider: id; var name: NSString); cdecl; external name 'NSRegisterServicesProvider';
+procedure NSUnregisterServicesProvider(var name: NSString); cdecl; external name 'NSUnregisterServicesProvider';
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSAPPLICATION_PAS_T}
+{$define NSAPPLICATION_PAS_T}
+
+{ External symbols }
+var
+  NSAppKitVersionNumber: double; external name '_NSAppKitVersionNumber';
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSApplication = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSAPPLICATION_PAS_C}
+{$define NSAPPLICATION_PAS_C}
+
+{ NSApplication }
+  NSApplication = objcclass(NSResponder, NSUserInterfaceValidationsProtocol)
+  private
+    __currentEvent: NSEvent;
+    __windowList: id;
+    __keyWindow: id;
+    __mainWindow: id;
+    __delegate: id;
+    __hiddenList: id;
+    __hiddenCount: cint;
+    __context: clong;
+    __appleEventSuspensionID: Pointer;
+    __previousKeyWindow: id; {garbage collector: __weak }
+    __unusedApp: cshort;
+    __running: cshort;
+    __appFlags: bitpacked record
+        _hidden: 0..1;
+        _RESERVED1: 0..1;
+        _active: 0..1;
+        _hasBeenRun: 0..1;
+        _doingUnhide: 0..1;
+        _delegateReturnsValidRequestor: 0..1;
+        _deactPending: 0..1;
+        _invalidState: 0..1;
+        _invalidEvent: 0..1;
+        _postedWindowsNeedUpdateNote: 0..1;
+        _wantsToActivate: 0..1;
+        _doingHide: 0..1;
+        _dontSendShouldTerminate: 0..1;
+        _skipWin32DelayedRestoreKeyWindowAfterHide: 0..1;
+        _finishedLaunching: 0..1;
+        _hasEventDelegate: 0..1;
+        _appDying: 0..1;
+        _didNSOpenOrPrint: 0..1;
+        _inDealloc: 0..1;
+        _pendingDidFinish: 0..1;
+        _hasKeyFocus: 0..1;
+        _panelsNonactivating: 0..1;
+        _hiddenOnLaunch: 0..1;
+        _openStatus: 0..((1 shl 2)-1);
+        _batchOrdering: 0..1;
+        _reserved: 0..((1 shl 6)-1);
+      end;
+    __mainMenu: id;
+    __appIcon: id;
+    __nameTable: id;
+    __eventDelegate: id;
+    __threadingSupport: _NSThreadPrivate;
+    
+  public
+    class function alloc: NSApplication; message 'alloc';
+
+    class function sharedApplication: NSApplication; message 'sharedApplication';
+    procedure setDelegate(anObject: id); message 'setDelegate:';
+    function delegate: id; message 'delegate';
+    function context: NSGraphicsContext; message 'context';
+    procedure hide(sender: id); message 'hide:';
+    procedure unhide(sender: id); message 'unhide:';
+    procedure unhideWithoutActivation; message 'unhideWithoutActivation';
+    function windowWithWindowNumber(windowNum: clong): NSWindow; message 'windowWithWindowNumber:';
+    function mainWindow: NSWindow; message 'mainWindow';
+    function keyWindow: NSWindow; message 'keyWindow';
+    function isActive: Boolean; message 'isActive';
+    function isHidden: Boolean; message 'isHidden';
+    function isRunning: Boolean; message 'isRunning';
+    procedure deactivate; message 'deactivate';
+    procedure activateIgnoringOtherApps(flag: Boolean); message 'activateIgnoringOtherApps:';
+    procedure hideOtherApplications(sender: id); message 'hideOtherApplications:';
+    procedure unhideAllApplications(sender: id); message 'unhideAllApplications:';
+    procedure finishLaunching; message 'finishLaunching';
+    procedure run; message 'run';
+    function runModalForWindow(theWindow: NSWindow): clong; message 'runModalForWindow:';
+    procedure stop(sender: id); message 'stop:';
+    procedure stopModal; message 'stopModal';
+    procedure stopModalWithCode(returnCode: clong); message 'stopModalWithCode:';
+    procedure abortModal; message 'abortModal';
+    function modalWindow: NSWindow; message 'modalWindow';
+    function beginModalSessionForWindow(theWindow: NSWindow): NSModalSession; message 'beginModalSessionForWindow:';
+    function runModalSession(session: NSModalSession): clong; message 'runModalSession:';
+    procedure endModalSession(session: NSModalSession); message 'endModalSession:';
+    procedure terminate(sender: id); message 'terminate:';
+    function requestUserAttention(requestType: NSRequestUserAttentionType): clong; message 'requestUserAttention:';
+    procedure cancelUserAttentionRequest(request: clong); message 'cancelUserAttentionRequest:';
+    procedure beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo(sheet: NSWindow; docWindow: NSWindow; modalDelegate: id; didEndSelector: SEL; contextInfo: Pointer); message 'beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:';
+    procedure endSheet(sheet: NSWindow); message 'endSheet:';
+    procedure endSheet_returnCode(sheet: NSWindow; returnCode: clong); message 'endSheet:returnCode:';
+    function runModalForWindow_relativeToWindow(theWindow: NSWindow; docWindow: NSWindow): clong; message 'runModalForWindow:relativeToWindow:';
+    function beginModalSessionForWindow_relativeToWindow(theWindow: NSWindow; docWindow: NSWindow): NSModalSession; message 'beginModalSessionForWindow:relativeToWindow:';
+    function nextEventMatchingMask_untilDate_inMode_dequeue(mask: culong; expiration: NSDate; mode: NSString; deqFlag: Boolean): NSEvent; message 'nextEventMatchingMask:untilDate:inMode:dequeue:';
+    procedure discardEventsMatchingMask_beforeEvent(mask: culong; lastEvent: NSEvent); message 'discardEventsMatchingMask:beforeEvent:';
+    procedure postEvent_atStart(event: NSEvent; flag: Boolean); message 'postEvent:atStart:';
+    function currentEvent: NSEvent; message 'currentEvent';
+    procedure sendEvent(theEvent: NSEvent); message 'sendEvent:';
+    procedure preventWindowOrdering; message 'preventWindowOrdering';
+    function makeWindowsPerform_inOrder(aSelector: SEL; flag: Boolean): NSWindow; message 'makeWindowsPerform:inOrder:';
+    function windows: NSArray; message 'windows';
+    procedure setWindowsNeedUpdate(needUpdate: Boolean); message 'setWindowsNeedUpdate:';
+    procedure updateWindows; message 'updateWindows';
+    procedure setMainMenu(aMenu: NSMenu); message 'setMainMenu:';
+    function mainMenu: NSMenu; message 'mainMenu';
+    procedure setApplicationIconImage(image: NSImage); message 'setApplicationIconImage:';
+    function applicationIconImage: NSImage; message 'applicationIconImage';
+    function dockTile: NSDockTile; message 'dockTile';
+    function sendAction_to_from(theAction: SEL; theTarget: id; sender: id): Boolean; message 'sendAction:to:from:';
+    function targetForAction(theAction: SEL): id; message 'targetForAction:';
+    function targetForAction_to_from(theAction: SEL; theTarget: id; sender: id): id; message 'targetForAction:to:from:';
+    function tryToPerform_with(anAction: SEL; anObject: id): Boolean; message 'tryToPerform:with:';
+    function validRequestorForSendType_returnType(sendType: NSString; returnType: NSString): id; message 'validRequestorForSendType:returnType:';
+    procedure reportException(theException: NSException); message 'reportException:';
+    class procedure detachDrawingThread_toTarget_withObject(selector: SEL; target: id; argument: id); message 'detachDrawingThread:toTarget:withObject:';
+    procedure replyToApplicationShouldTerminate(shouldTerminate: Boolean); message 'replyToApplicationShouldTerminate:';
+    procedure replyToOpenOrPrint(reply: NSApplicationDelegateReply); message 'replyToOpenOrPrint:';
+    procedure orderFrontCharacterPalette(sender: id); message 'orderFrontCharacterPalette:';
+
+    { Category: NSWindowsMenu }
+    procedure setWindowsMenu(aMenu: NSMenu); message 'setWindowsMenu:';
+    function windowsMenu: NSMenu; message 'windowsMenu';
+    procedure arrangeInFront(sender: id); message 'arrangeInFront:';
+    procedure removeWindowsItem(win: NSWindow); message 'removeWindowsItem:';
+    procedure addWindowsItem_title_filename(win: NSWindow; aString: NSString; isFilename: Boolean); message 'addWindowsItem:title:filename:';
+    procedure changeWindowsItem_title_filename(win: NSWindow; aString: NSString; isFilename: Boolean); message 'changeWindowsItem:title:filename:';
+    procedure updateWindowsItem(win: NSWindow); message 'updateWindowsItem:';
+    procedure miniaturizeAll(sender: id); message 'miniaturizeAll:';
+
+    { Category: NSServicesMenu }
+    procedure setServicesMenu(aMenu: NSMenu); message 'setServicesMenu:';
+    function servicesMenu: NSMenu; message 'servicesMenu';
+    procedure registerServicesMenuSendTypes_returnTypes(sendTypes: NSArray; returnTypes: NSArray); message 'registerServicesMenuSendTypes:returnTypes:';
+
+    { Category: NSServicesHandling }
+    procedure setServicesProvider(provider: id); message 'setServicesProvider:';
+    function servicesProvider: id; message 'servicesProvider';
+
+    { Category: NSStandardAboutPanel }
+    procedure orderFrontStandardAboutPanel(sender: id); message 'orderFrontStandardAboutPanel:';
+    procedure orderFrontStandardAboutPanelWithOptions(optionsDictionary: NSDictionary); message 'orderFrontStandardAboutPanelWithOptions:';
+
+    { Category: NSApplicationHelpExtension }
+    procedure activateContextHelpMode(sender: id); message 'activateContextHelpMode:';
+    procedure showHelp(sender: id); message 'showHelp:';
+
+    { Category: NSPageLayoutPanel }
+    procedure runPageLayout(sender: id); message 'runPageLayout:';
+
+    { Category: NSColorPanel }
+    procedure orderFrontColorPanel(sender: id); message 'orderFrontColorPanel:';
+
+    { Category: NSScripting }
+    function orderedDocuments: NSArray; message 'orderedDocuments';
+    function orderedWindows: NSArray; message 'orderedWindows';
+  end; external;
+
+{$endif}
+{$endif}

+ 31 - 0
packages/cocoaint/src/appkit/NSApplicationScripting.inc

@@ -0,0 +1,31 @@
+{ Parsed from Appkit.framework NSApplicationScripting.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSAPPLICATIONSCRIPTING_PAS_T}
+{$define NSAPPLICATIONSCRIPTING_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSAPPLICATIONSCRIPTING_PAS_R}
+{$define NSAPPLICATIONSCRIPTING_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSAPPLICATIONSCRIPTING_PAS_F}
+{$define NSAPPLICATIONSCRIPTING_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSAPPLICATIONSCRIPTING_PAS_T}
+{$define NSAPPLICATIONSCRIPTING_PAS_T}
+
+{$endif}
+{$endif}

+ 134 - 0
packages/cocoaint/src/appkit/NSArrayController.inc

@@ -0,0 +1,134 @@
+{ Parsed from Appkit.framework NSArrayController.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSARRAYCONTROLLER_PAS_H}
+{$define NSARRAYCONTROLLER_PAS_H}
+type
+  NSArrayControllerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSARRAYCONTROLLER_PAS_T}
+{$define NSARRAYCONTROLLER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSARRAYCONTROLLER_PAS_R}
+{$define NSARRAYCONTROLLER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSARRAYCONTROLLER_PAS_F}
+{$define NSARRAYCONTROLLER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSARRAYCONTROLLER_PAS_T}
+{$define NSARRAYCONTROLLER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSArrayController = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSARRAYCONTROLLER_PAS_C}
+{$define NSARRAYCONTROLLER_PAS_C}
+
+{ NSArrayController }
+  NSArrayController = objcclass(NSObjectController)
+  private
+    __reserved4: Pointer;
+    __rearrangementExtensions: id;
+    __temporaryWorkObjects: NSMutableArray;
+    __arrayControllerFlags: bitpacked record
+        _avoidsEmptySelection: 0..1;
+        _preservesSelection: 0..1;
+        _selectsInsertedObjects: 0..1;
+        _alwaysUsesMultipleValuesMarker: 0..1;
+        _refreshesAllModelObjects: 0..1;
+        _filterRestrictsInsertion: 0..1;
+        _overridesArrangeObjects: 0..1;
+        _overridesDidChangeArrangementCriteria: 0..1;
+        _explicitlyCannotInsert: 0..1;
+        _generatedEmptyArray: 0..1;
+        _isObservingKeyPathsThroughArrangedObjects: 0..1;
+        _arrangedObjectsIsMutable: 0..1;
+        _clearsFilterPredicateOnInsertion: 0..1;
+        _skipSortingAfterFetch: 0..1;
+        _automaticallyRearrangesObjects: 0..1;
+        _reservedArrayController: 0..((1 shl 17)-1);
+      end;
+    __observedIndexHint: culong;
+    __selectionIndexes: NSMutableIndexSet;
+    __objects: NSMutableArray;
+    __cachedSelectedIndexes: NSIndexSet;
+    __cachedSelectedObjects: NSArray;
+    __arrangedObjects: NSArray;
+    
+  public
+    class function alloc: NSArrayController; message 'alloc';
+
+    procedure rearrangeObjects; message 'rearrangeObjects';
+    procedure setAutomaticallyRearrangesObjects(flag: Boolean); message 'setAutomaticallyRearrangesObjects:';
+    function automaticallyRearrangesObjects: Boolean; message 'automaticallyRearrangesObjects';
+    function automaticRearrangementKeyPaths: NSArray; message 'automaticRearrangementKeyPaths';
+    procedure didChangeArrangementCriteria; message 'didChangeArrangementCriteria';
+    procedure setSortDescriptors(sortDescriptors_: NSArray); message 'setSortDescriptors:';
+    function sortDescriptors: NSArray; message 'sortDescriptors';
+    procedure setFilterPredicate(filterPredicate_: NSPredicate); message 'setFilterPredicate:';
+    function filterPredicate: NSPredicate; message 'filterPredicate';
+    procedure setClearsFilterPredicateOnInsertion(flag: Boolean); message 'setClearsFilterPredicateOnInsertion:';
+    function clearsFilterPredicateOnInsertion: Boolean; message 'clearsFilterPredicateOnInsertion';
+    function arrangeObjects(objects: NSArray): NSArray; message 'arrangeObjects:';
+    function arrangedObjects: id; message 'arrangedObjects';
+    procedure setAvoidsEmptySelection(flag: Boolean); message 'setAvoidsEmptySelection:';
+    function avoidsEmptySelection: Boolean; message 'avoidsEmptySelection';
+    procedure setPreservesSelection(flag: Boolean); message 'setPreservesSelection:';
+    function preservesSelection: Boolean; message 'preservesSelection';
+    procedure setSelectsInsertedObjects(flag: Boolean); message 'setSelectsInsertedObjects:';
+    function selectsInsertedObjects: Boolean; message 'selectsInsertedObjects';
+    procedure setAlwaysUsesMultipleValuesMarker(flag: Boolean); message 'setAlwaysUsesMultipleValuesMarker:';
+    function alwaysUsesMultipleValuesMarker: Boolean; message 'alwaysUsesMultipleValuesMarker';
+    function setSelectionIndexes(indexes: NSIndexSet): Boolean; message 'setSelectionIndexes:';
+    function selectionIndexes: NSIndexSet; message 'selectionIndexes';
+    function setSelectionIndex(index: culong): Boolean; message 'setSelectionIndex:';
+    function selectionIndex: culong; message 'selectionIndex';
+    function addSelectionIndexes(indexes: NSIndexSet): Boolean; message 'addSelectionIndexes:';
+    function removeSelectionIndexes(indexes: NSIndexSet): Boolean; message 'removeSelectionIndexes:';
+    function setSelectedObjects(objects: NSArray): Boolean; message 'setSelectedObjects:';
+    function selectedObjects: NSArray; message 'selectedObjects';
+    function addSelectedObjects(objects: NSArray): Boolean; message 'addSelectedObjects:';
+    function removeSelectedObjects(objects: NSArray): Boolean; message 'removeSelectedObjects:';
+    procedure add(sender: id); message 'add:';
+    procedure remove(sender: id); message 'remove:';
+    procedure insert(sender: id); message 'insert:';
+    function canInsert: Boolean; message 'canInsert';
+    procedure selectNext(sender: id); message 'selectNext:';
+    procedure selectPrevious(sender: id); message 'selectPrevious:';
+    function canSelectNext: Boolean; message 'canSelectNext';
+    function canSelectPrevious: Boolean; message 'canSelectPrevious';
+    procedure addObject(object_: id); message 'addObject:';
+    procedure addObjects(objects: NSArray); message 'addObjects:';
+    procedure insertObject_atArrangedObjectIndex(object_: id; index: culong); message 'insertObject:atArrangedObjectIndex:';
+    procedure insertObjects_atArrangedObjectIndexes(objects: NSArray; indexes: NSIndexSet); message 'insertObjects:atArrangedObjectIndexes:';
+    procedure removeObjectAtArrangedObjectIndex(index: culong); message 'removeObjectAtArrangedObjectIndex:';
+    procedure removeObjectsAtArrangedObjectIndexes(indexes: NSIndexSet); message 'removeObjectsAtArrangedObjectIndexes:';
+    procedure removeObject(object_: id); message 'removeObject:';
+    procedure removeObjects(objects: NSArray); message 'removeObjects:';
+  end; external;
+
+{$endif}
+{$endif}

+ 216 - 0
packages/cocoaint/src/appkit/NSAttributedString.inc

@@ -0,0 +1,216 @@
+{ Parsed from Appkit.framework NSAttributedString.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:30:59 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSATTRIBUTEDSTRING_PAS_H}
+{$define NSATTRIBUTEDSTRING_PAS_H}
+type
+  NSAttributedStringPointer = Pointer;
+  NSMutableAttributedStringPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSATTRIBUTEDSTRING_PAS_T}
+{$define NSATTRIBUTEDSTRING_PAS_T}
+
+{ CFString constants }
+var
+  NSFontAttributeName: CFStringRef; external name '_NSFontAttributeName';
+  NSParagraphStyleAttributeName: CFStringRef; external name '_NSParagraphStyleAttributeName';
+  NSForegroundColorAttributeName: CFStringRef; external name '_NSForegroundColorAttributeName';
+  NSUnderlineStyleAttributeName: CFStringRef; external name '_NSUnderlineStyleAttributeName';
+  NSSuperscriptAttributeName: CFStringRef; external name '_NSSuperscriptAttributeName';
+  NSBackgroundColorAttributeName: CFStringRef; external name '_NSBackgroundColorAttributeName';
+  NSAttachmentAttributeName: CFStringRef; external name '_NSAttachmentAttributeName';
+  NSLigatureAttributeName: CFStringRef; external name '_NSLigatureAttributeName';
+  NSBaselineOffsetAttributeName: CFStringRef; external name '_NSBaselineOffsetAttributeName';
+  NSKernAttributeName: CFStringRef; external name '_NSKernAttributeName';
+  NSLinkAttributeName: CFStringRef; external name '_NSLinkAttributeName';
+  NSCharacterShapeAttributeName: CFStringRef; external name '_NSCharacterShapeAttributeName';
+  NSGlyphInfoAttributeName: CFStringRef; external name '_NSGlyphInfoAttributeName';
+  NSPlainTextDocumentType: CFStringRef; external name '_NSPlainTextDocumentType';
+  NSRTFTextDocumentType: CFStringRef; external name '_NSRTFTextDocumentType';
+  NSRTFDTextDocumentType: CFStringRef; external name '_NSRTFDTextDocumentType';
+  NSMacSimpleTextDocumentType: CFStringRef; external name '_NSMacSimpleTextDocumentType';
+  NSHTMLTextDocumentType: CFStringRef; external name '_NSHTMLTextDocumentType';
+
+{ Constants }
+
+const
+  NSUnderlineStyleNone = $00;
+  NSUnderlineStyleSingle = $01;
+  NSUnderlineStyleThick = $02;
+  NSUnderlineStyleDouble = $09;
+
+const
+  NSUnderlinePatternSolid = $0000;
+  NSUnderlinePatternDot = $0100;
+  NSUnderlinePatternDash = $0200;
+  NSUnderlinePatternDashDot = $0300;
+  NSUnderlinePatternDashDotDot = $0400;
+
+const
+  NSSpellingStateSpellingFlag = 1  shl  0;
+  NSSpellingStateGrammarFlag = 1  shl  1;
+
+const
+  NSNoUnderlineStyle = 0;
+  NSSingleUnderlineStyle = 0;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSATTRIBUTEDSTRING_PAS_R}
+{$define NSATTRIBUTEDSTRING_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSATTRIBUTEDSTRING_PAS_F}
+{$define NSATTRIBUTEDSTRING_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSATTRIBUTEDSTRING_PAS_T}
+{$define NSATTRIBUTEDSTRING_PAS_T}
+
+{ External symbols }
+var
+  NSUnderlineByWordMask: NSUInteger; external name '_NSUnderlineByWordMask';
+  NSUnderlineStrikethroughMask: NSUInteger; external name '_NSUnderlineStrikethroughMask';
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSAttributedString = objcclass;
+  NSMutableAttributedString = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSATTRIBUTEDSTRING_PAS_C}
+{$define NSATTRIBUTEDSTRING_PAS_C}
+
+{ NSAttributedString }
+  NSAttributedString = objcclass(NSObject, NSCopyingProtocol, NSMutableCopyingProtocol, NSCodingProtocol)
+    
+  public
+    class function alloc: NSAttributedString; message 'alloc';
+
+    function string_: NSString; message 'string';
+    function attributesAtIndex_effectiveRange(location: culong; range: NSRangePointer): NSDictionary; message 'attributesAtIndex:effectiveRange:';
+
+    { Category: NSExtendedAttributedString }
+    function length: culong; message 'length';
+    function attribute_atIndex_effectiveRange(attrName: NSString; location: culong; range: NSRangePointer): id; message 'attribute:atIndex:effectiveRange:';
+    function attributedSubstringFromRange(range: NSRange): NSAttributedString; message 'attributedSubstringFromRange:';
+    function attributesAtIndex_longestEffectiveRange_inRange(location: culong; range: NSRangePointer; rangeLimit: NSRange): NSDictionary; message 'attributesAtIndex:longestEffectiveRange:inRange:';
+    function attribute_atIndex_longestEffectiveRange_inRange(attrName: NSString; location: culong; range: NSRangePointer; rangeLimit: NSRange): id; message 'attribute:atIndex:longestEffectiveRange:inRange:';
+    function isEqualToAttributedString(other: NSAttributedString): Boolean; message 'isEqualToAttributedString:';
+    function initWithString(str: NSString): id; message 'initWithString:';
+    function initWithString_attributes(str: NSString; attrs: NSDictionary): id; message 'initWithString:attributes:';
+    function initWithAttributedString(attrStr: NSAttributedString): id; message 'initWithAttributedString:';
+
+    { Category: NSAttributedStringKitAdditions }
+    function fontAttributesInRange(range: NSRange): NSDictionary; message 'fontAttributesInRange:';
+    function rulerAttributesInRange(range: NSRange): NSDictionary; message 'rulerAttributesInRange:';
+    function containsAttachments: Boolean; message 'containsAttachments';
+    function lineBreakBeforeIndex_withinRange(location: culong; aRange: NSRange): culong; message 'lineBreakBeforeIndex:withinRange:';
+    function lineBreakByHyphenatingBeforeIndex_withinRange(location: culong; aRange: NSRange): culong; message 'lineBreakByHyphenatingBeforeIndex:withinRange:';
+    function doubleClickAtIndex(location: culong): NSRange; message 'doubleClickAtIndex:';
+    function nextWordFromIndex_forward(location: culong; isForward: Boolean): culong; message 'nextWordFromIndex:forward:';
+    function URLAtIndex_effectiveRange(location: culong; effectiveRange: NSRangePointer): NSURL; message 'URLAtIndex:effectiveRange:';
+    class function textTypes: NSArray; message 'textTypes';
+    class function textUnfilteredTypes: NSArray; message 'textUnfilteredTypes';
+    function rangeOfTextBlock_atIndex(block: NSTextBlock; location: culong): NSRange; message 'rangeOfTextBlock:atIndex:';
+    function rangeOfTextTable_atIndex(table: NSTextTable; location: culong): NSRange; message 'rangeOfTextTable:atIndex:';
+    function rangeOfTextList_atIndex(list: NSTextList; location: culong): NSRange; message 'rangeOfTextList:atIndex:';
+    function itemNumberInTextList_atIndex(list: NSTextList; location: culong): clong; message 'itemNumberInTextList:atIndex:';
+    function initWithURL_options_documentAttributes_error(url: NSURL; options: NSDictionary; var dict: NSDictionary; var error: NSError): id; message 'initWithURL:options:documentAttributes:error:';
+    function initWithData_options_documentAttributes_error(data: NSData; options: NSDictionary; var dict: NSDictionary; var error: NSError): id; message 'initWithData:options:documentAttributes:error:';
+    function initWithPath_documentAttributes(path: NSString; var dict: NSDictionary): id; message 'initWithPath:documentAttributes:';
+    function initWithURL_documentAttributes(url: NSURL; var dict: NSDictionary): id; message 'initWithURL:documentAttributes:';
+    function initWithRTF_documentAttributes(data: NSData; var dict: NSDictionary): id; message 'initWithRTF:documentAttributes:';
+    function initWithRTFD_documentAttributes(data: NSData; var dict: NSDictionary): id; message 'initWithRTFD:documentAttributes:';
+    function initWithHTML_documentAttributes(data: NSData; var dict: NSDictionary): id; message 'initWithHTML:documentAttributes:';
+    function initWithHTML_baseURL_documentAttributes(data: NSData; base: NSURL; var dict: NSDictionary): id; message 'initWithHTML:baseURL:documentAttributes:';
+    function initWithDocFormat_documentAttributes(data: NSData; var dict: NSDictionary): id; message 'initWithDocFormat:documentAttributes:';
+    function initWithHTML_options_documentAttributes(data: NSData; options: NSDictionary; var dict: NSDictionary): id; message 'initWithHTML:options:documentAttributes:';
+    function initWithRTFDFileWrapper_documentAttributes(wrapper: NSFileWrapper; var dict: NSDictionary): id; message 'initWithRTFDFileWrapper:documentAttributes:';
+    function dataFromRange_documentAttributes_error(range: NSRange; dict: NSDictionary; var error: NSError): NSData; message 'dataFromRange:documentAttributes:error:';
+    function fileWrapperFromRange_documentAttributes_error(range: NSRange; dict: NSDictionary; var error: NSError): NSFileWrapper; message 'fileWrapperFromRange:documentAttributes:error:';
+    function RTFFromRange_documentAttributes(range: NSRange; dict: NSDictionary): NSData; message 'RTFFromRange:documentAttributes:';
+    function RTFDFromRange_documentAttributes(range: NSRange; dict: NSDictionary): NSData; message 'RTFDFromRange:documentAttributes:';
+    function RTFDFileWrapperFromRange_documentAttributes(range: NSRange; dict: NSDictionary): NSFileWrapper; message 'RTFDFileWrapperFromRange:documentAttributes:';
+    function docFormatFromRange_documentAttributes(range: NSRange; dict: NSDictionary): NSData; message 'docFormatFromRange:documentAttributes:';
+
+    { Category: NSDeprecatedKitAdditions }
+    class function textFileTypes: NSArray; message 'textFileTypes';
+    class function textPasteboardTypes: NSArray; message 'textPasteboardTypes';
+    class function textUnfilteredFileTypes: NSArray; message 'textUnfilteredFileTypes';
+    class function textUnfilteredPasteboardTypes: NSArray; message 'textUnfilteredPasteboardTypes';
+
+    { Category: NSAttributedStringAttachmentConveniences }
+    class function attributedStringWithAttachment(attachment: NSTextAttachment): NSAttributedString; message 'attributedStringWithAttachment:';
+
+    { Category: NSStringDrawing }
+    function size: NSSize; message 'size';
+    procedure drawAtPoint(point: NSPoint); message 'drawAtPoint:';
+    procedure drawInRect(rect: NSRect); message 'drawInRect:';
+
+    { Category: NSExtendedStringDrawing }
+    procedure drawWithRect_options(rect: NSRect; options: NSStringDrawingOptions); message 'drawWithRect:options:';
+    function boundingRectWithSize_options(size_: NSSize; options: NSStringDrawingOptions): NSRect; message 'boundingRectWithSize:options:';
+  end; external;
+
+{ NSMutableAttributedString }
+  NSMutableAttributedString = objcclass(NSAttributedString)
+    
+  public
+    class function alloc: NSMutableAttributedString; message 'alloc';
+
+    procedure replaceCharactersInRange_withString(range: NSRange; str: NSString); message 'replaceCharactersInRange:withString:';
+    procedure setAttributes_range(attrs: NSDictionary; range: NSRange); message 'setAttributes:range:';
+
+    { Category: NSExtendedMutableAttributedString }
+    function mutableString: NSMutableString; message 'mutableString';
+    procedure addAttribute_value_range(name: NSString; value: id; range: NSRange); message 'addAttribute:value:range:';
+    procedure addAttributes_range(attrs: NSDictionary; range: NSRange); message 'addAttributes:range:';
+    procedure removeAttribute_range(name: NSString; range: NSRange); message 'removeAttribute:range:';
+    procedure replaceCharactersInRange_withAttributedString(range: NSRange; attrString: NSAttributedString); message 'replaceCharactersInRange:withAttributedString:';
+    procedure insertAttributedString_atIndex(attrString: NSAttributedString; loc: culong); message 'insertAttributedString:atIndex:';
+    procedure appendAttributedString(attrString: NSAttributedString); message 'appendAttributedString:';
+    procedure deleteCharactersInRange(range: NSRange); message 'deleteCharactersInRange:';
+    procedure setAttributedString(attrString: NSAttributedString); message 'setAttributedString:';
+    procedure beginEditing; message 'beginEditing';
+    procedure endEditing; message 'endEditing';
+
+    { Category: NSMutableAttributedStringKitAdditions }
+    function readFromURL_options_documentAttributes_error(url: NSURL; opts: NSDictionary; var dict: NSDictionary; var error: NSError): Boolean; message 'readFromURL:options:documentAttributes:error:';
+    function readFromData_options_documentAttributes_error(data: NSData; opts: NSDictionary; var dict: NSDictionary; var error: NSError): Boolean; message 'readFromData:options:documentAttributes:error:';
+    function readFromURL_options_documentAttributes(url: NSURL; options: NSDictionary; var dict: NSDictionary): Boolean; message 'readFromURL:options:documentAttributes:';
+    function readFromData_options_documentAttributes(data: NSData; options: NSDictionary; var dict: NSDictionary): Boolean; message 'readFromData:options:documentAttributes:';
+    procedure superscriptRange(range: NSRange); message 'superscriptRange:';
+    procedure subscriptRange(range: NSRange); message 'subscriptRange:';
+    procedure unscriptRange(range: NSRange); message 'unscriptRange:';
+    procedure applyFontTraits_range(traitMask: NSFontTraitMask; range: NSRange); message 'applyFontTraits:range:';
+    procedure setAlignment_range(alignment: NSTextAlignment; range: NSRange); message 'setAlignment:range:';
+    procedure setBaseWritingDirection_range(writingDirection: NSWritingDirection; range: NSRange); message 'setBaseWritingDirection:range:';
+    procedure fixAttributesInRange(range: NSRange); message 'fixAttributesInRange:';
+    procedure fixFontAttributeInRange(range: NSRange); message 'fixFontAttributeInRange:';
+    procedure fixParagraphStyleAttributeInRange(range: NSRange); message 'fixParagraphStyleAttributeInRange:';
+    procedure fixAttachmentAttributeInRange(range: NSRange); message 'fixAttachmentAttributeInRange:';
+
+    { Category: NSMutableAttributedStringAttachmentConveniences }
+    procedure updateAttachmentsFromPath(path: NSString); message 'updateAttachmentsFromPath:';
+  end; external;
+
+{$endif}
+{$endif}

+ 174 - 0
packages/cocoaint/src/appkit/NSBezierPath.inc

@@ -0,0 +1,174 @@
+{ Parsed from Appkit.framework NSBezierPath.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSBEZIERPATH_PAS_H}
+{$define NSBEZIERPATH_PAS_H}
+type
+  NSBezierPathPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSBEZIERPATH_PAS_T}
+{$define NSBEZIERPATH_PAS_T}
+
+{ Constants }
+
+const
+  NSButtLineCapStyle = 0;
+  NSRoundLineCapStyle = 1;
+  NSSquareLineCapStyle = 2;
+
+const
+  NSMiterLineJoinStyle = 0;
+  NSRoundLineJoinStyle = 1;
+  NSBevelLineJoinStyle = 2;
+
+const
+  NSNonZeroWindingRule = 0;
+  NSEvenOddWindingRule = 1;
+
+const
+  NSMoveToBezierPathElement = 0;
+  NSLineToBezierPathElement = 1;
+  NSCurveToBezierPathElement = 2;
+  NSClosePathBezierPathElement = 3;
+
+{ Types }
+type
+  NSLineCapStyle = culong;
+  NSLineJoinStyle = culong;
+  NSWindingRule = culong;
+  NSBezierPathElement = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSBEZIERPATH_PAS_R}
+{$define NSBEZIERPATH_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSBEZIERPATH_PAS_F}
+{$define NSBEZIERPATH_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSBEZIERPATH_PAS_T}
+{$define NSBEZIERPATH_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSBezierPath = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSBEZIERPATH_PAS_C}
+{$define NSBEZIERPATH_PAS_C}
+
+{ NSBezierPath }
+  NSBezierPath = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __segmentCount: clong;
+    __segmentMax: clong;
+    __head: PATHSEGMENT;
+    __lastSubpathIndex: clong;
+    __elementCount: clong;
+    __lineWidth: CGFloat;
+    __controlPointBounds: NSRect;
+    __miterLimit: CGFloat;
+    __flatness: CGFloat;
+    __dashedLinePattern: CGFloat;
+    __dashedLineCount: culong;
+    __dashedLinePhase: CGFloat;
+    __path: Pointer;
+    __private: id;
+    __bpFlags: bitpacked record
+        _flags: 0..((1 shl 8)-1);
+        _pathState: 0..((1 shl 2)-1);
+        
+        _unused: 0..((1 shl 22)-1);
+      end;
+    
+  public
+    class function alloc: NSBezierPath; message 'alloc';
+
+    class function bezierPath: NSBezierPath; message 'bezierPath';
+    class function bezierPathWithRect(rect: NSRect): NSBezierPath; message 'bezierPathWithRect:';
+    class function bezierPathWithOvalInRect(rect: NSRect): NSBezierPath; message 'bezierPathWithOvalInRect:';
+    class function bezierPathWithRoundedRect_xRadius_yRadius(rect: NSRect; xRadius: CGFloat; yRadius: CGFloat): NSBezierPath; message 'bezierPathWithRoundedRect:xRadius:yRadius:';
+    class procedure fillRect(rect: NSRect); message 'fillRect:';
+    class procedure strokeRect(rect: NSRect); message 'strokeRect:';
+    class procedure clipRect(rect: NSRect); message 'clipRect:';
+    class procedure strokeLineFromPoint_toPoint(point: NSPoint; point1: NSPoint); message 'strokeLineFromPoint:toPoint:';
+    class procedure drawPackedGlyphs_atPoint(packedGlyphs: PChar; point: NSPoint); message 'drawPackedGlyphs:atPoint:';
+    class procedure setDefaultMiterLimit(limit: CGFloat); message 'setDefaultMiterLimit:';
+    class function defaultMiterLimit: CGFloat; message 'defaultMiterLimit';
+    class procedure setDefaultFlatness(flatness_: CGFloat); message 'setDefaultFlatness:';
+    class function defaultFlatness: CGFloat; message 'defaultFlatness';
+    class procedure setDefaultWindingRule(windingRule_: NSWindingRule); message 'setDefaultWindingRule:';
+    class function defaultWindingRule: NSWindingRule; message 'defaultWindingRule';
+    class procedure setDefaultLineCapStyle(lineCapStyle_: NSLineCapStyle); message 'setDefaultLineCapStyle:';
+    class function defaultLineCapStyle: NSLineCapStyle; message 'defaultLineCapStyle';
+    class procedure setDefaultLineJoinStyle(lineJoinStyle_: NSLineJoinStyle); message 'setDefaultLineJoinStyle:';
+    class function defaultLineJoinStyle: NSLineJoinStyle; message 'defaultLineJoinStyle';
+    class procedure setDefaultLineWidth(lineWidth_: CGFloat); message 'setDefaultLineWidth:';
+    class function defaultLineWidth: CGFloat; message 'defaultLineWidth';
+    procedure moveToPoint(point: NSPoint); message 'moveToPoint:';
+    procedure lineToPoint(point: NSPoint); message 'lineToPoint:';
+    procedure closePath; message 'closePath';
+    procedure removeAllPoints; message 'removeAllPoints';
+    procedure relativeMoveToPoint(point: NSPoint); message 'relativeMoveToPoint:';
+    procedure relativeLineToPoint(point: NSPoint); message 'relativeLineToPoint:';
+    function lineWidth: CGFloat; message 'lineWidth';
+    procedure setLineWidth(lineWidth_: CGFloat); message 'setLineWidth:';
+    function lineCapStyle: NSLineCapStyle; message 'lineCapStyle';
+    procedure setLineCapStyle(lineCapStyle_: NSLineCapStyle); message 'setLineCapStyle:';
+    function lineJoinStyle: NSLineJoinStyle; message 'lineJoinStyle';
+    procedure setLineJoinStyle(lineJoinStyle_: NSLineJoinStyle); message 'setLineJoinStyle:';
+    function windingRule: NSWindingRule; message 'windingRule';
+    procedure setWindingRule(windingRule_: NSWindingRule); message 'setWindingRule:';
+    function miterLimit: CGFloat; message 'miterLimit';
+    procedure setMiterLimit(miterLimit_: CGFloat); message 'setMiterLimit:';
+    function flatness: CGFloat; message 'flatness';
+    procedure setFlatness(flatness_: CGFloat); message 'setFlatness:';
+    procedure getLineDash_count_phase(var pattern: CGFloat; var count: clong; var phase: CGFloat); message 'getLineDash:count:phase:';
+    procedure setLineDash_count_phase(var pattern: CGFloat; count: clong; phase: CGFloat); message 'setLineDash:count:phase:';
+    procedure stroke; message 'stroke';
+    procedure fill; message 'fill';
+    procedure addClip; message 'addClip';
+    procedure setClip; message 'setClip';
+    function bezierPathByFlatteningPath: NSBezierPath; message 'bezierPathByFlatteningPath';
+    function bezierPathByReversingPath: NSBezierPath; message 'bezierPathByReversingPath';
+    procedure transformUsingAffineTransform(transform: NSAffineTransform); message 'transformUsingAffineTransform:';
+    function isEmpty: Boolean; message 'isEmpty';
+    function currentPoint: NSPoint; message 'currentPoint';
+    function controlPointBounds: NSRect; message 'controlPointBounds';
+    function bounds: NSRect; message 'bounds';
+    function elementCount: clong; message 'elementCount';
+    function elementAtIndex(index: clong): NSBezierPathElement; message 'elementAtIndex:';
+    procedure setAssociatedPoints_atIndex(points: NSPointArray; index: clong); message 'setAssociatedPoints:atIndex:';
+    procedure appendBezierPath(path: NSBezierPath); message 'appendBezierPath:';
+    procedure appendBezierPathWithRect(rect: NSRect); message 'appendBezierPathWithRect:';
+    procedure appendBezierPathWithPoints_count(points: NSPointArray; count: clong); message 'appendBezierPathWithPoints:count:';
+    procedure appendBezierPathWithOvalInRect(rect: NSRect); message 'appendBezierPathWithOvalInRect:';
+    procedure appendBezierPathWithGlyph_inFont(glyph: NSGlyph; font: NSFont); message 'appendBezierPathWithGlyph:inFont:';
+    procedure appendBezierPathWithPackedGlyphs(packedGlyphs: PChar); message 'appendBezierPathWithPackedGlyphs:';
+    procedure appendBezierPathWithRoundedRect_xRadius_yRadius(rect: NSRect; xRadius: CGFloat; yRadius: CGFloat); message 'appendBezierPathWithRoundedRect:xRadius:yRadius:';
+    function containsPoint(point: NSPoint): Boolean; message 'containsPoint:';
+    function cachesBezierPath: Boolean; message 'cachesBezierPath';
+    procedure setCachesBezierPath(flag: Boolean); message 'setCachesBezierPath:';
+  end; external;
+
+{$endif}
+{$endif}

+ 150 - 0
packages/cocoaint/src/appkit/NSBitmapImageRep.inc

@@ -0,0 +1,150 @@
+{ Parsed from Appkit.framework NSBitmapImageRep.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSBITMAPIMAGEREP_PAS_H}
+{$define NSBITMAPIMAGEREP_PAS_H}
+type
+  NSBitmapImageRepPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSBITMAPIMAGEREP_PAS_T}
+{$define NSBITMAPIMAGEREP_PAS_T}
+
+{ Constants }
+
+const
+  NSTIFFCompressionNone = 1;
+  NSTIFFCompressionCCITTFAX3 = 3;
+  NSTIFFCompressionCCITTFAX4 = 4;
+  NSTIFFCompressionLZW = 5;
+  NSTIFFCompressionJPEG = 6;
+  NSTIFFCompressionNEXT = 32766;
+  NSTIFFCompressionPackBits = 32773;
+  NSTIFFCompressionOldJPEG = 32865;
+
+const
+  NSTIFFFileType = 0;
+  NSBMPFileType = 1;
+  NSGIFFileType = 2;
+  NSJPEGFileType = 3;
+  NSPNGFileType = 4;
+  NSJPEG2000FileType = 5;
+
+const
+  NSAlphaFirstBitmapFormat = 1  shl  0;
+  NSAlphaNonpremultipliedBitmapFormat = 1  shl  1;
+  NSFloatingPointSamplesBitmapFormat = 1  shl  2;
+
+{ Types }
+type
+  NSTIFFCompression = culong;
+  NSBitmapImageFileType = culong;
+  NSImageRepLoadStatus = clong;
+  NSBitmapFormat = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSBITMAPIMAGEREP_PAS_R}
+{$define NSBITMAPIMAGEREP_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSBITMAPIMAGEREP_PAS_F}
+{$define NSBITMAPIMAGEREP_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSBITMAPIMAGEREP_PAS_T}
+{$define NSBITMAPIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSBitmapImageRep = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSBITMAPIMAGEREP_PAS_C}
+{$define NSBITMAPIMAGEREP_PAS_C}
+
+{ NSBitmapImageRep }
+  NSBitmapImageRep = objcclass(NSImageRep)
+  private
+    __moreRepFlags: bitpacked record
+        bitsPerPixel: cuint;
+        isPlanar: 0..1;
+        explicitPlanes: 0..1;
+        isUnpacked: 0..1;
+        dataLoaded: 0..1;
+        numColors: cuint;
+        memory: 0..((1 shl 2)-1);
+        compressionFactor: 0..((1 shl 14)-1);
+        imageNumber: 0..((1 shl 8)-1);
+        bitmapFormat: 0..((1 shl 3)-1);
+        cgImageIsPrimary: 0..1;
+        compression: 0..((1 shl 20)-1);
+      end;
+    __bytesPerRow: cuint;
+    __data: char;
+    __tiffData: NSData;
+    __properties: id;
+    
+  public
+    class function alloc: NSBitmapImageRep; message 'alloc';
+
+    function initWithFocusedViewRect(rect: NSRect): id; message 'initWithFocusedViewRect:';
+    function initWithBitmapDataPlanes_pixelsWide_pixelsHigh_bitsPerSample_samplesPerPixel_hasAlpha_isPlanar_colorSpaceName_bytesPerRow_bitsPerPixel(var planes: char; width: clong; height: clong; bps: clong; spp: clong; alpha: Boolean; isPlanar_: Boolean; colorSpaceName_: NSString; rBytes: clong; pBits: clong): id; message 'initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:';
+    function initWithBitmapDataPlanes_pixelsWide_pixelsHigh_bitsPerSample_samplesPerPixel_hasAlpha_isPlanar_colorSpaceName_bitmapFormat_bytesPerRow_bitsPerPixel(var planes: char; width: clong; height: clong; bps: clong; spp: clong; alpha: Boolean; isPlanar_: Boolean; colorSpaceName_: NSString; bitmapFormat_: NSBitmapFormat; rBytes: clong; pBits: clong): id; message 'initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:';
+    function initWithCGImage(CGImage_: CGImageRef): id; message 'initWithCGImage:';
+    function initWithCIImage(var ciImage: CIImage): id; message 'initWithCIImage:';
+    class function imageRepsWithData(data: NSData): NSArray; message 'imageRepsWithData:';
+    class function imageRepWithData_initWithData(data: NSData): id; message 'imageRepWithData:';
+    function initWithData(data: NSData): id; message 'initWithData:';
+    function bitmapData: Pointer; message 'bitmapData';
+    procedure getBitmapDataPlanes(var data: char); message 'getBitmapDataPlanes:';
+    function isPlanar: Boolean; message 'isPlanar';
+    function samplesPerPixel: clong; message 'samplesPerPixel';
+    function bitsPerPixel: clong; message 'bitsPerPixel';
+    function bytesPerRow: clong; message 'bytesPerRow';
+    function bytesPerPlane: clong; message 'bytesPerPlane';
+    function numberOfPlanes: clong; message 'numberOfPlanes';
+    function bitmapFormat: NSBitmapFormat; message 'bitmapFormat';
+    procedure getCompression_factor(var compression: NSTIFFCompression; var factor: single); message 'getCompression:factor:';
+    procedure setCompression_factor(compression: NSTIFFCompression; factor: single); message 'setCompression:factor:';
+    function TIFFRepresentation: NSData; message 'TIFFRepresentation';
+    function TIFFRepresentationUsingCompression_factor(comp: NSTIFFCompression; factor: single): NSData; message 'TIFFRepresentationUsingCompression:factor:';
+    class function TIFFRepresentationOfImageRepsInArray(array_: NSArray): NSData; message 'TIFFRepresentationOfImageRepsInArray:';
+    class function TIFFRepresentationOfImageRepsInArray_usingCompression_factor(array_: NSArray; comp: NSTIFFCompression; factor: single): NSData; message 'TIFFRepresentationOfImageRepsInArray:usingCompression:factor:';
+    class procedure getTIFFCompressionTypes_count(var list: NSTIFFCompression; var numTypes: clong); message 'getTIFFCompressionTypes:count:';
+    class function localizedNameForTIFFCompressionType(compression: NSTIFFCompression): NSString; message 'localizedNameForTIFFCompressionType:';
+    function canBeCompressedUsing(compression: NSTIFFCompression): Boolean; message 'canBeCompressedUsing:';
+    procedure colorizeByMappingGray_toColor_blackMapping_whiteMapping(midPoint: CGFloat; midPointColor: NSColor; shadowColor: NSColor; lightColor: NSColor); message 'colorizeByMappingGray:toColor:blackMapping:whiteMapping:';
+    function initForIncrementalLoad: id; message 'initForIncrementalLoad';
+    function incrementalLoadFromData_complete(data: NSData; complete: Boolean): clong; message 'incrementalLoadFromData:complete:';
+    procedure setColor_atX_y(color: NSColor; x: clong; y: clong); message 'setColor:atX:y:';
+    function colorAtX_y(x: clong; y: clong): NSColor; message 'colorAtX:y:';
+    procedure getPixel_atX_y(p: culong; x: clong; y: clong); message 'getPixel:atX:y:';
+    procedure setPixel_atX_y(p: culong; x: clong; y: clong); message 'setPixel:atX:y:';
+    function CGImage: CGImageRef; message 'CGImage';
+
+    { Category: NSBitmapImageFileTypeExtensions }
+    class function representationOfImageRepsInArray_usingType_properties(imageReps: NSArray; storageType: NSBitmapImageFileType; properties: NSDictionary): NSData; message 'representationOfImageRepsInArray:usingType:properties:';
+    function representationUsingType_properties(storageType: NSBitmapImageFileType; properties: NSDictionary): NSData; message 'representationUsingType:properties:';
+    procedure setProperty_withValue(property_: NSString; value: id); message 'setProperty:withValue:';
+    function valueForProperty(property_: NSString): id; message 'valueForProperty:';
+  end; external;
+
+{$endif}
+{$endif}

+ 127 - 0
packages/cocoaint/src/appkit/NSBox.inc

@@ -0,0 +1,127 @@
+{ Parsed from Appkit.framework NSBox.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSBOX_PAS_H}
+{$define NSBOX_PAS_H}
+type
+  NSBoxPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSBOX_PAS_T}
+{$define NSBOX_PAS_T}
+
+{ Constants }
+
+const
+  NSNoTitle = 0;
+  NSAboveTop = 1;
+  NSAtTop = 2;
+  NSBelowTop = 3;
+  NSAboveBottom = 4;
+  NSAtBottom = 5;
+  NSBelowBottom = 6;
+
+{ Types }
+type
+  NSTitlePosition = culong;
+  NSBoxType = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSBOX_PAS_R}
+{$define NSBOX_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSBOX_PAS_F}
+{$define NSBOX_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSBOX_PAS_T}
+{$define NSBOX_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSBox = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSBOX_PAS_C}
+{$define NSBOX_PAS_C}
+
+{ NSBox }
+  NSBox = objcclass(NSView)
+  private
+    __titleCell: id;
+    __contentView: id;
+    __offsets: NSSize;
+    __borderRect: NSRect;
+    __titleRect: NSRect;
+    __bFlags: bitpacked record
+        borderType: 0..((1 shl 2)-1);
+        titlePosition: 0..((1 shl 3)-1);
+        backgroundTransparent: 0..1;
+        reserved: 0..((1 shl 2)-1);
+        needsTile: 0..1;
+        transparent: 0..1;
+        colorAltInterpretation: 0..1;
+        boxType: 0..((1 shl 3)-1);
+        _RESERVED: 0..((1 shl 18)-1);
+      end;
+    __unused: id;
+    
+  public
+    class function alloc: NSBox; message 'alloc';
+
+    function borderType: NSBorderType; message 'borderType';
+    function titlePosition: NSTitlePosition; message 'titlePosition';
+    procedure setBorderType(aType: NSBorderType); message 'setBorderType:';
+    procedure setBoxType(boxType_: NSBoxType); message 'setBoxType:';
+    function boxType: NSBoxType; message 'boxType';
+    procedure setTitlePosition(aPosition: NSTitlePosition); message 'setTitlePosition:';
+    function title: NSString; message 'title';
+    procedure setTitle(aString: NSString); message 'setTitle:';
+    function titleFont: NSFont; message 'titleFont';
+    procedure setTitleFont(fontObj: NSFont); message 'setTitleFont:';
+    function borderRect: NSRect; message 'borderRect';
+    function titleRect: NSRect; message 'titleRect';
+    function titleCell: id; message 'titleCell';
+    procedure sizeToFit; message 'sizeToFit';
+    function contentViewMargins: NSSize; message 'contentViewMargins';
+    procedure setContentViewMargins(offsetSize: NSSize); message 'setContentViewMargins:';
+    procedure setFrameFromContentFrame(contentFrame: NSRect); message 'setFrameFromContentFrame:';
+    function contentView: id; message 'contentView';
+    procedure setContentView(aView: NSView); message 'setContentView:';
+    function isTransparent: Boolean; message 'isTransparent';
+    procedure setTransparent(flag: Boolean); message 'setTransparent:';
+
+    { Category: NSKeyboardUI }
+    procedure setTitleWithMnemonic(stringWithAmpersand: NSString); message 'setTitleWithMnemonic:';
+
+    { Category: NSCustomBoxTypeProperties }
+    function borderWidth: CGFloat; message 'borderWidth';
+    procedure setBorderWidth(borderWidth_: CGFloat); message 'setBorderWidth:';
+    function cornerRadius: CGFloat; message 'cornerRadius';
+    procedure setCornerRadius(cornerRadius_: CGFloat); message 'setCornerRadius:';
+    function borderColor: NSColor; message 'borderColor';
+    procedure setBorderColor(borderColor_: NSColor); message 'setBorderColor:';
+    function fillColor: NSColor; message 'fillColor';
+    procedure setFillColor(fillColor_: NSColor); message 'setFillColor:';
+  end; external;
+
+{$endif}
+{$endif}

+ 256 - 0
packages/cocoaint/src/appkit/NSBrowser.inc

@@ -0,0 +1,256 @@
+{ Parsed from Appkit.framework NSBrowser.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSBROWSER_PAS_H}
+{$define NSBROWSER_PAS_H}
+type
+  NSBrowserPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSBROWSER_PAS_T}
+{$define NSBROWSER_PAS_T}
+
+{ Defines }
+const
+  NSAppKitVersionNumberWithContinuousScrollingBrowser = 680.0;
+  NSAppKitVersionNumberWithColumnResizingBrowser = 685.0;
+
+{ Constants }
+
+const
+  NSBrowserNoColumnResizing = 0;
+  NSBrowserAutoColumnResizing = 1;
+  NSBrowserUserColumnResizing = 2;
+
+{ Types }
+type
+  NSBrowserColumnResizingType = culong;
+  NSBrowserDropOperation = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSBROWSER_PAS_R}
+{$define NSBROWSER_PAS_R}
+
+{ Records }
+type
+  __Brflags = record
+{$ifdef fpc_big_endian}
+    allowsMultipleSelection: cuint;
+    allowsBranchSelection: cuint;
+    reuseColumns: cuint;
+    isTitled: cuint;
+    titleFromPrevious: cuint;
+    separateColumns: cuint;
+    delegateImplementsWillDisplayCell: cuint;
+    delegateSetsTitles: cuint;
+    delegateSelectsCellsByString: cuint;
+    delegateDoesNotCreateRowsInMatrix: cuint;
+    delegateValidatesColumns: cuint;
+    acceptArrowKeys: cuint;
+    dontDrawTitles: cuint;
+    sendActionOnArrowKeys: cuint;
+    prohibitEmptySel: cuint;
+    hasHorizontalScroller: cuint;
+    time: cuint;
+    allowsIncrementalSearching: cuint;
+    delegateSelectsCellsByRow: cuint;
+    disableCompositing: cuint;
+    refusesFirstResponder: cuint;
+    acceptsFirstMouse: cuint;
+    actionNeedsToBeSent: cuint;
+    usesSmallSizeTitleFont: cuint;
+    usesSmallScrollers: cuint;
+    prefersAllColumnUserResizing: cuint;
+    firstVisibleCalculationDisabled: cuint;
+{$else}
+    firstVisibleCalculationDisabled: cuint;
+    prefersAllColumnUserResizing: cuint;
+    usesSmallScrollers: cuint;
+    usesSmallSizeTitleFont: cuint;
+    actionNeedsToBeSent: cuint;
+    acceptsFirstMouse: cuint;
+    refusesFirstResponder: cuint;
+    disableCompositing: cuint;
+    delegateSelectsCellsByRow: cuint;
+    allowsIncrementalSearching: cuint;
+    time: cuint;
+    hasHorizontalScroller: cuint;
+    prohibitEmptySel: cuint;
+    sendActionOnArrowKeys: cuint;
+    dontDrawTitles: cuint;
+    acceptArrowKeys: cuint;
+    delegateValidatesColumns: cuint;
+    delegateDoesNotCreateRowsInMatrix: cuint;
+    delegateSelectsCellsByString: cuint;
+    delegateSetsTitles: cuint;
+    delegateImplementsWillDisplayCell: cuint;
+    separateColumns: cuint;
+    titleFromPrevious: cuint;
+    isTitled: cuint;
+    reuseColumns: cuint;
+    allowsBranchSelection: cuint;
+    allowsMultipleSelection: cuint;
+{$endif}
+  end;
+_Brflags = __Brflags;
+
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSBROWSER_PAS_F}
+{$define NSBROWSER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSBROWSER_PAS_T}
+{$define NSBROWSER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSBrowser = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSBROWSER_PAS_C}
+{$define NSBROWSER_PAS_C}
+
+{ NSBrowser }
+  NSBrowser = objcclass(NSControl)
+  private
+    __target: id;
+    __action: SEL;
+    __delegate: id;
+    __doubleAction: SEL;
+    __matrixClass: Pobjc_class;
+    __cellPrototype: id;
+    __columnSize: NSSize;
+    __numberOfVisibleColumns: cshort;
+    __minColumnWidth: cshort;
+    __firstVisibleColumn: cshort;
+    __maxVisibleColumns: cshort;
+    __titles: NSMutableArray;
+    __pathSeparator: NSString;
+    __columns: NSMutableArray;
+    __brAuxiliaryStorage: id;
+    __firstColumnTitle: NSString;
+    __scroller: NSScroller;
+    __brflags: _Brflags;
+    
+  public
+    class function alloc: NSBrowser; message 'alloc';
+
+    class function cellClass: Pobjc_class; message 'cellClass';
+    procedure loadColumnZero; message 'loadColumnZero';
+    function isLoaded: Boolean; message 'isLoaded';
+    procedure setDoubleAction(aSelector: SEL); message 'setDoubleAction:';
+    function doubleAction: SEL; message 'doubleAction';
+    procedure setMatrixClass(factoryId: Pobjc_class); message 'setMatrixClass:';
+    function matrixClass: Pobjc_class; message 'matrixClass';
+    procedure setCellClass(factoryId: Pobjc_class); message 'setCellClass:';
+    procedure setCellPrototype(aCell: NSCell); message 'setCellPrototype:';
+    function cellPrototype: id; message 'cellPrototype';
+    procedure setDelegate(anObject: id); message 'setDelegate:';
+    function delegate: id; message 'delegate';
+    procedure setReusesColumns(flag: Boolean); message 'setReusesColumns:';
+    function reusesColumns: Boolean; message 'reusesColumns';
+    procedure setHasHorizontalScroller(flag: Boolean); message 'setHasHorizontalScroller:';
+    function hasHorizontalScroller: Boolean; message 'hasHorizontalScroller';
+    procedure setSeparatesColumns(flag: Boolean); message 'setSeparatesColumns:';
+    function separatesColumns: Boolean; message 'separatesColumns';
+    procedure setTitled(flag: Boolean); message 'setTitled:';
+    function isTitled: Boolean; message 'isTitled';
+    procedure setMinColumnWidth(columnWidth: CGFloat); message 'setMinColumnWidth:';
+    function minColumnWidth: CGFloat; message 'minColumnWidth';
+    procedure setMaxVisibleColumns(columnCount: clong); message 'setMaxVisibleColumns:';
+    function maxVisibleColumns: clong; message 'maxVisibleColumns';
+    procedure setAllowsMultipleSelection(flag: Boolean); message 'setAllowsMultipleSelection:';
+    function allowsMultipleSelection: Boolean; message 'allowsMultipleSelection';
+    procedure setAllowsBranchSelection(flag: Boolean); message 'setAllowsBranchSelection:';
+    function allowsBranchSelection: Boolean; message 'allowsBranchSelection';
+    procedure setAllowsEmptySelection(flag: Boolean); message 'setAllowsEmptySelection:';
+    function allowsEmptySelection: Boolean; message 'allowsEmptySelection';
+    procedure setTakesTitleFromPreviousColumn(flag: Boolean); message 'setTakesTitleFromPreviousColumn:';
+    function takesTitleFromPreviousColumn: Boolean; message 'takesTitleFromPreviousColumn';
+    procedure setAcceptsArrowKeys(flag: Boolean); message 'setAcceptsArrowKeys:';
+    function acceptsArrowKeys: Boolean; message 'acceptsArrowKeys';
+    procedure setSendsActionOnArrowKeys(flag: Boolean); message 'setSendsActionOnArrowKeys:';
+    function sendsActionOnArrowKeys: Boolean; message 'sendsActionOnArrowKeys';
+    procedure setTitle_ofColumn(aString: NSString; column: clong); message 'setTitle:ofColumn:';
+    function titleOfColumn(column: clong): NSString; message 'titleOfColumn:';
+    procedure setPathSeparator(newString: NSString); message 'setPathSeparator:';
+    function pathSeparator: NSString; message 'pathSeparator';
+    function setPath(path_: NSString): Boolean; message 'setPath:';
+    function path: NSString; message 'path';
+    function pathToColumn(column: clong): NSString; message 'pathToColumn:';
+    function selectedColumn: clong; message 'selectedColumn';
+    function selectedCell: id; message 'selectedCell';
+    function selectedCellInColumn(column: clong): id; message 'selectedCellInColumn:';
+    function selectedCells: NSArray; message 'selectedCells';
+    procedure selectRow_inColumn(row: clong; column: clong); message 'selectRow:inColumn:';
+    function selectedRowInColumn(column: clong): clong; message 'selectedRowInColumn:';
+    procedure selectRowIndexes_inColumn(indexes: NSIndexSet; column: clong); message 'selectRowIndexes:inColumn:';
+    function selectedRowIndexesInColumn(column: clong): NSIndexSet; message 'selectedRowIndexesInColumn:';
+    procedure reloadColumn(column: clong); message 'reloadColumn:';
+    procedure validateVisibleColumns; message 'validateVisibleColumns';
+    procedure scrollColumnsRightBy(shiftAmount: clong); message 'scrollColumnsRightBy:';
+    procedure scrollColumnsLeftBy(shiftAmount: clong); message 'scrollColumnsLeftBy:';
+    procedure scrollColumnToVisible(column: clong); message 'scrollColumnToVisible:';
+    procedure setLastColumn(column: clong); message 'setLastColumn:';
+    function lastColumn: clong; message 'lastColumn';
+    procedure addColumn; message 'addColumn';
+    function numberOfVisibleColumns: clong; message 'numberOfVisibleColumns';
+    function firstVisibleColumn: clong; message 'firstVisibleColumn';
+    function lastVisibleColumn: clong; message 'lastVisibleColumn';
+    function columnOfMatrix(matrix: NSMatrix): clong; message 'columnOfMatrix:';
+    function matrixInColumn(column: clong): NSMatrix; message 'matrixInColumn:';
+    function loadedCellAtRow_column(row: clong; col: clong): id; message 'loadedCellAtRow:column:';
+    procedure selectAll(sender: id); message 'selectAll:';
+    procedure tile; message 'tile';
+    procedure doClick(sender: id); message 'doClick:';
+    procedure doDoubleClick(sender: id); message 'doDoubleClick:';
+    function sendAction: Boolean; message 'sendAction';
+    function titleFrameOfColumn(column: clong): NSRect; message 'titleFrameOfColumn:';
+    procedure drawTitleOfColumn_inRect(column: clong; aRect: NSRect); message 'drawTitleOfColumn:inRect:';
+    function titleHeight: CGFloat; message 'titleHeight';
+    function frameOfColumn(column: clong): NSRect; message 'frameOfColumn:';
+    function frameOfInsideOfColumn(column: clong): NSRect; message 'frameOfInsideOfColumn:';
+    function columnWidthForColumnContentWidth(columnContentWidth: CGFloat): CGFloat; message 'columnWidthForColumnContentWidth:';
+    function columnContentWidthForColumnWidth(columnWidth: CGFloat): CGFloat; message 'columnContentWidthForColumnWidth:';
+    procedure setColumnResizingType(columnResizingType_: NSBrowserColumnResizingType); message 'setColumnResizingType:';
+    function columnResizingType: NSBrowserColumnResizingType; message 'columnResizingType';
+    procedure setPrefersAllColumnUserResizing(prefersAllColumnResizing: Boolean); message 'setPrefersAllColumnUserResizing:';
+    function prefersAllColumnUserResizing: Boolean; message 'prefersAllColumnUserResizing';
+    procedure setWidth_ofColumn(columnWidth: CGFloat; columnIndex: clong); message 'setWidth:ofColumn:';
+    function widthOfColumn(column: clong): CGFloat; message 'widthOfColumn:';
+    procedure setColumnsAutosaveName(name: NSString); message 'setColumnsAutosaveName:';
+    function columnsAutosaveName: NSString; message 'columnsAutosaveName';
+    class procedure removeSavedColumnsWithAutosaveName(name: NSString); message 'removeSavedColumnsWithAutosaveName:';
+    function canDragRowsWithIndexes_inColumn_withEvent(rowIndexes: NSIndexSet; column: clong; event: NSEvent): Boolean; message 'canDragRowsWithIndexes:inColumn:withEvent:';
+    function draggingImageForRowsWithIndexes_inColumn_withEvent_offset(rowIndexes: NSIndexSet; column: clong; event: NSEvent; dragImageOffset: NSPointPointer): NSImage; message 'draggingImageForRowsWithIndexes:inColumn:withEvent:offset:';
+    procedure setDraggingSourceOperationMask_forLocal(mask: NSDragOperation; isLocal: Boolean); message 'setDraggingSourceOperationMask:forLocal:';
+    function allowsTypeSelect: Boolean; message 'allowsTypeSelect';
+    procedure setAllowsTypeSelect(value: Boolean); message 'setAllowsTypeSelect:';
+    procedure setBackgroundColor(color: NSColor); message 'setBackgroundColor:';
+    function backgroundColor: NSColor; message 'backgroundColor';
+    procedure displayColumn(column: clong); message 'displayColumn:';
+    procedure displayAllColumns; message 'displayAllColumns';
+    procedure scrollViaScroller(sender: NSScroller); message 'scrollViaScroller:';
+    procedure updateScroller; message 'updateScroller';
+  end; external;
+
+{$endif}
+{$endif}

+ 72 - 0
packages/cocoaint/src/appkit/NSBrowserCell.inc

@@ -0,0 +1,72 @@
+{ Parsed from Appkit.framework NSBrowserCell.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSBROWSERCELL_PAS_H}
+{$define NSBROWSERCELL_PAS_H}
+type
+  NSBrowserCellPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSBROWSERCELL_PAS_T}
+{$define NSBROWSERCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSBROWSERCELL_PAS_R}
+{$define NSBROWSERCELL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSBROWSERCELL_PAS_F}
+{$define NSBROWSERCELL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSBROWSERCELL_PAS_T}
+{$define NSBROWSERCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSBrowserCell = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSBROWSERCELL_PAS_C}
+{$define NSBROWSERCELL_PAS_C}
+
+{ NSBrowserCell }
+  NSBrowserCell = objcclass(NSCell)
+    
+  public
+    class function alloc: NSBrowserCell; message 'alloc';
+
+    class function branchImage: NSImage; message 'branchImage';
+    class function highlightedBranchImage: NSImage; message 'highlightedBranchImage';
+    function highlightColorInView(controlView_: NSView): NSColor; message 'highlightColorInView:';
+    function isLeaf: Boolean; message 'isLeaf';
+    procedure setLeaf(flag: Boolean); message 'setLeaf:';
+    function isLoaded: Boolean; message 'isLoaded';
+    procedure setLoaded(flag: Boolean); message 'setLoaded:';
+    procedure reset; message 'reset';
+    procedure set_; message 'set';
+    procedure setImage(image_: NSImage); message 'setImage:';
+    function image: NSImage; message 'image';
+    procedure setAlternateImage(newAltImage: NSImage); message 'setAlternateImage:';
+    function alternateImage: NSImage; message 'alternateImage';
+  end; external;
+
+{$endif}
+{$endif}

+ 110 - 0
packages/cocoaint/src/appkit/NSButton.inc

@@ -0,0 +1,110 @@
+{ Parsed from Appkit.framework NSButton.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSBUTTON_PAS_H}
+{$define NSBUTTON_PAS_H}
+type
+  NSButtonPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSBUTTON_PAS_T}
+{$define NSBUTTON_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSBUTTON_PAS_R}
+{$define NSBUTTON_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSBUTTON_PAS_F}
+{$define NSBUTTON_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSBUTTON_PAS_T}
+{$define NSBUTTON_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSButton = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSBUTTON_PAS_C}
+{$define NSBUTTON_PAS_C}
+
+{ NSButton }
+  NSButton = objcclass(NSControl, NSUserInterfaceValidationsProtocol)
+    
+  public
+    class function alloc: NSButton; message 'alloc';
+
+    function title: NSString; message 'title';
+    procedure setTitle(aString: NSString); message 'setTitle:';
+    function alternateTitle: NSString; message 'alternateTitle';
+    procedure setAlternateTitle(aString: NSString); message 'setAlternateTitle:';
+    function image: NSImage; message 'image';
+    procedure setImage(image_: NSImage); message 'setImage:';
+    function alternateImage: NSImage; message 'alternateImage';
+    procedure setAlternateImage(image_: NSImage); message 'setAlternateImage:';
+    function imagePosition: NSCellImagePosition; message 'imagePosition';
+    procedure setImagePosition(aPosition: NSCellImagePosition); message 'setImagePosition:';
+    procedure setButtonType(aType: NSButtonType); message 'setButtonType:';
+    function state: clong; message 'state';
+    procedure setState(value: clong); message 'setState:';
+    function isBordered: Boolean; message 'isBordered';
+    procedure setBordered(flag: Boolean); message 'setBordered:';
+    function isTransparent: Boolean; message 'isTransparent';
+    procedure setTransparent(flag: Boolean); message 'setTransparent:';
+    procedure setPeriodicDelay_interval(delay: single; interval: single); message 'setPeriodicDelay:interval:';
+    procedure getPeriodicDelay_interval(var delay: single; var interval: single); message 'getPeriodicDelay:interval:';
+    function keyEquivalent: NSString; message 'keyEquivalent';
+    procedure setKeyEquivalent(charCode: NSString); message 'setKeyEquivalent:';
+    function keyEquivalentModifierMask: culong; message 'keyEquivalentModifierMask';
+    procedure setKeyEquivalentModifierMask(mask: culong); message 'setKeyEquivalentModifierMask:';
+    procedure highlight(flag: Boolean); message 'highlight:';
+    function performKeyEquivalent(key: NSEvent): Boolean; message 'performKeyEquivalent:';
+
+    { Category: NSKeyboardUI }
+    procedure setTitleWithMnemonic(stringWithAmpersand: NSString); message 'setTitleWithMnemonic:';
+
+    { Category: NSButtonAttributedStringMethods }
+    function attributedTitle: NSAttributedString; message 'attributedTitle';
+    procedure setAttributedTitle(aString: NSAttributedString); message 'setAttributedTitle:';
+    function attributedAlternateTitle: NSAttributedString; message 'attributedAlternateTitle';
+    procedure setAttributedAlternateTitle(obj: NSAttributedString); message 'setAttributedAlternateTitle:';
+
+    { Category: NSButtonBezelStyles }
+    procedure setBezelStyle(bezelStyle_: NSBezelStyle); message 'setBezelStyle:';
+    function bezelStyle: NSBezelStyle; message 'bezelStyle';
+
+    { Category: NSButtonMixedState }
+    procedure setAllowsMixedState(flag: Boolean); message 'setAllowsMixedState:';
+    function allowsMixedState: Boolean; message 'allowsMixedState';
+    procedure setNextState; message 'setNextState';
+
+    { Category: NSButtonBorder }
+    procedure setShowsBorderOnlyWhileMouseInside(show: Boolean); message 'setShowsBorderOnlyWhileMouseInside:';
+    function showsBorderOnlyWhileMouseInside: Boolean; message 'showsBorderOnlyWhileMouseInside';
+
+    { Category: NSButtonSoundExtensions }
+    procedure setSound(aSound: NSSound); message 'setSound:';
+    function sound: NSSound; message 'sound';
+  end; external;
+
+{$endif}
+{$endif}

+ 250 - 0
packages/cocoaint/src/appkit/NSButtonCell.inc

@@ -0,0 +1,250 @@
+{ Parsed from Appkit.framework NSButtonCell.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSBUTTONCELL_PAS_H}
+{$define NSBUTTONCELL_PAS_H}
+type
+  NSButtonCellPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSBUTTONCELL_PAS_T}
+{$define NSBUTTONCELL_PAS_T}
+
+{ Constants }
+
+const
+  NSPushOnPushOffButton = 1;
+  NSToggleButton = 2;
+  NSSwitchButton = 3;
+  NSRadioButton = 4;
+  NSMomentaryChangeButton = 5;
+  NSOnOffButton = 6;
+  NSMomentaryPushButton = 0;
+  NSMomentaryLight = 7;
+
+const
+  NSRoundedBezelStyle = 1;
+  NSRegularSquareBezelStyle = 2;
+  NSThickSquareBezelStyle = 3;
+  NSThickerSquareBezelStyle = 4;
+  NSDisclosureBezelStyle = 5;
+  NSShadowlessSquareBezelStyle = 6;
+  NSCircularBezelStyle = 7;
+  NSTexturedSquareBezelStyle = 8;
+  NSHelpButtonBezelStyle = 9;
+  NSSmallSquareBezelStyle = 10;
+  NSTexturedRoundedBezelStyle = 11;
+  NSRoundRectBezelStyle = 12;
+  NSRecessedBezelStyle = 13;
+  NSRoundedDisclosureBezelStyle = 14;
+  NSSmallIconButtonBezelStyle = 2;
+
+const
+  NSGradientNone = 0;
+  NSGradientConcaveWeak = 1;
+  NSGradientConcaveStrong = 2;
+  NSGradientConvexWeak = 3;
+  NSGradientConvexStrong = 4;
+
+{ Types }
+type
+  NSButtonType = culong;
+  NSBezelStyle = culong;
+  NSGradientType = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSBUTTONCELL_PAS_R}
+{$define NSBUTTONCELL_PAS_R}
+
+{ Records }
+type
+  __BCFlags = record
+{$ifdef fpc_big_endian}
+    pushIn: cuint;
+    changeContents: cuint;
+    changeBackground: cuint;
+    changeGray: cuint;
+    lightByContents: cuint;
+    lightByBackground: cuint;
+    lightByGray: cuint;
+    drawing: cuint;
+    bordered: cuint;
+    imageOverlaps: cuint;
+    horizontal: cuint;
+    bottomOrLeft: cuint;
+    imageAndText: cuint;
+    imageSizeDiff: cuint;
+    hasKeyEquivalentInsteadOfImage: cuint;
+    lastState: cuint;
+    transparent: cuint;
+    inset: cuint;
+    doesNotDimImage: cuint;
+    gradientType: cuint;
+    useButtonImageSource: cuint;
+    alternateMnemonicLocation: cuint;
+{$else}
+    alternateMnemonicLocation: cuint;
+    useButtonImageSource: cuint;
+    gradientType: cuint;
+    doesNotDimImage: cuint;
+    inset: cuint;
+    transparent: cuint;
+    lastState: cuint;
+    hasKeyEquivalentInsteadOfImage: cuint;
+    imageSizeDiff: cuint;
+    imageAndText: cuint;
+    bottomOrLeft: cuint;
+    horizontal: cuint;
+    imageOverlaps: cuint;
+    bordered: cuint;
+    drawing: cuint;
+    lightByGray: cuint;
+    lightByBackground: cuint;
+    lightByContents: cuint;
+    changeGray: cuint;
+    changeBackground: cuint;
+    changeContents: cuint;
+    pushIn: cuint;
+{$endif}
+  end;
+_BCFlags = __BCFlags;
+
+type
+  __BCFlags2 = record
+{$ifdef fpc_big_endian}
+    keyEquivalentModifierMask: cuint;
+    imageScaling: cuint;
+    bezelStyle2: cuint;
+    mouseInside: cuint;
+    showsBorderOnlyWhileMouseInside: cuint;
+    bezelStyle: cuint;
+{$else}
+    bezelStyle: cuint;
+    showsBorderOnlyWhileMouseInside: cuint;
+    mouseInside: cuint;
+    bezelStyle2: cuint;
+    imageScaling: cuint;
+    keyEquivalentModifierMask: cuint;
+{$endif}
+  end;
+_BCFlags2 = __BCFlags2;
+
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSBUTTONCELL_PAS_F}
+{$define NSBUTTONCELL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSBUTTONCELL_PAS_T}
+{$define NSBUTTONCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSButtonCell = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSBUTTONCELL_PAS_C}
+{$define NSBUTTONCELL_PAS_C}
+
+{ NSButtonCell }
+  NSButtonCell = objcclass(NSActionCell)
+  private
+    __altContents: NSString;
+    __sound: id;
+    __keyEquivalent: NSString;
+    __bcFlags2: _BCFlags2;
+    __periodicDelay: cushort;
+    __periodicInterval: cushort;
+    __bcFlags: _BCFlags;
+    __normalImage: NSImage;
+    __alternateImageOrKeyEquivalentFont: id;
+    
+  public
+    class function alloc: NSButtonCell; message 'alloc';
+
+    function title: NSString; message 'title';
+    procedure setTitle(aString: NSString); message 'setTitle:';
+    function alternateTitle: NSString; message 'alternateTitle';
+    procedure setAlternateTitle(aString: NSString); message 'setAlternateTitle:';
+    function alternateImage: NSImage; message 'alternateImage';
+    procedure setAlternateImage(image_: NSImage); message 'setAlternateImage:';
+    function imagePosition: NSCellImagePosition; message 'imagePosition';
+    procedure setImagePosition(aPosition: NSCellImagePosition); message 'setImagePosition:';
+    function imageScaling: NSImageScaling; message 'imageScaling';
+    procedure setImageScaling(scaling: NSImageScaling); message 'setImageScaling:';
+    function highlightsBy: clong; message 'highlightsBy';
+    procedure setHighlightsBy(aType: clong); message 'setHighlightsBy:';
+    function showsStateBy: clong; message 'showsStateBy';
+    procedure setShowsStateBy(aType: clong); message 'setShowsStateBy:';
+    procedure setButtonType(aType: NSButtonType); message 'setButtonType:';
+    function isOpaque: Boolean; message 'isOpaque';
+    procedure setFont(fontObj: NSFont); message 'setFont:';
+    function isTransparent: Boolean; message 'isTransparent';
+    procedure setTransparent(flag: Boolean); message 'setTransparent:';
+    procedure setPeriodicDelay_interval(delay: single; interval: single); message 'setPeriodicDelay:interval:';
+    procedure getPeriodicDelay_interval(var delay: single; var interval: single); message 'getPeriodicDelay:interval:';
+    function keyEquivalent: NSString; message 'keyEquivalent';
+    procedure setKeyEquivalent(aKeyEquivalent: NSString); message 'setKeyEquivalent:';
+    function keyEquivalentModifierMask: culong; message 'keyEquivalentModifierMask';
+    procedure setKeyEquivalentModifierMask(mask: culong); message 'setKeyEquivalentModifierMask:';
+    function keyEquivalentFont: NSFont; message 'keyEquivalentFont';
+    procedure setKeyEquivalentFont(fontObj: NSFont); message 'setKeyEquivalentFont:';
+    procedure setKeyEquivalentFont_size(fontName: NSString; fontSize: CGFloat); message 'setKeyEquivalentFont:size:';
+    procedure performClick(sender: id); message 'performClick:';
+    procedure drawImage_withFrame_inView(image_: NSImage; frame: NSRect; controlView_: NSView); message 'drawImage:withFrame:inView:';
+    function drawTitle_withFrame_inView(title_: NSAttributedString; frame: NSRect; controlView_: NSView): NSRect; message 'drawTitle:withFrame:inView:';
+    procedure drawBezelWithFrame_inView(frame: NSRect; controlView_: NSView); message 'drawBezelWithFrame:inView:';
+
+    { Category: NSKeyboardUI }
+    procedure setTitleWithMnemonic(stringWithAmpersand: NSString); message 'setTitleWithMnemonic:';
+    procedure setAlternateTitleWithMnemonic(stringWithAmpersand: NSString); message 'setAlternateTitleWithMnemonic:';
+    procedure setAlternateMnemonicLocation(location: culong); message 'setAlternateMnemonicLocation:';
+    function alternateMnemonicLocation: culong; message 'alternateMnemonicLocation';
+    function alternateMnemonic: NSString; message 'alternateMnemonic';
+
+    { Category: NSButtonCellExtensions }
+    function gradientType: NSGradientType; message 'gradientType';
+    procedure setGradientType(type__: NSGradientType); message 'setGradientType:';
+    procedure setImageDimsWhenDisabled(flag: Boolean); message 'setImageDimsWhenDisabled:';
+    function imageDimsWhenDisabled: Boolean; message 'imageDimsWhenDisabled';
+    procedure setShowsBorderOnlyWhileMouseInside(show: Boolean); message 'setShowsBorderOnlyWhileMouseInside:';
+    function showsBorderOnlyWhileMouseInside: Boolean; message 'showsBorderOnlyWhileMouseInside';
+    procedure mouseEntered(event: NSEvent); message 'mouseEntered:';
+    procedure mouseExited(event: NSEvent); message 'mouseExited:';
+    function backgroundColor: NSColor; message 'backgroundColor';
+    procedure setBackgroundColor(color: NSColor); message 'setBackgroundColor:';
+
+    { Category: NSButtonCellAttributedStringMethods }
+    function attributedTitle: NSAttributedString; message 'attributedTitle';
+    procedure setAttributedTitle(obj: NSAttributedString); message 'setAttributedTitle:';
+    function attributedAlternateTitle: NSAttributedString; message 'attributedAlternateTitle';
+    procedure setAttributedAlternateTitle(obj: NSAttributedString); message 'setAttributedAlternateTitle:';
+
+    { Category: NSButtonCellBezelStyles }
+    procedure setBezelStyle(bezelStyle_: NSBezelStyle); message 'setBezelStyle:';
+    function bezelStyle: NSBezelStyle; message 'bezelStyle';
+
+    { Category: NSButtonCellSoundExtensions }
+    procedure setSound(aSound: NSSound); message 'setSound:';
+    function sound: NSSound; message 'sound';
+  end; external;
+
+{$endif}
+{$endif}

+ 64 - 0
packages/cocoaint/src/appkit/NSCIImageRep.inc

@@ -0,0 +1,64 @@
+{ Parsed from Appkit.framework NSCIImageRep.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCIIMAGEREP_PAS_H}
+{$define NSCIIMAGEREP_PAS_H}
+type
+  NSCIImageRepPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCIIMAGEREP_PAS_T}
+{$define NSCIIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCIIMAGEREP_PAS_R}
+{$define NSCIIMAGEREP_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCIIMAGEREP_PAS_F}
+{$define NSCIIMAGEREP_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCIIMAGEREP_PAS_T}
+{$define NSCIIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSCIImageRep = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCIIMAGEREP_PAS_C}
+{$define NSCIIMAGEREP_PAS_C}
+
+{ NSCIImageRep }
+  NSCIImageRep = objcclass(NSImageRep)
+  private
+    __ciImage: CIImage;
+    
+  public
+    class function alloc: NSCIImageRep; message 'alloc';
+
+    class function imageRepWithCIImage(var image: CIImage_): id; message 'imageRepWithCIImage:';
+    function initWithCIImage(var image: CIImage_): id; message 'initWithCIImage:';
+    function CIImage: CIImage_; message 'CIImage';
+  end; external;
+
+{$endif}
+{$endif}

+ 67 - 0
packages/cocoaint/src/appkit/NSCachedImageRep.inc

@@ -0,0 +1,67 @@
+{ Parsed from Appkit.framework NSCachedImageRep.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCACHEDIMAGEREP_PAS_H}
+{$define NSCACHEDIMAGEREP_PAS_H}
+type
+  NSCachedImageRepPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCACHEDIMAGEREP_PAS_T}
+{$define NSCACHEDIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCACHEDIMAGEREP_PAS_R}
+{$define NSCACHEDIMAGEREP_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCACHEDIMAGEREP_PAS_F}
+{$define NSCACHEDIMAGEREP_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCACHEDIMAGEREP_PAS_T}
+{$define NSCACHEDIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSCachedImageRep = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCACHEDIMAGEREP_PAS_C}
+{$define NSCACHEDIMAGEREP_PAS_C}
+
+{ NSCachedImageRep }
+  NSCachedImageRep = objcclass(NSImageRep)
+  private
+    __origin: NSPoint;
+    __window: NSWindow;
+    __cache: Pointer; {garbage collector: __strong }
+    
+  public
+    class function alloc: NSCachedImageRep; message 'alloc';
+
+    function initWithWindow_rect(win: NSWindow; rect_: NSRect): id; message 'initWithWindow:rect:';
+    function initWithSize_depth_separate_alpha(size_: NSSize; depth: NSWindowDepth; flag: Boolean; alpha: Boolean): id; message 'initWithSize:depth:separate:alpha:';
+    function window: NSWindow; message 'window';
+    function rect: NSRect; message 'rect';
+  end; external;
+
+{$endif}
+{$endif}

+ 361 - 0
packages/cocoaint/src/appkit/NSCell.inc

@@ -0,0 +1,361 @@
+{ Parsed from Appkit.framework NSCell.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCELL_PAS_H}
+{$define NSCELL_PAS_H}
+type
+  NSCellPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCELL_PAS_T}
+{$define NSCELL_PAS_T}
+
+{ Constants }
+
+const
+  NSAnyType = 0;
+  NSIntType = 1;
+  NSPositiveIntType = 2;
+  NSFloatType = 3;
+  NSPositiveFloatType = 4;
+  NSDoubleType = 6;
+  NSPositiveDoubleType = 7;
+
+const
+  NSNullCellType = 0;
+  NSTextCellType = 1;
+  NSImageCellType = 2;
+
+const
+  NSCellDisabled = 0;
+  NSCellState = 1;
+  NSPushInCell = 2;
+  NSCellEditable = 3;
+  NSChangeGrayCell = 4;
+  NSCellHighlighted = 5;
+  NSCellLightsByContents = 6;
+  NSCellLightsByGray = 7;
+  NSChangeBackgroundCell = 8;
+  NSCellLightsByBackground = 9;
+  NSCellIsBordered = 10;
+  NSCellHasOverlappingImage = 11;
+  NSCellHasImageHorizontal = 12;
+  NSCellHasImageOnLeftOrBottom = 13;
+  NSCellChangesContents = 14;
+  NSCellIsInsetButton = 15;
+  NSCellAllowsMixedState = 16;
+
+const
+  NSNoImage = 0;
+  NSImageOnly = 1;
+  NSImageLeft = 2;
+  NSImageRight = 3;
+  NSImageBelow = 4;
+  NSImageAbove = 5;
+  NSImageOverlaps = 6;
+
+const
+  NSMixedState = -1;
+  NSOffState = 0;
+  NSOnState = 1;
+
+const
+  NSNoCellMask = 0;
+  NSContentsCellMask = 1;
+  NSPushInCellMask = 2;
+  NSChangeGrayCellMask = 4;
+  NSChangeBackgroundCellMask = 8;
+
+const
+  NSBlueControlTint = 1;
+  NSGraphiteControlTint = 6;
+  NSClearControlTint = 7;
+
+const
+  NSRegularControlSize = 0;
+  NSSmallControlSize = 1;
+
+const
+  NSCellHitNone = 0;
+  NSCellHitContentArea = 1  shl  0;
+  NSCellHitEditableTextArea = 1  shl  1;
+  NSCellHitTrackableArea = 1  shl  2;
+
+{ Types }
+type
+  NSCellType = culong;
+  NSCellAttribute = culong;
+  NSCellImagePosition = culong;
+  NSImageScaling = culong;
+  NSCellStateValue = clong;
+  NSControlTint = culong;
+  NSControlSize = culong;
+  NSBackgroundStyle = clong;
+
+{ CFString constants }
+var
+  NSControlTintDidChangeNotification: CFStringRef; external name '_NSControlTintDidChangeNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCELL_PAS_R}
+{$define NSCELL_PAS_R}
+
+{ Records }
+type
+  __CFlags = record
+    state: cuint;
+    highlighted: cuint;
+    disabled: cuint;
+    editable: cuint;
+    type_: NSCellType;
+    vCentered: cuint;
+    hCentered: cuint;
+    bordered: cuint;
+    bezeled: cuint;
+    selectable: cuint;
+    scrollable: cuint;
+    continuous: cuint;
+    actOnMouseDown: cuint;
+    isLeaf: cuint;
+    invalidObjectValue: cuint;
+    invalidFont: cuint;
+    lineBreakMode: NSLineBreakMode;
+    backgroundStyle: cuint;
+    reserved1: cuint;
+    actOnMouseDragged: cuint;
+    isLoaded: cuint;
+    truncateLastLine: cuint;
+    dontActOnMouseUp: cuint;
+    isWhite: cuint;
+    useUserKeyEquivalent: cuint;
+    showsFirstResponder: cuint;
+    focusRingType: cuint;
+    wasSelectable: cuint;
+    hasInvalidObject: cuint;
+    allowsEditingTextAttributes: cuint;
+    importsGraphics: cuint;
+    alignment: NSTextAlignment;
+    reserved: cuint;
+    refusesFirstResponder: cuint;
+    needsHighlightedText: cuint;
+    dontAllowsUndo: cuint;
+    currentlyEditing: cuint;
+    allowsMixedState: cuint;
+    inMixedState: cuint;
+    sendsActionOnEndEditing: cuint;
+    inSendAction: cuint;
+    menuWasSet: cuint;
+    controlTint: cuint;
+    controlSize: cuint;
+    branchImageDisabled: cuint;
+    drawingInRevealover: cuint;
+    needsHighlightedTextHint: cuint;
+  end;
+_CFlags = __CFlags;
+
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCELL_PAS_F}
+{$define NSCELL_PAS_F}
+
+{ Functions }
+procedure NSDrawThreePartImage(frame: NSRect; var startCap: NSImage; var centerFill: NSImage; var endCap: NSImage; vertical: Boolean; op: NSCompositingOperation; alphaFraction: CGFloat; flipped: Boolean); cdecl; external name 'NSDrawThreePartImage';
+procedure NSDrawNinePartImage(frame: NSRect; var topLeftCorner: NSImage; var topEdgeFill: NSImage; var topRightCorner: NSImage; var leftEdgeFill: NSImage; var centerFill: NSImage; var rightEdgeFill: NSImage; var bottomLeftCorner: NSImage; var bottomEdgeFill: NSImage; var bottomRightCorner: NSImage; op: NSCompositingOperation; alphaFraction: CGFloat; flipped: Boolean); cdecl; external name 'NSDrawNinePartImage';
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCELL_PAS_T}
+{$define NSCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSCell = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCELL_PAS_C}
+{$define NSCELL_PAS_C}
+
+{ NSCell }
+  NSCell = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __contents: id;
+    __cFlags: _CFlags;
+    __support: id;
+    
+  public
+    class function alloc: NSCell; message 'alloc';
+
+    class function prefersTrackingUntilMouseUp: Boolean; message 'prefersTrackingUntilMouseUp';
+    function initTextCell(aString: NSString): id; message 'initTextCell:';
+    function initImageCell(image_: NSImage): id; message 'initImageCell:';
+    function controlView: NSView; message 'controlView';
+    procedure setControlView(view: NSView); message 'setControlView:';
+    function type_: NSCellType; message 'type';
+    procedure setType(aType: NSCellType); message 'setType:';
+    function state: clong; message 'state';
+    procedure setState(value: clong); message 'setState:';
+    function target: id; message 'target';
+    procedure setTarget(anObject: id); message 'setTarget:';
+    function action: SEL; message 'action';
+    procedure setAction(aSelector: SEL); message 'setAction:';
+    function tag: clong; message 'tag';
+    procedure setTag(anInt: clong); message 'setTag:';
+    function title: NSString; message 'title';
+    procedure setTitle(aString: NSString); message 'setTitle:';
+    function isOpaque: Boolean; message 'isOpaque';
+    function isEnabled: Boolean; message 'isEnabled';
+    procedure setEnabled(flag: Boolean); message 'setEnabled:';
+    function sendActionOn(mask: clong): clong; message 'sendActionOn:';
+    function isContinuous: Boolean; message 'isContinuous';
+    procedure setContinuous(flag: Boolean); message 'setContinuous:';
+    function isEditable: Boolean; message 'isEditable';
+    procedure setEditable(flag: Boolean); message 'setEditable:';
+    function isSelectable: Boolean; message 'isSelectable';
+    procedure setSelectable(flag: Boolean); message 'setSelectable:';
+    function isBordered: Boolean; message 'isBordered';
+    procedure setBordered(flag: Boolean); message 'setBordered:';
+    function isBezeled: Boolean; message 'isBezeled';
+    procedure setBezeled(flag: Boolean); message 'setBezeled:';
+    function isScrollable: Boolean; message 'isScrollable';
+    procedure setScrollable(flag: Boolean); message 'setScrollable:';
+    function isHighlighted: Boolean; message 'isHighlighted';
+    procedure setHighlighted(flag: Boolean); message 'setHighlighted:';
+    function alignment: NSTextAlignment; message 'alignment';
+    procedure setAlignment(mode: NSTextAlignment); message 'setAlignment:';
+    function wraps: Boolean; message 'wraps';
+    procedure setWraps(flag: Boolean); message 'setWraps:';
+    function font: NSFont; message 'font';
+    procedure setFont(fontObj: NSFont); message 'setFont:';
+    function entryType: clong; message 'entryType';
+    procedure setEntryType(aType: clong); message 'setEntryType:';
+    function isEntryAcceptable(aString: NSString): Boolean; message 'isEntryAcceptable:';
+    procedure setFloatingPointFormat_left_right(autoRange: Boolean; leftDigits: culong; rightDigits: culong); message 'setFloatingPointFormat:left:right:';
+    function keyEquivalent: NSString; message 'keyEquivalent';
+    procedure setFormatter(newFormatter: NSFormatter); message 'setFormatter:';
+    function formatter: id; message 'formatter';
+    function objectValue: id; message 'objectValue';
+    procedure setObjectValue(obj: id); message 'setObjectValue:';
+    function hasValidObjectValue: Boolean; message 'hasValidObjectValue';
+    function stringValue: NSString; message 'stringValue';
+    procedure setStringValue(aString: NSString); message 'setStringValue:';
+    function compare(otherCell: id): NSComparisonResult; message 'compare:';
+    function intValue: cint; message 'intValue';
+    procedure setIntValue(anInt: cint); message 'setIntValue:';
+    function floatValue: single; message 'floatValue';
+    procedure setFloatValue(aFloat: single); message 'setFloatValue:';
+    function doubleValue: double; message 'doubleValue';
+    procedure setDoubleValue(aDouble: double); message 'setDoubleValue:';
+    procedure takeIntValueFrom(sender: id); message 'takeIntValueFrom:';
+    procedure takeFloatValueFrom(sender: id); message 'takeFloatValueFrom:';
+    procedure takeDoubleValueFrom(sender: id); message 'takeDoubleValueFrom:';
+    procedure takeStringValueFrom(sender: id); message 'takeStringValueFrom:';
+    procedure takeObjectValueFrom(sender: id); message 'takeObjectValueFrom:';
+    function image: NSImage; message 'image';
+    procedure setImage(image_: NSImage); message 'setImage:';
+    procedure setControlTint(controlTint_: NSControlTint); message 'setControlTint:';
+    function controlTint: NSControlTint; message 'controlTint';
+    procedure setControlSize(size: NSControlSize); message 'setControlSize:';
+    function controlSize: NSControlSize; message 'controlSize';
+    function representedObject: id; message 'representedObject';
+    procedure setRepresentedObject(anObject: id); message 'setRepresentedObject:';
+    function cellAttribute(aParameter: NSCellAttribute): clong; message 'cellAttribute:';
+    procedure setCellAttribute_to(aParameter: NSCellAttribute; value: clong); message 'setCellAttribute:to:';
+    function imageRectForBounds(theRect: NSRect): NSRect; message 'imageRectForBounds:';
+    function titleRectForBounds(theRect: NSRect): NSRect; message 'titleRectForBounds:';
+    function drawingRectForBounds(theRect: NSRect): NSRect; message 'drawingRectForBounds:';
+    function cellSize: NSSize; message 'cellSize';
+    function cellSizeForBounds(aRect: NSRect): NSSize; message 'cellSizeForBounds:';
+    function highlightColorWithFrame_inView(cellFrame: NSRect; controlView_: NSView): NSColor; message 'highlightColorWithFrame:inView:';
+    procedure calcDrawInfo(aRect: NSRect); message 'calcDrawInfo:';
+    function setUpFieldEditorAttributes(textObj: NSText): NSText; message 'setUpFieldEditorAttributes:';
+    procedure drawInteriorWithFrame_inView(cellFrame: NSRect; controlView_: NSView); message 'drawInteriorWithFrame:inView:';
+    procedure drawWithFrame_inView(cellFrame: NSRect; controlView_: NSView); message 'drawWithFrame:inView:';
+    procedure highlight_withFrame_inView(flag: Boolean; cellFrame: NSRect; controlView_: NSView); message 'highlight:withFrame:inView:';
+    function mouseDownFlags: clong; message 'mouseDownFlags';
+    procedure getPeriodicDelay_interval(var delay: single; var interval: single); message 'getPeriodicDelay:interval:';
+    function startTrackingAt_inView(startPoint: NSPoint; controlView_: NSView): Boolean; message 'startTrackingAt:inView:';
+    function continueTracking_at_inView(lastPoint: NSPoint; currentPoint: NSPoint; controlView_: NSView): Boolean; message 'continueTracking:at:inView:';
+    procedure stopTracking_at_inView_mouseIsUp(lastPoint: NSPoint; stopPoint: NSPoint; controlView_: NSView; flag: Boolean); message 'stopTracking:at:inView:mouseIsUp:';
+    function trackMouse_inRect_ofView_untilMouseUp(theEvent: NSEvent; cellFrame: NSRect; controlView_: NSView; flag: Boolean): Boolean; message 'trackMouse:inRect:ofView:untilMouseUp:';
+    procedure editWithFrame_inView_editor_delegate_event(aRect: NSRect; controlView_: NSView; textObj: NSText; anObject: id; theEvent: NSEvent); message 'editWithFrame:inView:editor:delegate:event:';
+    procedure selectWithFrame_inView_editor_delegate_start_length(aRect: NSRect; controlView_: NSView; textObj: NSText; anObject: id; selStart: clong; selLength: clong); message 'selectWithFrame:inView:editor:delegate:start:length:';
+    procedure endEditing(textObj: NSText); message 'endEditing:';
+    procedure resetCursorRect_inView(cellFrame: NSRect; controlView_: NSView); message 'resetCursorRect:inView:';
+    procedure setMenu(aMenu: NSMenu); message 'setMenu:';
+    function menu: NSMenu; message 'menu';
+    function menuForEvent_inRect_ofView(event: NSEvent; cellFrame: NSRect; view: NSView): NSMenu; message 'menuForEvent:inRect:ofView:';
+    class function defaultMenu: NSMenu; message 'defaultMenu';
+    procedure setSendsActionOnEndEditing(flag: Boolean); message 'setSendsActionOnEndEditing:';
+    function sendsActionOnEndEditing: Boolean; message 'sendsActionOnEndEditing';
+    function baseWritingDirection: NSWritingDirection; message 'baseWritingDirection';
+    procedure setBaseWritingDirection(writingDirection: NSWritingDirection); message 'setBaseWritingDirection:';
+    procedure setLineBreakMode(mode: NSLineBreakMode); message 'setLineBreakMode:';
+    function lineBreakMode: NSLineBreakMode; message 'lineBreakMode';
+    procedure setAllowsUndo(allowsUndo_: Boolean); message 'setAllowsUndo:';
+    function allowsUndo: Boolean; message 'allowsUndo';
+    function integerValue: clong; message 'integerValue';
+    procedure setIntegerValue(anInteger: clong); message 'setIntegerValue:';
+    procedure takeIntegerValueFrom(sender: id); message 'takeIntegerValueFrom:';
+    procedure setTruncatesLastVisibleLine(flag: Boolean); message 'setTruncatesLastVisibleLine:';
+
+    { Category: NSKeyboardUI }
+    procedure setRefusesFirstResponder(flag: Boolean); message 'setRefusesFirstResponder:';
+    function refusesFirstResponder: Boolean; message 'refusesFirstResponder';
+    function acceptsFirstResponder: Boolean; message 'acceptsFirstResponder';
+    procedure setShowsFirstResponder(showFR: Boolean); message 'setShowsFirstResponder:';
+    function showsFirstResponder: Boolean; message 'showsFirstResponder';
+    procedure setMnemonicLocation(location: culong); message 'setMnemonicLocation:';
+    function mnemonicLocation: culong; message 'mnemonicLocation';
+    function mnemonic: NSString; message 'mnemonic';
+    procedure setTitleWithMnemonic(stringWithAmpersand: NSString); message 'setTitleWithMnemonic:';
+    procedure performClick(sender: id); message 'performClick:';
+    procedure setFocusRingType(focusRingType_: NSFocusRingType); message 'setFocusRingType:';
+    function focusRingType: NSFocusRingType; message 'focusRingType';
+    class function defaultFocusRingType: NSFocusRingType; message 'defaultFocusRingType';
+    function wantsNotificationForMarkedText: Boolean; message 'wantsNotificationForMarkedText';
+
+    { Category: NSCellAttributedStringMethods }
+    function attributedStringValue: NSAttributedString; message 'attributedStringValue';
+    procedure setAttributedStringValue(obj: NSAttributedString); message 'setAttributedStringValue:';
+    function allowsEditingTextAttributes: Boolean; message 'allowsEditingTextAttributes';
+    procedure setAllowsEditingTextAttributes_setImportsGraphics(flag: Boolean); message 'setAllowsEditingTextAttributes:';
+    function importsGraphics: Boolean; message 'importsGraphics';
+    procedure setImportsGraphics_setAllowsEditingTextAttributes(flag: Boolean); message 'setImportsGraphics:';
+
+    { Category: NSCellMixedState }
+    procedure setAllowsMixedState(flag: Boolean); message 'setAllowsMixedState:';
+    function allowsMixedState: Boolean; message 'allowsMixedState';
+    function nextState: clong; message 'nextState';
+    procedure setNextState; message 'setNextState';
+
+    { Category: NSCellHitTest }
+    function hitTestForEvent_inRect_ofView(event: NSEvent; cellFrame: NSRect; controlView_: NSView): culong; message 'hitTestForEvent:inRect:ofView:';
+
+    { Category: NSCellExpansion }
+    function expansionFrameWithFrame_inView(cellFrame: NSRect; view: NSView): NSRect; message 'expansionFrameWithFrame:inView:';
+    procedure drawWithExpansionFrame_inView(cellFrame: NSRect; view: NSView); message 'drawWithExpansionFrame:inView:';
+
+    { Category: NSCellBackgroundStyle }
+    function backgroundStyle: NSBackgroundStyle; message 'backgroundStyle';
+    procedure setBackgroundStyle(style: NSBackgroundStyle); message 'setBackgroundStyle:';
+    function interiorBackgroundStyle: NSBackgroundStyle; message 'interiorBackgroundStyle';
+  end; external;
+
+{$endif}
+{$endif}

+ 101 - 0
packages/cocoaint/src/appkit/NSClipView.inc

@@ -0,0 +1,101 @@
+{ Parsed from Appkit.framework NSClipView.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCLIPVIEW_PAS_H}
+{$define NSCLIPVIEW_PAS_H}
+type
+  NSClipViewPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCLIPVIEW_PAS_T}
+{$define NSCLIPVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCLIPVIEW_PAS_R}
+{$define NSCLIPVIEW_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCLIPVIEW_PAS_F}
+{$define NSCLIPVIEW_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCLIPVIEW_PAS_T}
+{$define NSCLIPVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSClipView = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCLIPVIEW_PAS_C}
+{$define NSCLIPVIEW_PAS_C}
+
+{ NSClipView }
+  NSClipView = objcclass(NSView)
+  private
+    __backgroundColor: NSColor;
+    __docView: NSView;
+    __docRect: NSRect;
+    __oldDocFrame: NSRect;
+    __cursor: NSCursor;
+    __scrollAnimationHelper: id;
+    __cvFlags: bitpacked record
+        isFlipped: 0..1;
+        onlyUncovered: 0..1;
+        reflectScroll: 0..1;
+        usedByCell: 0..1;
+        scrollClipTo: 0..1;
+        noCopyOnScroll: 0..1;
+        drawsBackground: 0..1;
+        scrollInProgress: 0..1;
+        skipRemoveSuperviewCheck: 0..1;
+        animateCurrentScroll: 0..1;
+        canAnimateScrolls: 0..1;
+        nextScrollRelativeToCurrentPosition: 0..1;
+        viewBoundsChangedOverridden: 0..1;
+        viewFrameChangedOverridden: 0..1;
+        documentViewAlignment: 0..((1 shl 4)-1);
+        RESERVED: 0..((1 shl 14)-1);
+      end;
+    
+  public
+    class function alloc: NSClipView; message 'alloc';
+
+    procedure setBackgroundColor(color: NSColor); message 'setBackgroundColor:';
+    function backgroundColor: NSColor; message 'backgroundColor';
+    procedure setDrawsBackground(flag: Boolean); message 'setDrawsBackground:';
+    function drawsBackground: Boolean; message 'drawsBackground';
+    procedure setDocumentView(aView: NSView); message 'setDocumentView:';
+    function documentView: id; message 'documentView';
+    function documentRect: NSRect; message 'documentRect';
+    procedure setDocumentCursor(anObj: NSCursor); message 'setDocumentCursor:';
+    function documentCursor: NSCursor; message 'documentCursor';
+    function documentVisibleRect: NSRect; message 'documentVisibleRect';
+    procedure viewFrameChanged(notification: NSNotification); message 'viewFrameChanged:';
+    procedure viewBoundsChanged(notification: NSNotification); message 'viewBoundsChanged:';
+    procedure setCopiesOnScroll(flag: Boolean); message 'setCopiesOnScroll:';
+    function copiesOnScroll: Boolean; message 'copiesOnScroll';
+    function autoscroll(theEvent: NSEvent): Boolean; message 'autoscroll:';
+    function constrainScrollPoint(newOrigin: NSPoint): NSPoint; message 'constrainScrollPoint:';
+    procedure scrollToPoint(newOrigin: NSPoint); message 'scrollToPoint:';
+  end; external;
+
+{$endif}
+{$endif}

+ 154 - 0
packages/cocoaint/src/appkit/NSCollectionView.inc

@@ -0,0 +1,154 @@
+{ Parsed from Appkit.framework NSCollectionView.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCOLLECTIONVIEW_PAS_H}
+{$define NSCOLLECTIONVIEW_PAS_H}
+type
+  NSCollectionViewItemPointer = Pointer;
+  NSCollectionViewPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCOLLECTIONVIEW_PAS_T}
+{$define NSCOLLECTIONVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCOLLECTIONVIEW_PAS_R}
+{$define NSCOLLECTIONVIEW_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCOLLECTIONVIEW_PAS_F}
+{$define NSCOLLECTIONVIEW_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCOLLECTIONVIEW_PAS_T}
+{$define NSCOLLECTIONVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSCollectionViewItem = objcclass;
+  NSCollectionView = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCOLLECTIONVIEW_PAS_C}
+{$define NSCOLLECTIONVIEW_PAS_C}
+
+{ NSCollectionViewItem }
+  NSCollectionViewItem = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __reserved: Pointer;
+    __archive: NSMutableData;
+    __ownerView: NSCollectionView;
+    __representedObject: id;
+    __view: NSView;
+    __itemFlags: bitpacked record
+        _selected: 0..1;
+        _removalNeeded: 0..1;
+        _suppressSelectionChangeNotification: 0..1;
+        _reservedAnimationContainer: 0..((1 shl 29)-1);
+      end;
+    __targetViewFrameRect: NSRect;
+    __appliedViewFrameRect: NSRect;
+    __containerReferenceCounter: culong;
+    
+  public
+    class function alloc: NSCollectionViewItem; message 'alloc';
+
+    function collectionView: NSCollectionView; message 'collectionView';
+    procedure setRepresentedObject(object_: id); message 'setRepresentedObject:';
+    function representedObject: id; message 'representedObject';
+    procedure setView(view_: NSView); message 'setView:';
+    function view: NSView; message 'view';
+    procedure setSelected(flag: Boolean); message 'setSelected:';
+    function isSelected: Boolean; message 'isSelected';
+  end; external;
+
+{ NSCollectionView }
+  NSCollectionView = objcclass(NSView)
+  private
+    __reserved: Pointer;
+    __backgroundLayers: NSMutableArray;
+    __content: NSArray;
+    __selectionIndexes: NSMutableIndexSet;
+    __itemPrototype: NSCollectionViewItem;
+    __minGridSize: NSSize;
+    __maxGridSize: NSSize;
+    __minGridRows: culong;
+    __maxGridRows: culong;
+    __minGridColumns: culong;
+    __maxGridColumns: culong;
+    __backgroundColors: NSArray;
+    __animationContainerFlags: bitpacked record
+        _ignoreFrameSizeChanges: 0..1;
+        _selectable: 0..1;
+        _allowsMultipleSelection: 0..1;
+        _avoidsEmptySelection: 0..1;
+        _superviewIsClipView: 0..1;
+        _gridParametersReadFromPrototype: 0..1;
+        _isFirstResponder: 0..1;
+        _reservedAnimationContainer: 0..((1 shl 25)-1);
+      end;
+    __targetFrameSize: NSSize;
+    __targetGridSize: NSSize;
+    __targetUnfilledViewSpace: NSSize;
+    __targetNumberOfGridRows: culong;
+    __targetNumberOfGridColumns: culong;
+    __targetItems: NSMutableArray;
+    __appliedFrameSize: NSSize;
+    __appliedGridSize: NSSize;
+    __appliedUnfilledViewSpace: NSSize;
+    __appliedNumberOfGridRows: culong;
+    __appliedNumberOfGridColumns: culong;
+    __appliedItems: NSMutableArray;
+    __appliedItemsAsSet: NSMutableSet;
+    __appliedRemovedItemsAsSet: NSMutableSet;
+    __animationDuration: NSTimeInterval;
+    __animation: NSViewAnimation;
+    __hideItems: NSMutableArray;
+    __showItems: NSMutableArray;
+    
+  public
+    class function alloc: NSCollectionView; message 'alloc';
+
+    function isFirstResponder: Boolean; message 'isFirstResponder';
+    procedure setContent(content_: NSArray); message 'setContent:';
+    function content: NSArray; message 'content';
+    procedure setSelectable(flag: Boolean); message 'setSelectable:';
+    function isSelectable: Boolean; message 'isSelectable';
+    procedure setAllowsMultipleSelection(flag: Boolean); message 'setAllowsMultipleSelection:';
+    function allowsMultipleSelection: Boolean; message 'allowsMultipleSelection';
+    procedure setSelectionIndexes(indexes: NSIndexSet); message 'setSelectionIndexes:';
+    function selectionIndexes: NSIndexSet; message 'selectionIndexes';
+    function newItemForRepresentedObject(object_: id): NSCollectionViewItem; message 'newItemForRepresentedObject:';
+    procedure setItemPrototype(prototype: NSCollectionViewItem); message 'setItemPrototype:';
+    function itemPrototype: NSCollectionViewItem; message 'itemPrototype';
+    procedure setMaxNumberOfRows(number: culong); message 'setMaxNumberOfRows:';
+    function maxNumberOfRows: culong; message 'maxNumberOfRows';
+    procedure setMaxNumberOfColumns(number: culong); message 'setMaxNumberOfColumns:';
+    function maxNumberOfColumns: culong; message 'maxNumberOfColumns';
+    procedure setMinItemSize(size: NSSize); message 'setMinItemSize:';
+    function minItemSize: NSSize; message 'minItemSize';
+    procedure setMaxItemSize(size: NSSize); message 'setMaxItemSize:';
+    function maxItemSize: NSSize; message 'maxItemSize';
+    procedure setBackgroundColors(colors: NSArray); message 'setBackgroundColors:';
+    function backgroundColors: NSArray; message 'backgroundColors';
+  end; external;
+
+{$endif}
+{$endif}

+ 169 - 0
packages/cocoaint/src/appkit/NSColor.inc

@@ -0,0 +1,169 @@
+{ Parsed from Appkit.framework NSColor.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCOLOR_PAS_H}
+{$define NSCOLOR_PAS_H}
+type
+  NSColorPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCOLOR_PAS_T}
+{$define NSCOLOR_PAS_T}
+
+{ Defines }
+const
+  NSAppKitVersionNumberWithPatternColorLeakFix = 641.0;
+
+{ CFString constants }
+var
+  NSSystemColorsDidChangeNotification: CFStringRef; external name '_NSSystemColorsDidChangeNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCOLOR_PAS_R}
+{$define NSCOLOR_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCOLOR_PAS_F}
+{$define NSCOLOR_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCOLOR_PAS_T}
+{$define NSCOLOR_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSColor = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCOLOR_PAS_C}
+{$define NSCOLOR_PAS_C}
+
+{ NSColor }
+  NSColor = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+    
+  public
+    class function alloc: NSColor; message 'alloc';
+
+    class function colorWithCalibratedWhite_alpha(white: CGFloat; alpha: CGFloat): NSColor; message 'colorWithCalibratedWhite:alpha:';
+    class function colorWithCalibratedHue_saturation_brightness_alpha(hue: CGFloat; saturation: CGFloat; brightness: CGFloat; alpha: CGFloat): NSColor; message 'colorWithCalibratedHue:saturation:brightness:alpha:';
+    class function colorWithCalibratedRed_green_blue_alpha(red: CGFloat; green: CGFloat; blue: CGFloat; alpha: CGFloat): NSColor; message 'colorWithCalibratedRed:green:blue:alpha:';
+    class function colorWithDeviceWhite_alpha(white: CGFloat; alpha: CGFloat): NSColor; message 'colorWithDeviceWhite:alpha:';
+    class function colorWithDeviceHue_saturation_brightness_alpha(hue: CGFloat; saturation: CGFloat; brightness: CGFloat; alpha: CGFloat): NSColor; message 'colorWithDeviceHue:saturation:brightness:alpha:';
+    class function colorWithDeviceRed_green_blue_alpha(red: CGFloat; green: CGFloat; blue: CGFloat; alpha: CGFloat): NSColor; message 'colorWithDeviceRed:green:blue:alpha:';
+    class function colorWithDeviceCyan_magenta_yellow_black_alpha(cyan: CGFloat; magenta: CGFloat; yellow: CGFloat; black: CGFloat; alpha: CGFloat): NSColor; message 'colorWithDeviceCyan:magenta:yellow:black:alpha:';
+    class function colorWithCatalogName_colorName(listName: NSString; colorName: NSString): NSColor; message 'colorWithCatalogName:colorName:';
+    class function colorWithColorSpace_components_count(space: NSColorSpace; var components: CGFloat; numberOfComponents_: clong): NSColor; message 'colorWithColorSpace:components:count:';
+    class function blackColor: NSColor; message 'blackColor';
+    class function darkGrayColor: NSColor; message 'darkGrayColor';
+    class function lightGrayColor: NSColor; message 'lightGrayColor';
+    class function whiteColor: NSColor; message 'whiteColor';
+    class function grayColor: NSColor; message 'grayColor';
+    class function redColor: NSColor; message 'redColor';
+    class function greenColor: NSColor; message 'greenColor';
+    class function blueColor: NSColor; message 'blueColor';
+    class function cyanColor: NSColor; message 'cyanColor';
+    class function yellowColor: NSColor; message 'yellowColor';
+    class function magentaColor: NSColor; message 'magentaColor';
+    class function orangeColor: NSColor; message 'orangeColor';
+    class function purpleColor: NSColor; message 'purpleColor';
+    class function brownColor: NSColor; message 'brownColor';
+    class function clearColor: NSColor; message 'clearColor';
+    class function controlShadowColor: NSColor; message 'controlShadowColor';
+    class function controlDarkShadowColor: NSColor; message 'controlDarkShadowColor';
+    class function controlColor: NSColor; message 'controlColor';
+    class function controlHighlightColor: NSColor; message 'controlHighlightColor';
+    class function controlLightHighlightColor: NSColor; message 'controlLightHighlightColor';
+    class function controlTextColor: NSColor; message 'controlTextColor';
+    class function controlBackgroundColor: NSColor; message 'controlBackgroundColor';
+    class function selectedControlColor: NSColor; message 'selectedControlColor';
+    class function secondarySelectedControlColor: NSColor; message 'secondarySelectedControlColor';
+    class function selectedControlTextColor: NSColor; message 'selectedControlTextColor';
+    class function disabledControlTextColor: NSColor; message 'disabledControlTextColor';
+    class function textColor: NSColor; message 'textColor';
+    class function textBackgroundColor: NSColor; message 'textBackgroundColor';
+    class function selectedTextColor: NSColor; message 'selectedTextColor';
+    class function selectedTextBackgroundColor: NSColor; message 'selectedTextBackgroundColor';
+    class function gridColor: NSColor; message 'gridColor';
+    class function keyboardFocusIndicatorColor: NSColor; message 'keyboardFocusIndicatorColor';
+    class function windowBackgroundColor: NSColor; message 'windowBackgroundColor';
+    class function scrollBarColor: NSColor; message 'scrollBarColor';
+    class function knobColor: NSColor; message 'knobColor';
+    class function selectedKnobColor: NSColor; message 'selectedKnobColor';
+    class function windowFrameColor: NSColor; message 'windowFrameColor';
+    class function windowFrameTextColor: NSColor; message 'windowFrameTextColor';
+    class function selectedMenuItemColor: NSColor; message 'selectedMenuItemColor';
+    class function selectedMenuItemTextColor: NSColor; message 'selectedMenuItemTextColor';
+    class function highlightColor: NSColor; message 'highlightColor';
+    class function shadowColor: NSColor; message 'shadowColor';
+    class function headerColor: NSColor; message 'headerColor';
+    class function headerTextColor: NSColor; message 'headerTextColor';
+    class function alternateSelectedControlColor: NSColor; message 'alternateSelectedControlColor';
+    class function alternateSelectedControlTextColor: NSColor; message 'alternateSelectedControlTextColor';
+    class function controlAlternatingRowBackgroundColors: NSArray; message 'controlAlternatingRowBackgroundColors';
+    function highlightWithLevel(val: CGFloat): NSColor; message 'highlightWithLevel:';
+    function shadowWithLevel(val: CGFloat): NSColor; message 'shadowWithLevel:';
+    class function colorForControlTint(controlTint: NSControlTint): NSColor; message 'colorForControlTint:';
+    class function currentControlTint: NSControlTint; message 'currentControlTint';
+    procedure set_; message 'set';
+    procedure setFill; message 'setFill';
+    procedure setStroke; message 'setStroke';
+    function colorSpaceName: NSString; message 'colorSpaceName';
+    function colorUsingColorSpaceName(colorSpace_: NSString): NSColor; message 'colorUsingColorSpaceName:';
+    function colorUsingColorSpaceName_device(colorSpace_: NSString; deviceDescription: NSDictionary): NSColor; message 'colorUsingColorSpaceName:device:';
+    function colorUsingColorSpace(space: NSColorSpace): NSColor; message 'colorUsingColorSpace:';
+    function blendedColorWithFraction_ofColor(fraction: CGFloat; color: NSColor): NSColor; message 'blendedColorWithFraction:ofColor:';
+    function colorWithAlphaComponent(alpha: CGFloat): NSColor; message 'colorWithAlphaComponent:';
+    function catalogNameComponent: NSString; message 'catalogNameComponent';
+    function colorNameComponent: NSString; message 'colorNameComponent';
+    function localizedCatalogNameComponent: NSString; message 'localizedCatalogNameComponent';
+    function localizedColorNameComponent: NSString; message 'localizedColorNameComponent';
+    function redComponent: CGFloat; message 'redComponent';
+    function greenComponent: CGFloat; message 'greenComponent';
+    function blueComponent: CGFloat; message 'blueComponent';
+    procedure getRed_green_blue_alpha(var red: CGFloat; var green: CGFloat; var blue: CGFloat; var alpha: CGFloat); message 'getRed:green:blue:alpha:';
+    function hueComponent: CGFloat; message 'hueComponent';
+    function saturationComponent: CGFloat; message 'saturationComponent';
+    function brightnessComponent: CGFloat; message 'brightnessComponent';
+    procedure getHue_saturation_brightness_alpha(var hue: CGFloat; var saturation: CGFloat; var brightness: CGFloat; var alpha: CGFloat); message 'getHue:saturation:brightness:alpha:';
+    function whiteComponent: CGFloat; message 'whiteComponent';
+    procedure getWhite_alpha(var white: CGFloat; var alpha: CGFloat); message 'getWhite:alpha:';
+    function cyanComponent: CGFloat; message 'cyanComponent';
+    function magentaComponent: CGFloat; message 'magentaComponent';
+    function yellowComponent: CGFloat; message 'yellowComponent';
+    function blackComponent: CGFloat; message 'blackComponent';
+    procedure getCyan_magenta_yellow_black_alpha(var cyan: CGFloat; var magenta: CGFloat; var yellow: CGFloat; var black: CGFloat; var alpha: CGFloat); message 'getCyan:magenta:yellow:black:alpha:';
+    function colorSpace: NSColorSpace; message 'colorSpace';
+    function numberOfComponents: clong; message 'numberOfComponents';
+    procedure getComponents(var components: CGFloat); message 'getComponents:';
+    function alphaComponent: CGFloat; message 'alphaComponent';
+    class function colorFromPasteboard(pasteBoard: NSPasteboard): NSColor; message 'colorFromPasteboard:';
+    procedure writeToPasteboard(pasteBoard: NSPasteboard); message 'writeToPasteboard:';
+    class function colorWithPatternImage(image: NSImage): NSColor; message 'colorWithPatternImage:';
+    function patternImage: NSImage; message 'patternImage';
+    procedure drawSwatchInRect(rect: NSRect); message 'drawSwatchInRect:';
+    class procedure setIgnoresAlpha(flag: Boolean); message 'setIgnoresAlpha:';
+    class function ignoresAlpha: Boolean; message 'ignoresAlpha';
+
+    { Category: NSQuartzCoreAdditions }
+    class function colorWithCIColor(var color: CIColor): NSColor; message 'colorWithCIColor:';
+  end; external;
+
+{$endif}
+{$endif}

+ 98 - 0
packages/cocoaint/src/appkit/NSColorList.inc

@@ -0,0 +1,98 @@
+{ Parsed from Appkit.framework NSColorList.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCOLORLIST_PAS_H}
+{$define NSCOLORLIST_PAS_H}
+type
+  NSColorListPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCOLORLIST_PAS_T}
+{$define NSCOLORLIST_PAS_T}
+
+{ CFString constants }
+var
+  NSColorListDidChangeNotification: CFStringRef; external name '_NSColorListDidChangeNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCOLORLIST_PAS_R}
+{$define NSCOLORLIST_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCOLORLIST_PAS_F}
+{$define NSCOLORLIST_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCOLORLIST_PAS_T}
+{$define NSCOLORLIST_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSColorList = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCOLORLIST_PAS_C}
+{$define NSCOLORLIST_PAS_C}
+
+{ NSColorList }
+  NSColorList = objcclass(NSObject, NSCodingProtocol)
+  private
+    __keyArray: NSMutableArray;
+    __colorArray: NSMutableArray;
+    __keyToIndexTable: CFMutableDictionaryRef;
+    __name: NSString;
+    __printerType: NSString;
+    __fileName: NSString;
+    __flags: bitpacked record
+        colorsLoaded: 0..1;
+        editable: 0..1;
+        hasDeviceSpecificLists: 0..1;
+        dirty: 0..1;
+        hasFrozen: 0..1;
+        notificationsDisabled: 0..1;
+        hasAttemptedLoadingBundleForDirectory: 0..1;
+        isProfileBased: 0..1;
+        int: 0..((1 shl 24)-1);
+        {$ifdef cpu64}
+        int: 0..((1 shl 32)-1);
+        {$endif}
+      end;
+    __clAuxiliaryStorage: id;
+    
+  public
+    class function alloc: NSColorList; message 'alloc';
+
+    class function availableColorLists: NSArray; message 'availableColorLists';
+    class function colorListNamed(name_: NSString): NSColorList; message 'colorListNamed:';
+    function initWithName(name_: NSString): id; message 'initWithName:';
+    function initWithName_fromFile(name_: NSString; path: NSString): id; message 'initWithName:fromFile:';
+    function name: NSString; message 'name';
+    procedure setColor_forKey(color: NSColor; key: NSString); message 'setColor:forKey:';
+    procedure insertColor_key_atIndex(color: NSColor; key: NSString; loc: culong); message 'insertColor:key:atIndex:';
+    procedure removeColorWithKey(key: NSString); message 'removeColorWithKey:';
+    function colorWithKey(key: NSString): NSColor; message 'colorWithKey:';
+    function allKeys: NSArray; message 'allKeys';
+    function isEditable: Boolean; message 'isEditable';
+    function writeToFile(path: NSString): Boolean; message 'writeToFile:';
+    procedure removeFile; message 'removeFile';
+  end; external;
+
+{$endif}
+{$endif}

+ 143 - 0
packages/cocoaint/src/appkit/NSColorPanel.inc

@@ -0,0 +1,143 @@
+{ Parsed from Appkit.framework NSColorPanel.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCOLORPANEL_PAS_H}
+{$define NSCOLORPANEL_PAS_H}
+type
+  NSColorPanelPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCOLORPANEL_PAS_T}
+{$define NSCOLORPANEL_PAS_T}
+
+{ Types }
+type
+  NSColorPanelMode = clong;
+
+{ Constants }
+
+const
+  NSNoModeColorPanel = -1;
+  NSGrayModeColorPanel = 0;
+  NSRGBModeColorPanel = 1;
+  NSCMYKModeColorPanel = 2;
+  NSHSBModeColorPanel = 3;
+  NSCustomPaletteModeColorPanel = 4;
+  NSColorListModeColorPanel = 5;
+  NSWheelModeColorPanel = 6;
+  NSCrayonModeColorPanel = 7;
+
+const
+  NSColorPanelGrayModeMask = $00000001;
+  NSColorPanelRGBModeMask = $00000002;
+  NSColorPanelCMYKModeMask = $00000004;
+  NSColorPanelHSBModeMask = $00000008;
+  NSColorPanelCustomPaletteModeMask = $00000010;
+  NSColorPanelColorListModeMask = $00000020;
+  NSColorPanelWheelModeMask = $00000040;
+  NSColorPanelCrayonModeMask = $00000080;
+  NSColorPanelAllModesMask = $0000ffff;
+
+{ CFString constants }
+var
+  NSColorPanelColorDidChangeNotification: CFStringRef; external name '_NSColorPanelColorDidChangeNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCOLORPANEL_PAS_R}
+{$define NSCOLORPANEL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCOLORPANEL_PAS_F}
+{$define NSCOLORPANEL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCOLORPANEL_PAS_T}
+{$define NSCOLORPANEL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSColorPanel = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCOLORPANEL_PAS_C}
+{$define NSCOLORPANEL_PAS_C}
+
+{ NSColorPanel }
+  NSColorPanel = objcclass(NSPanel)
+  private
+    __colorSwatch: id;
+    __reserved1: id;
+    __colorWell: id;
+    __pickersWithLoadedViews: NSMutableArray;
+    __magnifyButton: id;
+    __middleView: id;
+    __opacitySlider: id;
+    __opacityText: id;
+    __opacityView: id;
+    __modalButtons: id;
+    __pickerView: id;
+    __customViewsList: id;
+    __customPickerList: id;
+    __currViewObject: id;
+    __boxAboveSwatch: id;
+    __target: id;
+    __accessoryView: id;
+    __action: SEL;
+    __minColorPanelSize: NSSize;
+    __maxColorPanelSize: NSSize;
+    __reserved2: NSSize;
+    __reserved3: NSSize;
+    __resizeDimple: id;
+    __reserved5: Boolean;
+    __reserved6: Boolean;
+    __handlingOpacityMoveAction: Boolean;
+    __ignoreConstraints: Boolean;
+    __continuous: Boolean;
+    __allowColorSetting: Boolean;
+    __stillInitializing: Boolean;
+    __opacityTextController: id;
+    
+  public
+    class function alloc: NSColorPanel; message 'alloc';
+
+    class function sharedColorPanel: NSColorPanel; message 'sharedColorPanel';
+    class function sharedColorPanelExists: Boolean; message 'sharedColorPanelExists';
+    class function dragColor_withEvent_fromView(color_: NSColor; theEvent: NSEvent; sourceView: NSView): Boolean; message 'dragColor:withEvent:fromView:';
+    class procedure setPickerMask(mask: culong); message 'setPickerMask:';
+    class procedure setPickerMode(mode_: NSColorPanelMode); message 'setPickerMode:';
+    procedure setAccessoryView(aView: NSView); message 'setAccessoryView:';
+    function accessoryView: NSView; message 'accessoryView';
+    procedure setContinuous(flag: Boolean); message 'setContinuous:';
+    function isContinuous: Boolean; message 'isContinuous';
+    procedure setShowsAlpha(flag: Boolean); message 'setShowsAlpha:';
+    function showsAlpha: Boolean; message 'showsAlpha';
+    procedure setMode(mode_: NSColorPanelMode); message 'setMode:';
+    function mode: NSColorPanelMode; message 'mode';
+    procedure setColor(color_: NSColor); message 'setColor:';
+    function color: NSColor; message 'color';
+    function alpha: CGFloat; message 'alpha';
+    procedure setAction(aSelector: SEL); message 'setAction:';
+    procedure setTarget(anObject: id); message 'setTarget:';
+    procedure attachColorList(colorList: NSColorList); message 'attachColorList:';
+    procedure detachColorList(colorList: NSColorList); message 'detachColorList:';
+  end; external;
+
+{$endif}
+{$endif}

+ 73 - 0
packages/cocoaint/src/appkit/NSColorPicker.inc

@@ -0,0 +1,73 @@
+{ Parsed from Appkit.framework NSColorPicker.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCOLORPICKER_PAS_H}
+{$define NSCOLORPICKER_PAS_H}
+type
+  NSColorPickerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCOLORPICKER_PAS_T}
+{$define NSCOLORPICKER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCOLORPICKER_PAS_R}
+{$define NSCOLORPICKER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCOLORPICKER_PAS_F}
+{$define NSCOLORPICKER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCOLORPICKER_PAS_T}
+{$define NSCOLORPICKER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSColorPicker = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCOLORPICKER_PAS_C}
+{$define NSCOLORPICKER_PAS_C}
+
+{ NSColorPicker }
+  NSColorPicker = objcclass(NSObject, NSColorPickingDefaultProtocol)
+  private
+    __imageObject: id;
+    __colorPanel: NSColorPanel;
+    __buttonToolTip: NSString;
+    
+  public
+    class function alloc: NSColorPicker; message 'alloc';
+
+    function initWithPickerMask_colorPanel(mask: culong; owningColorPanel: NSColorPanel): id; message 'initWithPickerMask:colorPanel:';
+    function colorPanel: NSColorPanel; message 'colorPanel';
+    function provideNewButtonImage: NSImage; message 'provideNewButtonImage';
+    procedure insertNewButtonImage_in(newButtonImage: NSImage; buttonCell: NSButtonCell); message 'insertNewButtonImage:in:';
+    procedure viewSizeChanged(sender: id); message 'viewSizeChanged:';
+    procedure attachColorList(colorList: NSColorList); message 'attachColorList:';
+    procedure detachColorList(colorList: NSColorList); message 'detachColorList:';
+    procedure setMode(mode: NSColorPanelMode); message 'setMode:';
+    function buttonToolTip: NSString; message 'buttonToolTip';
+    function minContentSize: NSSize; message 'minContentSize';
+  end; external;
+
+{$endif}
+{$endif}

+ 64 - 0
packages/cocoaint/src/appkit/NSColorPicking.inc

@@ -0,0 +1,64 @@
+{ Parsed from Appkit.framework NSColorPicking.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSCOLORPICKING_PAS_T}
+{$define NSCOLORPICKING_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCOLORPICKING_PAS_R}
+{$define NSCOLORPICKING_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCOLORPICKING_PAS_F}
+{$define NSCOLORPICKING_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCOLORPICKING_PAS_T}
+{$define NSCOLORPICKING_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSColorPickingDefaultProtocol = objcprotocol;
+  NSColorPickingCustomProtocol = objcprotocol;
+
+{$endif}
+{$ifdef PROTOCOLS}
+{$ifndef NSCOLORPICKING_PAS_P}
+{$define NSCOLORPICKING_PAS_P}
+  
+{ NSColorPickingDefault Protocol }
+  NSColorPickingDefaultProtocol = objcprotocol
+    function initWithPickerMask_colorPanel(mask: culong; owningColorPanel: NSColorPanel): id; message 'initWithPickerMask:colorPanel:';
+    function provideNewButtonImage: NSImage; message 'provideNewButtonImage';
+    procedure insertNewButtonImage_in(newButtonImage: NSImage; buttonCell: NSButtonCell); message 'insertNewButtonImage:in:';
+    procedure viewSizeChanged(sender: id); message 'viewSizeChanged:';
+    procedure alphaControlAddedOrRemoved(sender: id); message 'alphaControlAddedOrRemoved:';
+    procedure attachColorList(colorList: NSColorList); message 'attachColorList:';
+    procedure detachColorList(colorList: NSColorList); message 'detachColorList:';
+    procedure setMode(mode: NSColorPanelMode); message 'setMode:';
+    function buttonToolTip: NSString; message 'buttonToolTip';
+    function minContentSize: NSSize; message 'minContentSize';
+  end; external name 'NSColorPickingDefault';
+  
+{ NSColorPickingCustom Protocol }
+  NSColorPickingCustomProtocol = objcprotocol
+    function supportsMode(mode: NSColorPanelMode): Boolean; message 'supportsMode:';
+    function currentMode: NSColorPanelMode; message 'currentMode';
+    function provideNewView(initialRequest: Boolean): NSView; message 'provideNewView:';
+    procedure setColor(newColor: NSColor); message 'setColor:';
+  end; external name 'NSColorPickingCustom';
+{$endif}
+{$endif}

+ 105 - 0
packages/cocoaint/src/appkit/NSColorSpace.inc

@@ -0,0 +1,105 @@
+{ Parsed from Appkit.framework NSColorSpace.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCOLORSPACE_PAS_H}
+{$define NSCOLORSPACE_PAS_H}
+type
+  NSColorSpacePointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCOLORSPACE_PAS_T}
+{$define NSCOLORSPACE_PAS_T}
+
+{ Constants }
+
+const
+  NSUnknownColorSpaceModel = -1;
+  NSGrayColorSpaceModel = 0;
+  NSRGBColorSpaceModel = 1;
+  NSCMYKColorSpaceModel = 2;
+  NSLABColorSpaceModel = 3;
+  NSDeviceNColorSpaceModel = 4;
+  NSIndexedColorSpaceModel = 5;
+  NSPatternColorSpaceModel = 6;
+
+{ Types }
+type
+  NSColorSpaceModel = clong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCOLORSPACE_PAS_R}
+{$define NSCOLORSPACE_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCOLORSPACE_PAS_F}
+{$define NSCOLORSPACE_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCOLORSPACE_PAS_T}
+{$define NSCOLORSPACE_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSColorSpace = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCOLORSPACE_PAS_C}
+{$define NSCOLORSPACE_PAS_C}
+
+{ NSColorSpace }
+  NSColorSpace = objcclass(NSObject, NSCodingProtocol)
+  private
+    __profile: id;
+    __flags: bitpacked record
+        colorSpaceID: 0..((1 shl 8)-1);
+        storageType: 0..((1 shl 3)-1);
+        replacedDuringUnarchiving: 0..1;
+        int: 0..((1 shl 20)-1);
+        {$ifdef cpu64}
+        int: 0..((1 shl 32)-1);
+        {$endif}
+      end;
+    ___cgColorSpace: Pointer;
+    __reserved: Pointer;
+    
+  public
+    class function alloc: NSColorSpace; message 'alloc';
+
+    function initWithICCProfileData(iccData: NSData): id; message 'initWithICCProfileData:';
+    function ICCProfileData: NSData; message 'ICCProfileData';
+    function initWithColorSyncProfile(prof: Pointer): id; message 'initWithColorSyncProfile:';
+    function colorSyncProfile: Pointer; message 'colorSyncProfile';
+    function initWithCGColorSpace(CGColorSpace_: CGColorSpaceRef): id; message 'initWithCGColorSpace:';
+    function CGColorSpace: CGColorSpaceRef; message 'CGColorSpace';
+    function numberOfColorComponents: clong; message 'numberOfColorComponents';
+    function colorSpaceModel: NSColorSpaceModel; message 'colorSpaceModel';
+    function localizedName: NSString; message 'localizedName';
+    class function genericRGBColorSpace: NSColorSpace; message 'genericRGBColorSpace';
+    class function genericGrayColorSpace: NSColorSpace; message 'genericGrayColorSpace';
+    class function genericCMYKColorSpace: NSColorSpace; message 'genericCMYKColorSpace';
+    class function deviceRGBColorSpace: NSColorSpace; message 'deviceRGBColorSpace';
+    class function deviceGrayColorSpace: NSColorSpace; message 'deviceGrayColorSpace';
+    class function deviceCMYKColorSpace: NSColorSpace; message 'deviceCMYKColorSpace';
+    class function sRGBColorSpace: NSColorSpace; message 'sRGBColorSpace';
+    class function adobeRGB1998ColorSpace: NSColorSpace; message 'adobeRGB1998ColorSpace';
+  end; external;
+
+{$endif}
+{$endif}

+ 79 - 0
packages/cocoaint/src/appkit/NSColorWell.inc

@@ -0,0 +1,79 @@
+{ Parsed from Appkit.framework NSColorWell.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCOLORWELL_PAS_H}
+{$define NSCOLORWELL_PAS_H}
+type
+  NSColorWellPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCOLORWELL_PAS_T}
+{$define NSCOLORWELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCOLORWELL_PAS_R}
+{$define NSCOLORWELL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCOLORWELL_PAS_F}
+{$define NSCOLORWELL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCOLORWELL_PAS_T}
+{$define NSCOLORWELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSColorWell = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCOLORWELL_PAS_C}
+{$define NSCOLORWELL_PAS_C}
+
+{ NSColorWell }
+  NSColorWell = objcclass(NSControl)
+  private
+    __color: NSColor;
+    __target: id;
+    __action: SEL;
+    __cwFlags: bitpacked record
+        isActive: 0..1;
+        isBordered: 0..1;
+        cantDraw: 0..1;
+        isNotContinuous: 0..1;
+        reservedColorWell: 0..((1 shl 28)-1);
+      end;
+    
+  public
+    class function alloc: NSColorWell; message 'alloc';
+
+    procedure deactivate; message 'deactivate';
+    procedure activate(exclusive: Boolean); message 'activate:';
+    function isActive: Boolean; message 'isActive';
+    procedure drawWellInside(insideRect: NSRect); message 'drawWellInside:';
+    function isBordered: Boolean; message 'isBordered';
+    procedure setBordered(flag: Boolean); message 'setBordered:';
+    procedure takeColorFrom(sender: id); message 'takeColorFrom:';
+    procedure setColor(color_: NSColor); message 'setColor:';
+    function color: NSColor; message 'color';
+  end; external;
+
+{$endif}
+{$endif}

+ 103 - 0
packages/cocoaint/src/appkit/NSComboBox.inc

@@ -0,0 +1,103 @@
+{ Parsed from Appkit.framework NSComboBox.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCOMBOBOX_PAS_H}
+{$define NSCOMBOBOX_PAS_H}
+type
+  NSComboBoxPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCOMBOBOX_PAS_T}
+{$define NSCOMBOBOX_PAS_T}
+
+{ CFString constants }
+var
+  NSComboBoxWillPopUpNotification: CFStringRef; external name '_NSComboBoxWillPopUpNotification';
+  NSComboBoxWillDismissNotification: CFStringRef; external name '_NSComboBoxWillDismissNotification';
+  NSComboBoxSelectionDidChangeNotification: CFStringRef; external name '_NSComboBoxSelectionDidChangeNotification';
+  NSComboBoxSelectionIsChangingNotification: CFStringRef; external name '_NSComboBoxSelectionIsChangingNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCOMBOBOX_PAS_R}
+{$define NSCOMBOBOX_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCOMBOBOX_PAS_F}
+{$define NSCOMBOBOX_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCOMBOBOX_PAS_T}
+{$define NSCOMBOBOX_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSComboBox = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCOMBOBOX_PAS_C}
+{$define NSCOMBOBOX_PAS_C}
+
+{ NSComboBox }
+  NSComboBox = objcclass(NSTextField)
+  private
+    __dataSource: id;
+    
+  public
+    class function alloc: NSComboBox; message 'alloc';
+
+    function hasVerticalScroller: Boolean; message 'hasVerticalScroller';
+    procedure setHasVerticalScroller(flag: Boolean); message 'setHasVerticalScroller:';
+    function intercellSpacing: NSSize; message 'intercellSpacing';
+    procedure setIntercellSpacing(aSize: NSSize); message 'setIntercellSpacing:';
+    function itemHeight: CGFloat; message 'itemHeight';
+    procedure setItemHeight(itemHeight_: CGFloat); message 'setItemHeight:';
+    function numberOfVisibleItems: clong; message 'numberOfVisibleItems';
+    procedure setNumberOfVisibleItems(visibleItems: clong); message 'setNumberOfVisibleItems:';
+    procedure setButtonBordered(flag: Boolean); message 'setButtonBordered:';
+    function isButtonBordered: Boolean; message 'isButtonBordered';
+    procedure reloadData; message 'reloadData';
+    procedure noteNumberOfItemsChanged; message 'noteNumberOfItemsChanged';
+    procedure setUsesDataSource(flag: Boolean); message 'setUsesDataSource:';
+    function usesDataSource: Boolean; message 'usesDataSource';
+    procedure scrollItemAtIndexToTop(index: clong); message 'scrollItemAtIndexToTop:';
+    procedure scrollItemAtIndexToVisible(index: clong); message 'scrollItemAtIndexToVisible:';
+    procedure selectItemAtIndex(index: clong); message 'selectItemAtIndex:';
+    procedure deselectItemAtIndex(index: clong); message 'deselectItemAtIndex:';
+    function indexOfSelectedItem: clong; message 'indexOfSelectedItem';
+    function numberOfItems: clong; message 'numberOfItems';
+    function completes: Boolean; message 'completes';
+    procedure setCompletes(completes_: Boolean); message 'setCompletes:';
+    function dataSource: id; message 'dataSource';
+    procedure setDataSource(aSource: id); message 'setDataSource:';
+    procedure addItemWithObjectValue(object_: id); message 'addItemWithObjectValue:';
+    procedure addItemsWithObjectValues(objects: NSArray); message 'addItemsWithObjectValues:';
+    procedure insertItemWithObjectValue_atIndex(object_: id; index: clong); message 'insertItemWithObjectValue:atIndex:';
+    procedure removeItemWithObjectValue(object_: id); message 'removeItemWithObjectValue:';
+    procedure removeItemAtIndex(index: clong); message 'removeItemAtIndex:';
+    procedure removeAllItems; message 'removeAllItems';
+    procedure selectItemWithObjectValue(object_: id); message 'selectItemWithObjectValue:';
+    function itemObjectValueAtIndex(index: clong): id; message 'itemObjectValueAtIndex:';
+    function objectValueOfSelectedItem: id; message 'objectValueOfSelectedItem';
+    function indexOfItemWithObjectValue(object_: id): clong; message 'indexOfItemWithObjectValue:';
+    function objectValues: NSArray; message 'objectValues';
+  end; external;
+
+{$endif}
+{$endif}

+ 80 - 0
packages/cocoaint/src/appkit/NSComboBoxCell.inc

@@ -0,0 +1,80 @@
+{ Parsed from Appkit.framework NSComboBoxCell.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCOMBOBOXCELL_PAS_H}
+{$define NSCOMBOBOXCELL_PAS_H}
+type
+  NSComboBoxCellPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCOMBOBOXCELL_PAS_T}
+{$define NSCOMBOBOXCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCOMBOBOXCELL_PAS_R}
+{$define NSCOMBOBOXCELL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCOMBOBOXCELL_PAS_F}
+{$define NSCOMBOBOXCELL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCOMBOBOXCELL_PAS_T}
+{$define NSCOMBOBOXCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSComboBoxCell = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCOMBOBOXCELL_PAS_C}
+{$define NSCOMBOBOXCELL_PAS_C}
+
+{ NSComboBoxCell }
+  NSComboBoxCell = objcclass(NSTextFieldCell)
+  private
+    __delegate: id;
+    __dataSource: id;
+    __cbcFlags: bitpacked record
+        usesDataSource: 0..1;
+        completes: 0..1;
+        buttonBordered: 0..1;
+        popUpIsUp: 0..1;
+        filteringEvents: 0..1;
+        drawing: 0..1;
+        synchronizingSelection: 0..1;
+        subclassOverridesBoundsForButtonCell: 0..1;
+        reserved: 0..((1 shl 8)-1);
+        visibleItems: 0..((1 shl 16)-1);
+      end;
+    __buttonCell: NSButtonCell;
+    __tableView: NSTableView;
+    __scrollView: NSScrollView;
+    __popUp: NSWindow;
+    __popUpList: NSMutableArray;
+    __cellFrame: NSRect; {garbage collector: __strong }
+    __reserved: Pointer;
+    
+  public
+    class function alloc: NSComboBoxCell; message 'alloc';
+  end; external;
+
+{$endif}
+{$endif}

+ 146 - 0
packages/cocoaint/src/appkit/NSControl.inc

@@ -0,0 +1,146 @@
+{ Parsed from Appkit.framework NSControl.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCONTROL_PAS_H}
+{$define NSCONTROL_PAS_H}
+type
+  NSControlPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCONTROL_PAS_T}
+{$define NSCONTROL_PAS_T}
+
+{ CFString constants }
+var
+  NSControlTextDidBeginEditingNotification: CFStringRef; external name '_NSControlTextDidBeginEditingNotification';
+  NSControlTextDidEndEditingNotification: CFStringRef; external name '_NSControlTextDidEndEditingNotification';
+  NSControlTextDidChangeNotification: CFStringRef; external name '_NSControlTextDidChangeNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCONTROL_PAS_R}
+{$define NSCONTROL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCONTROL_PAS_F}
+{$define NSCONTROL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCONTROL_PAS_T}
+{$define NSCONTROL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSControl = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCONTROL_PAS_C}
+{$define NSCONTROL_PAS_C}
+
+{ NSControl }
+  NSControl = objcclass(NSView)
+  private
+    __tag: clong;
+    __cell: id;
+    __conFlags: bitpacked record
+        enabled: 0..1;
+        ignoreMultiClick: 0..1;
+        calcSize: 0..1;
+        drawingAncestor: 0..1;
+        ibReserved: 0..1;
+        updateCellFocus: 0..1;
+        reserved: 0..((1 shl 26)-1);
+      end;
+    
+  public
+    class function alloc: NSControl; message 'alloc';
+
+    class procedure setCellClass(factoryId: Pobjc_class); message 'setCellClass:';
+    class function cellClass: Pobjc_class; message 'cellClass';
+    function initWithFrame(frameRect: NSRect): id; message 'initWithFrame:';
+    procedure sizeToFit; message 'sizeToFit';
+    procedure calcSize; message 'calcSize';
+    function cell: id; message 'cell';
+    procedure setCell(aCell: NSCell); message 'setCell:';
+    function selectedCell: id; message 'selectedCell';
+    function target: id; message 'target';
+    procedure setTarget(anObject: id); message 'setTarget:';
+    function action: SEL; message 'action';
+    procedure setAction(aSelector: SEL); message 'setAction:';
+    function tag: clong; message 'tag';
+    procedure setTag(anInt: clong); message 'setTag:';
+    function selectedTag: clong; message 'selectedTag';
+    procedure setIgnoresMultiClick(flag: Boolean); message 'setIgnoresMultiClick:';
+    function ignoresMultiClick: Boolean; message 'ignoresMultiClick';
+    function sendActionOn(mask: clong): clong; message 'sendActionOn:';
+    function isContinuous: Boolean; message 'isContinuous';
+    procedure setContinuous(flag: Boolean); message 'setContinuous:';
+    function isEnabled: Boolean; message 'isEnabled';
+    procedure setEnabled(flag: Boolean); message 'setEnabled:';
+    procedure setFloatingPointFormat_left_right(autoRange: Boolean; leftDigits: culong; rightDigits: culong); message 'setFloatingPointFormat:left:right:';
+    function alignment: NSTextAlignment; message 'alignment';
+    procedure setAlignment(mode: NSTextAlignment); message 'setAlignment:';
+    function font: NSFont; message 'font';
+    procedure setFont(fontObj: NSFont); message 'setFont:';
+    procedure setFormatter(newFormatter: NSFormatter); message 'setFormatter:';
+    function formatter: id; message 'formatter';
+    procedure setObjectValue(obj: id); message 'setObjectValue:';
+    procedure setStringValue(aString: NSString); message 'setStringValue:';
+    procedure setIntValue(anInt: cint); message 'setIntValue:';
+    procedure setFloatValue(aFloat: single); message 'setFloatValue:';
+    procedure setDoubleValue(aDouble: double); message 'setDoubleValue:';
+    function objectValue: id; message 'objectValue';
+    function stringValue: NSString; message 'stringValue';
+    function intValue: cint; message 'intValue';
+    function floatValue: single; message 'floatValue';
+    function doubleValue: double; message 'doubleValue';
+    procedure setNeedsDisplay; message 'setNeedsDisplay';
+    procedure updateCell(aCell: NSCell); message 'updateCell:';
+    procedure updateCellInside(aCell: NSCell); message 'updateCellInside:';
+    procedure drawCellInside(aCell: NSCell); message 'drawCellInside:';
+    procedure drawCell(aCell: NSCell); message 'drawCell:';
+    procedure selectCell(aCell: NSCell); message 'selectCell:';
+    function sendAction_to(theAction: SEL; theTarget: id): Boolean; message 'sendAction:to:';
+    procedure takeIntValueFrom(sender: id); message 'takeIntValueFrom:';
+    procedure takeFloatValueFrom(sender: id); message 'takeFloatValueFrom:';
+    procedure takeDoubleValueFrom(sender: id); message 'takeDoubleValueFrom:';
+    procedure takeStringValueFrom(sender: id); message 'takeStringValueFrom:';
+    procedure takeObjectValueFrom(sender: id); message 'takeObjectValueFrom:';
+    function currentEditor: NSText; message 'currentEditor';
+    function abortEditing: Boolean; message 'abortEditing';
+    procedure validateEditing; message 'validateEditing';
+    procedure mouseDown(theEvent: NSEvent); message 'mouseDown:';
+    function baseWritingDirection: NSWritingDirection; message 'baseWritingDirection';
+    procedure setBaseWritingDirection(writingDirection: NSWritingDirection); message 'setBaseWritingDirection:';
+    function integerValue: clong; message 'integerValue';
+    procedure setIntegerValue(anInteger: clong); message 'setIntegerValue:';
+    procedure takeIntegerValueFrom(sender: id); message 'takeIntegerValueFrom:';
+
+    { Category: NSKeyboardUI }
+    procedure performClick(sender: id); message 'performClick:';
+    procedure setRefusesFirstResponder(flag: Boolean); message 'setRefusesFirstResponder:';
+    function refusesFirstResponder: Boolean; message 'refusesFirstResponder';
+
+    { Category: NSControlAttributedStringMethods }
+    function attributedStringValue: NSAttributedString; message 'attributedStringValue';
+    procedure setAttributedStringValue(obj: NSAttributedString); message 'setAttributedStringValue:';
+  end; external;
+
+{$endif}
+{$endif}

+ 86 - 0
packages/cocoaint/src/appkit/NSController.inc

@@ -0,0 +1,86 @@
+{ Parsed from Appkit.framework NSController.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCONTROLLER_PAS_H}
+{$define NSCONTROLLER_PAS_H}
+type
+  NSControllerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCONTROLLER_PAS_T}
+{$define NSCONTROLLER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCONTROLLER_PAS_R}
+{$define NSCONTROLLER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCONTROLLER_PAS_F}
+{$define NSCONTROLLER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCONTROLLER_PAS_T}
+{$define NSCONTROLLER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSController = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCONTROLLER_PAS_C}
+{$define NSCONTROLLER_PAS_C}
+
+{ NSController }
+  NSController = objcclass(NSObject, NSCodingProtocol)
+  private
+    __reserved: Pointer;
+    __reserved2: Pointer;
+    __specialPurposeType: cint;
+    __bindingAdaptor: id;
+    __editors: NSMutableArray;
+    __declaredKeys: NSMutableArray;
+    __dependentKeyToModelKeyTable: NSMutableDictionary;
+    __modelKeyToDependentKeyTable: NSMutableDictionary;
+    __modelKeysToRefreshEachTime: NSMutableArray;
+    __bindingsControllerFlags: bitpacked record
+        _alwaysPresentsApplicationModalAlerts: 0..1;
+        _refreshesAllModelKeys: 0..1;
+        _multipleObservedModelObjects: 0..1;
+        _isEditing: 0..1;
+        _reservedController: 0..((1 shl 28)-1);
+      end;
+    __reservedOther: NSMutableDictionary;
+    __modelObservingTracker: id;
+    __expectedObservingInfo: id;
+    __singleValueAccessor: id;
+    
+  public
+    class function alloc: NSController; message 'alloc';
+
+    procedure objectDidBeginEditing(editor: id); message 'objectDidBeginEditing:';
+    procedure objectDidEndEditing(editor: id); message 'objectDidEndEditing:';
+    procedure discardEditing; message 'discardEditing';
+    function commitEditing: Boolean; message 'commitEditing';
+    procedure commitEditingWithDelegate_didCommitSelector_contextInfo(delegate: id; didCommitSelector: SEL; contextInfo: Pointer); message 'commitEditingWithDelegate:didCommitSelector:contextInfo:';
+    function isEditing: Boolean; message 'isEditing';
+  end; external;
+
+{$endif}
+{$endif}

+ 102 - 0
packages/cocoaint/src/appkit/NSCursor.inc

@@ -0,0 +1,102 @@
+{ Parsed from Appkit.framework NSCursor.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCURSOR_PAS_H}
+{$define NSCURSOR_PAS_H}
+type
+  NSCursorPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCURSOR_PAS_T}
+{$define NSCURSOR_PAS_T}
+
+{ Defines }
+const
+  NSAppKitVersionNumberWithCursorSizeSupport = 682.0;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCURSOR_PAS_R}
+{$define NSCURSOR_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCURSOR_PAS_F}
+{$define NSCURSOR_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCURSOR_PAS_T}
+{$define NSCURSOR_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSCursor = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCURSOR_PAS_C}
+{$define NSCURSOR_PAS_C}
+
+{ NSCursor }
+  NSCursor = objcclass(NSObject, NSCodingProtocol)
+  private
+    __hotSpot: NSPoint;
+    __flags: bitpacked record
+        onMouseExited: 0..1;
+        onMouseEntered: 0..1;
+        cursorType: 0..((1 shl 8)-1);
+        int: 0..((1 shl 22)-1);
+      end;
+    __image: id;
+    
+  public
+    class function alloc: NSCursor; message 'alloc';
+
+    class function currentCursor: NSCursor; message 'currentCursor';
+    class function arrowCursor: NSCursor; message 'arrowCursor';
+    class function IBeamCursor: NSCursor; message 'IBeamCursor';
+    class function pointingHandCursor: NSCursor; message 'pointingHandCursor';
+    class function closedHandCursor: NSCursor; message 'closedHandCursor';
+    class function openHandCursor: NSCursor; message 'openHandCursor';
+    class function resizeLeftCursor: NSCursor; message 'resizeLeftCursor';
+    class function resizeRightCursor: NSCursor; message 'resizeRightCursor';
+    class function resizeLeftRightCursor: NSCursor; message 'resizeLeftRightCursor';
+    class function resizeUpCursor: NSCursor; message 'resizeUpCursor';
+    class function resizeDownCursor: NSCursor; message 'resizeDownCursor';
+    class function resizeUpDownCursor: NSCursor; message 'resizeUpDownCursor';
+    class function crosshairCursor: NSCursor; message 'crosshairCursor';
+    class function disappearingItemCursor: NSCursor; message 'disappearingItemCursor';
+    function initWithImage_hotSpot(newImage: NSImage; aPoint: NSPoint): id; message 'initWithImage:hotSpot:';
+    function initWithImage_foregroundColorHint_backgroundColorHint_hotSpot(newImage: NSImage; fg: NSColor; bg: NSColor; hotSpot_: NSPoint): id; message 'initWithImage:foregroundColorHint:backgroundColorHint:hotSpot:';
+    class procedure hide; message 'hide';
+    class procedure unhide; message 'unhide';
+    class procedure setHiddenUntilMouseMoves(flag: Boolean); message 'setHiddenUntilMouseMoves:';
+    class procedure pop; message 'pop';
+    function image: NSImage; message 'image';
+    function hotSpot: NSPoint; message 'hotSpot';
+    procedure push; message 'push';
+    procedure set_; message 'set';
+    procedure setOnMouseExited(flag: Boolean); message 'setOnMouseExited:';
+    procedure setOnMouseEntered(flag: Boolean); message 'setOnMouseEntered:';
+    function isSetOnMouseExited: Boolean; message 'isSetOnMouseExited';
+    function isSetOnMouseEntered: Boolean; message 'isSetOnMouseEntered';
+    procedure mouseEntered(theEvent: NSEvent); message 'mouseEntered:';
+    procedure mouseExited(theEvent: NSEvent); message 'mouseExited:';
+  end; external;
+
+{$endif}
+{$endif}

+ 66 - 0
packages/cocoaint/src/appkit/NSCustomImageRep.inc

@@ -0,0 +1,66 @@
+{ Parsed from Appkit.framework NSCustomImageRep.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSCUSTOMIMAGEREP_PAS_H}
+{$define NSCUSTOMIMAGEREP_PAS_H}
+type
+  NSCustomImageRepPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSCUSTOMIMAGEREP_PAS_T}
+{$define NSCUSTOMIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSCUSTOMIMAGEREP_PAS_R}
+{$define NSCUSTOMIMAGEREP_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSCUSTOMIMAGEREP_PAS_F}
+{$define NSCUSTOMIMAGEREP_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSCUSTOMIMAGEREP_PAS_T}
+{$define NSCUSTOMIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSCustomImageRep = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSCUSTOMIMAGEREP_PAS_C}
+{$define NSCUSTOMIMAGEREP_PAS_C}
+
+{ NSCustomImageRep }
+  NSCustomImageRep = objcclass(NSImageRep)
+  private
+    __drawMethod: SEL;
+    __drawObject: id;
+    __reserved: cuint;
+    
+  public
+    class function alloc: NSCustomImageRep; message 'alloc';
+
+    function initWithDrawSelector_delegate(aMethod: SEL; anObject: id): id; message 'initWithDrawSelector:delegate:';
+    function drawSelector: SEL; message 'drawSelector';
+    function delegate: id; message 'delegate';
+  end; external;
+
+{$endif}
+{$endif}

+ 91 - 0
packages/cocoaint/src/appkit/NSDatePicker.inc

@@ -0,0 +1,91 @@
+{ Parsed from Appkit.framework NSDatePicker.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSDATEPICKER_PAS_H}
+{$define NSDATEPICKER_PAS_H}
+type
+  NSDatePickerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSDATEPICKER_PAS_T}
+{$define NSDATEPICKER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSDATEPICKER_PAS_R}
+{$define NSDATEPICKER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSDATEPICKER_PAS_F}
+{$define NSDATEPICKER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSDATEPICKER_PAS_T}
+{$define NSDATEPICKER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSDatePicker = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSDATEPICKER_PAS_C}
+{$define NSDATEPICKER_PAS_C}
+
+{ NSDatePicker }
+  NSDatePicker = objcclass(NSControl)
+    
+  public
+    class function alloc: NSDatePicker; message 'alloc';
+
+    function datePickerStyle: NSDatePickerStyle; message 'datePickerStyle';
+    procedure setDatePickerStyle(newStyle: NSDatePickerStyle); message 'setDatePickerStyle:';
+    function isBezeled: Boolean; message 'isBezeled';
+    procedure setBezeled(flag: Boolean); message 'setBezeled:';
+    function isBordered: Boolean; message 'isBordered';
+    procedure setBordered(flag: Boolean); message 'setBordered:';
+    function drawsBackground: Boolean; message 'drawsBackground';
+    procedure setDrawsBackground(flag: Boolean); message 'setDrawsBackground:';
+    function backgroundColor: NSColor; message 'backgroundColor';
+    procedure setBackgroundColor(color: NSColor); message 'setBackgroundColor:';
+    function textColor: NSColor; message 'textColor';
+    procedure setTextColor(color: NSColor); message 'setTextColor:';
+    function datePickerMode: NSDatePickerMode; message 'datePickerMode';
+    procedure setDatePickerMode(newMode: NSDatePickerMode); message 'setDatePickerMode:';
+    function datePickerElements: NSDatePickerElementFlags; message 'datePickerElements';
+    procedure setDatePickerElements(elementFlags: NSDatePickerElementFlags); message 'setDatePickerElements:';
+    function calendar: NSCalendar; message 'calendar';
+    procedure setCalendar(newCalendar: NSCalendar); message 'setCalendar:';
+    function locale: NSLocale; message 'locale';
+    procedure setLocale(newLocale: NSLocale); message 'setLocale:';
+    function timeZone: NSTimeZone; message 'timeZone';
+    procedure setTimeZone(newTimeZone: NSTimeZone); message 'setTimeZone:';
+    function dateValue: NSDate; message 'dateValue';
+    procedure setDateValue(newStartDate: NSDate); message 'setDateValue:';
+    function timeInterval: NSTimeInterval; message 'timeInterval';
+    procedure setTimeInterval(newTimeInterval: NSTimeInterval); message 'setTimeInterval:';
+    function minDate: NSDate; message 'minDate';
+    procedure setMinDate(date: NSDate); message 'setMinDate:';
+    function maxDate: NSDate; message 'maxDate';
+    procedure setMaxDate(date: NSDate); message 'setMaxDate:';
+    function delegate: id; message 'delegate';
+    procedure setDelegate(anObject: id); message 'setDelegate:';
+  end; external;
+
+{$endif}
+{$endif}

+ 139 - 0
packages/cocoaint/src/appkit/NSDatePickerCell.inc

@@ -0,0 +1,139 @@
+{ Parsed from Appkit.framework NSDatePickerCell.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSDATEPICKERCELL_PAS_H}
+{$define NSDATEPICKERCELL_PAS_H}
+type
+  NSDatePickerCellPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSDATEPICKERCELL_PAS_T}
+{$define NSDATEPICKERCELL_PAS_T}
+
+{ Constants }
+
+const
+  NSTextFieldAndStepperDatePickerStyle = 0;
+  NSClockAndCalendarDatePickerStyle = 1;
+  NSTextFieldDatePickerStyle = 2;
+
+const
+  NSSingleDateMode = 0;
+  NSRangeDateMode = 1;
+
+const
+  NSHourMinuteDatePickerElementFlag = $000c;
+  NSHourMinuteSecondDatePickerElementFlag = $000e;
+  NSTimeZoneDatePickerElementFlag = $0010;
+  NSYearMonthDatePickerElementFlag = $00c0;
+  NSYearMonthDayDatePickerElementFlag = $00e0;
+  NSEraDatePickerElementFlag = $0100;
+
+{ Types }
+type
+  NSDatePickerStyle = culong;
+  NSDatePickerMode = culong;
+  NSDatePickerElementFlags = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSDATEPICKERCELL_PAS_R}
+{$define NSDATEPICKERCELL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSDATEPICKERCELL_PAS_F}
+{$define NSDATEPICKERCELL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSDATEPICKERCELL_PAS_T}
+{$define NSDATEPICKERCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSDatePickerCell = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSDATEPICKERCELL_PAS_C}
+{$define NSDATEPICKERCELL_PAS_C}
+
+{ NSDatePickerCell }
+  NSDatePickerCell = objcclass(NSActionCell)
+  private
+    __timeInterval: NSTimeInterval;
+    __minDate: NSDate;
+    __maxDate: NSDate;
+    __dcFlags: bitpacked record
+        elements: 0..((1 shl 16)-1);
+        controlStyle: 0..((1 shl 3)-1);
+        controlMode: 0..((1 shl 2)-1);
+        trackingHand: 0..((1 shl 2)-1);
+        reserved2: 0..((1 shl 4)-1);
+        drawsBackground: 0..1;
+        digitsEntered: 0..((1 shl 2)-1);
+        forcesLeadingZeroes: 0..1;
+        wrapsDateComponentArithmetic: 0..1;
+      end;
+    __delegate: id;
+    __calendar: NSCalendar;
+    __locale: NSLocale;
+    __timeZone: NSTimeZone;
+    __backgroundColor: NSColor;
+    __textColor: NSColor;
+    __indexOfSelectedSubfield: cint;
+    __reserved0: cint;
+    __reserved1: id;
+    __reserved2: id;
+    __reserved3: id;
+    __reserved4: id;
+    
+  public
+    class function alloc: NSDatePickerCell; message 'alloc';
+
+    function datePickerStyle: NSDatePickerStyle; message 'datePickerStyle';
+    procedure setDatePickerStyle(newStyle: NSDatePickerStyle); message 'setDatePickerStyle:';
+    function drawsBackground: Boolean; message 'drawsBackground';
+    procedure setDrawsBackground(flag: Boolean); message 'setDrawsBackground:';
+    function backgroundColor: NSColor; message 'backgroundColor';
+    procedure setBackgroundColor(color: NSColor); message 'setBackgroundColor:';
+    function textColor: NSColor; message 'textColor';
+    procedure setTextColor(color: NSColor); message 'setTextColor:';
+    function datePickerMode: NSDatePickerMode; message 'datePickerMode';
+    procedure setDatePickerMode(newMode: NSDatePickerMode); message 'setDatePickerMode:';
+    function datePickerElements: NSDatePickerElementFlags; message 'datePickerElements';
+    procedure setDatePickerElements(elementFlags: NSDatePickerElementFlags); message 'setDatePickerElements:';
+    function calendar: NSCalendar; message 'calendar';
+    procedure setCalendar(newCalendar: NSCalendar); message 'setCalendar:';
+    function locale: NSLocale; message 'locale';
+    procedure setLocale(newLocale: NSLocale); message 'setLocale:';
+    function timeZone: NSTimeZone; message 'timeZone';
+    procedure setTimeZone(newTimeZone: NSTimeZone); message 'setTimeZone:';
+    function dateValue: NSDate; message 'dateValue';
+    procedure setDateValue(newStartDate: NSDate); message 'setDateValue:';
+    function timeInterval: NSTimeInterval; message 'timeInterval';
+    procedure setTimeInterval(newTimeInterval: NSTimeInterval); message 'setTimeInterval:';
+    function minDate: NSDate; message 'minDate';
+    procedure setMinDate(date: NSDate); message 'setMinDate:';
+    function maxDate: NSDate; message 'maxDate';
+    procedure setMaxDate(date: NSDate); message 'setMaxDate:';
+    function delegate: id; message 'delegate';
+    procedure setDelegate(anObject: id); message 'setDelegate:';
+  end; external;
+
+{$endif}
+{$endif}

+ 90 - 0
packages/cocoaint/src/appkit/NSDictionaryController.inc

@@ -0,0 +1,90 @@
+{ Parsed from Appkit.framework NSDictionaryController.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSDICTIONARYCONTROLLER_PAS_H}
+{$define NSDICTIONARYCONTROLLER_PAS_H}
+type
+  NSDictionaryControllerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSDICTIONARYCONTROLLER_PAS_T}
+{$define NSDICTIONARYCONTROLLER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSDICTIONARYCONTROLLER_PAS_R}
+{$define NSDICTIONARYCONTROLLER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSDICTIONARYCONTROLLER_PAS_F}
+{$define NSDICTIONARYCONTROLLER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSDICTIONARYCONTROLLER_PAS_T}
+{$define NSDICTIONARYCONTROLLER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSDictionaryController = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSDICTIONARYCONTROLLER_PAS_C}
+{$define NSDICTIONARYCONTROLLER_PAS_C}
+
+{ NSDictionaryController }
+  NSDictionaryController = objcclass(NSArrayController)
+  private
+    __reserved5: Pointer;
+    __reserved6: Pointer;
+    __reserved7: Pointer;
+    __contentDictionary: id;
+    __initialKey: NSString;
+    __initialValue: id;
+    __minimumInsertionKeyIndex: culong;
+    __localizedKeyStringsFileName: NSString;
+    __localizedKeyForKeyDictionary: NSDictionary;
+    __keyForLocalizedKeyDictionary: NSDictionary;
+    __includedKeys: NSArray;
+    __excludedKeys: NSArray;
+    __dictionaryControllerFlags: bitpacked record
+        _deepCopiesValues: 0..1;
+        _suppressBuildingDictionary: 0..1;
+        _reservedDictionaryController: 0..((1 shl 30)-1);
+      end;
+    
+  public
+    class function alloc: NSDictionaryController; message 'alloc';
+
+    function newObject: id; message 'newObject';
+    procedure setInitialKey(key: NSString); message 'setInitialKey:';
+    function initialKey: NSString; message 'initialKey';
+    procedure setInitialValue(value: id); message 'setInitialValue:';
+    function initialValue: id; message 'initialValue';
+    procedure setIncludedKeys(keys: NSArray); message 'setIncludedKeys:';
+    function includedKeys: NSArray; message 'includedKeys';
+    procedure setExcludedKeys(keys: NSArray); message 'setExcludedKeys:';
+    function excludedKeys: NSArray; message 'excludedKeys';
+    procedure setLocalizedKeyDictionary(dictionary: NSDictionary); message 'setLocalizedKeyDictionary:';
+    function localizedKeyDictionary: NSDictionary; message 'localizedKeyDictionary';
+    procedure setLocalizedKeyTable(stringsFileName: NSString); message 'setLocalizedKeyTable:';
+    function localizedKeyTable: NSString; message 'localizedKeyTable';
+  end; external;
+
+{$endif}
+{$endif}

+ 81 - 0
packages/cocoaint/src/appkit/NSDockTile.inc

@@ -0,0 +1,81 @@
+{ Parsed from Appkit.framework NSDockTile.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSDOCKTILE_PAS_H}
+{$define NSDOCKTILE_PAS_H}
+type
+  NSDockTilePointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSDOCKTILE_PAS_T}
+{$define NSDOCKTILE_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSDOCKTILE_PAS_R}
+{$define NSDOCKTILE_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSDOCKTILE_PAS_F}
+{$define NSDOCKTILE_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSDOCKTILE_PAS_T}
+{$define NSDOCKTILE_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSDockTile = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSDOCKTILE_PAS_C}
+{$define NSDOCKTILE_PAS_C}
+
+{ NSDockTile }
+  NSDockTile = objcclass(NSObject)
+  private
+    __owner: id;
+    __dockContextRef: Pointer;
+    __contentView: NSView;
+    __frameView: NSView;
+    __backstopView: NSView;
+    __badgeLabel: NSString;
+    __dFlags: bitpacked record
+        showsAppBadge: 0..1;
+        reserved: 0..((1 shl 31)-1);
+      end;
+    __dockTileSize: NSSize;
+    _reserved: id;
+    
+  public
+    class function alloc: NSDockTile; message 'alloc';
+
+    function size: NSSize; message 'size';
+    procedure setContentView(view: NSView); message 'setContentView:';
+    function contentView: NSView; message 'contentView';
+    procedure display; message 'display';
+    procedure setShowsApplicationBadge(flag: Boolean); message 'setShowsApplicationBadge:';
+    function showsApplicationBadge: Boolean; message 'showsApplicationBadge';
+    procedure setBadgeLabel(string_: NSString); message 'setBadgeLabel:';
+    function badgeLabel: NSString; message 'badgeLabel';
+    function owner: id; message 'owner';
+  end; external;
+
+{$endif}
+{$endif}

+ 211 - 0
packages/cocoaint/src/appkit/NSDocument.inc

@@ -0,0 +1,211 @@
+{ Parsed from Appkit.framework NSDocument.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSDOCUMENT_PAS_H}
+{$define NSDOCUMENT_PAS_H}
+type
+  NSDocumentPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSDOCUMENT_PAS_T}
+{$define NSDOCUMENT_PAS_T}
+
+{ Constants }
+
+const
+  NSChangeDone = 0;
+  NSChangeUndone = 1;
+  NSChangeCleared = 2;
+  NSChangeRedone = 5;
+  NSChangeReadOtherContents = 3;
+  NSChangeAutosaved = 4;
+
+const
+  NSSaveOperation = 0;
+  NSSaveAsOperation = 1;
+  NSSaveToOperation = 2;
+  NSAutosaveOperation = 3;
+
+{ Types }
+type
+  NSDocumentChangeType = culong;
+  NSSaveOperationType = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSDOCUMENT_PAS_R}
+{$define NSDOCUMENT_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSDOCUMENT_PAS_F}
+{$define NSDOCUMENT_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSDOCUMENT_PAS_T}
+{$define NSDOCUMENT_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSDocument = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSDOCUMENT_PAS_C}
+{$define NSDOCUMENT_PAS_C}
+
+{ NSDocument }
+  NSDocument = objcclass(NSObject, NSUserInterfaceValidationsProtocol)
+  private
+    __window: NSWindow;
+    __windowControllers: id;
+    __fileURL: NSURL;
+    __fileType: NSString;
+    __printInfo: NSPrintInfo;
+    __changeCount: clong;
+    _savePanelAccessory: NSView;
+    __displayName: id;
+    __privateData: id;
+    __undoManager: NSUndoManager;
+    __docFlags: bitpacked record
+        inClose: 0..1;
+        hasUndoManager: 0..1;
+        isShowingPageLayout: 0..1;
+        isRunningPrintOperation: 0..1;
+        savePanelNameExtensionHidden: 0..1;
+        reconciledToFileName: 0..1;
+        checkingDisplayName: 0..1;
+        definitelyHasUnsavedChanges: 0..1;
+        definitelyHasUnautosavedChanges: 0..1;
+        RESERVED: 0..((1 shl 23)-1);
+      end;
+    __savePanelSaveType: NSString;
+    
+  public
+    class function alloc: NSDocument; message 'alloc';
+
+    function init: id; message 'init';
+    function initWithType_error(typeName: NSString; var outError: NSError): id; message 'initWithType:error:';
+    function initWithContentsOfURL_ofType_error(absoluteURL: NSURL; typeName: NSString; var outError: NSError): id; message 'initWithContentsOfURL:ofType:error:';
+    function initForURL_withContentsOfURL_ofType_error(absoluteDocumentURL: NSURL; absoluteDocumentContentsURL: NSURL; typeName: NSString; var outError: NSError): id; message 'initForURL:withContentsOfURL:ofType:error:';
+    procedure setFileType(typeName: NSString); message 'setFileType:';
+    function fileType: NSString; message 'fileType';
+    procedure setFileURL(absoluteURL: NSURL); message 'setFileURL:';
+    function fileURL: NSURL; message 'fileURL';
+    procedure setFileModificationDate(modificationDate: NSDate); message 'setFileModificationDate:';
+    function fileModificationDate: NSDate; message 'fileModificationDate';
+    procedure revertDocumentToSaved(sender: id); message 'revertDocumentToSaved:';
+    function revertToContentsOfURL_ofType_error(absoluteURL: NSURL; typeName: NSString; var outError: NSError): Boolean; message 'revertToContentsOfURL:ofType:error:';
+    function readFromURL_ofType_error(absoluteURL: NSURL; typeName: NSString; var outError: NSError): Boolean; message 'readFromURL:ofType:error:';
+    function readFromFileWrapper_ofType_error(fileWrapper: NSFileWrapper; typeName: NSString; var outError: NSError): Boolean; message 'readFromFileWrapper:ofType:error:';
+    function readFromData_ofType_error(data: NSData; typeName: NSString; var outError: NSError): Boolean; message 'readFromData:ofType:error:';
+    function writeToURL_ofType_error(absoluteURL: NSURL; typeName: NSString; var outError: NSError): Boolean; message 'writeToURL:ofType:error:';
+    function fileWrapperOfType_error(typeName: NSString; var outError: NSError): NSFileWrapper; message 'fileWrapperOfType:error:';
+    function dataOfType_error(typeName: NSString; var outError: NSError): NSData; message 'dataOfType:error:';
+    function writeSafelyToURL_ofType_forSaveOperation_error(absoluteURL: NSURL; typeName: NSString; saveOperation: NSSaveOperationType; var outError: NSError): Boolean; message 'writeSafelyToURL:ofType:forSaveOperation:error:';
+    function writeToURL_ofType_forSaveOperation_originalContentsURL_error(absoluteURL: NSURL; typeName: NSString; saveOperation: NSSaveOperationType; absoluteOriginalContentsURL: NSURL; var outError: NSError): Boolean; message 'writeToURL:ofType:forSaveOperation:originalContentsURL:error:';
+    function fileAttributesToWriteToURL_ofType_forSaveOperation_originalContentsURL_error(absoluteURL: NSURL; typeName: NSString; saveOperation: NSSaveOperationType; absoluteOriginalContentsURL: NSURL; var outError: NSError): NSDictionary; message 'fileAttributesToWriteToURL:ofType:forSaveOperation:originalContentsURL:error:';
+    function keepBackupFile: Boolean; message 'keepBackupFile';
+    procedure saveDocument(sender: id); message 'saveDocument:';
+    procedure saveDocumentAs(sender: id); message 'saveDocumentAs:';
+    procedure saveDocumentTo(sender: id); message 'saveDocumentTo:';
+    procedure saveDocumentWithDelegate_didSaveSelector_contextInfo(delegate: id; didSaveSelector: SEL; contextInfo: Pointer); message 'saveDocumentWithDelegate:didSaveSelector:contextInfo:';
+    procedure runModalSavePanelForSaveOperation_delegate_didSaveSelector_contextInfo(saveOperation: NSSaveOperationType; delegate: id; didSaveSelector: SEL; contextInfo: Pointer); message 'runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo:';
+    function shouldRunSavePanelWithAccessoryView: Boolean; message 'shouldRunSavePanelWithAccessoryView';
+    function prepareSavePanel(savePanel: NSSavePanel): Boolean; message 'prepareSavePanel:';
+    function fileNameExtensionWasHiddenInLastRunSavePanel: Boolean; message 'fileNameExtensionWasHiddenInLastRunSavePanel';
+    function fileTypeFromLastRunSavePanel: NSString; message 'fileTypeFromLastRunSavePanel';
+    procedure saveToURL_ofType_forSaveOperation_delegate_didSaveSelector_contextInfo(absoluteURL: NSURL; typeName: NSString; saveOperation: NSSaveOperationType; delegate: id; didSaveSelector: SEL; contextInfo: Pointer); message 'saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo:';
+    function saveToURL_ofType_forSaveOperation_error(absoluteURL: NSURL; typeName: NSString; saveOperation: NSSaveOperationType; var outError: NSError): Boolean; message 'saveToURL:ofType:forSaveOperation:error:';
+    function hasUnautosavedChanges: Boolean; message 'hasUnautosavedChanges';
+    procedure autosaveDocumentWithDelegate_didAutosaveSelector_contextInfo(delegate: id; didAutosaveSelector: SEL; contextInfo: Pointer); message 'autosaveDocumentWithDelegate:didAutosaveSelector:contextInfo:';
+    function autosavingFileType: NSString; message 'autosavingFileType';
+    procedure setAutosavedContentsFileURL(absoluteURL: NSURL); message 'setAutosavedContentsFileURL:';
+    function autosavedContentsFileURL: NSURL; message 'autosavedContentsFileURL';
+    procedure canCloseDocumentWithDelegate_shouldCloseSelector_contextInfo(delegate: id; shouldCloseSelector: SEL; contextInfo: Pointer); message 'canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:';
+    procedure close; message 'close';
+    procedure runPageLayout(sender: id); message 'runPageLayout:';
+    procedure runModalPageLayoutWithPrintInfo_delegate_didRunSelector_contextInfo(printInfo_: NSPrintInfo; delegate: id; didRunSelector: SEL; contextInfo: Pointer); message 'runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo:';
+    function preparePageLayout(pageLayout: NSPageLayout): Boolean; message 'preparePageLayout:';
+    function shouldChangePrintInfo(newPrintInfo: NSPrintInfo): Boolean; message 'shouldChangePrintInfo:';
+    procedure setPrintInfo(printInfo_: NSPrintInfo); message 'setPrintInfo:';
+    function printInfo: NSPrintInfo; message 'printInfo';
+    procedure printDocument(sender: id); message 'printDocument:';
+    procedure printDocumentWithSettings_showPrintPanel_delegate_didPrintSelector_contextInfo(printSettings: NSDictionary; showPrintPanel: Boolean; delegate: id; didPrintSelector: SEL; contextInfo: Pointer); message 'printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:contextInfo:';
+    function printOperationWithSettings_error(printSettings: NSDictionary; var outError: NSError): NSPrintOperation; message 'printOperationWithSettings:error:';
+    procedure runModalPrintOperation_delegate_didRunSelector_contextInfo(printOperation: NSPrintOperation; delegate: id; didRunSelector: SEL; contextInfo: Pointer); message 'runModalPrintOperation:delegate:didRunSelector:contextInfo:';
+    function isDocumentEdited: Boolean; message 'isDocumentEdited';
+    procedure updateChangeCount(change: NSDocumentChangeType); message 'updateChangeCount:';
+    procedure setUndoManager(undoManager_: NSUndoManager); message 'setUndoManager:';
+    function undoManager: NSUndoManager; message 'undoManager';
+    procedure setHasUndoManager(hasUndoManager_: Boolean); message 'setHasUndoManager:';
+    function hasUndoManager: Boolean; message 'hasUndoManager';
+    procedure presentError_modalForWindow_delegate_didPresentSelector_contextInfo(error: NSError; window: NSWindow; delegate: id; didPresentSelector: SEL; contextInfo: Pointer); message 'presentError:modalForWindow:delegate:didPresentSelector:contextInfo:';
+    function presentError(error: NSError): Boolean; message 'presentError:';
+    function willPresentError(error: NSError): NSError; message 'willPresentError:';
+    procedure makeWindowControllers; message 'makeWindowControllers';
+    function windowNibName: NSString; message 'windowNibName';
+    procedure windowControllerWillLoadNib(windowController: NSWindowController); message 'windowControllerWillLoadNib:';
+    procedure windowControllerDidLoadNib(windowController: NSWindowController); message 'windowControllerDidLoadNib:';
+    procedure setWindow(window: NSWindow); message 'setWindow:';
+    procedure addWindowController(windowController: NSWindowController); message 'addWindowController:';
+    procedure removeWindowController(windowController: NSWindowController); message 'removeWindowController:';
+    procedure showWindows; message 'showWindows';
+    function windowControllers: NSArray; message 'windowControllers';
+    procedure shouldCloseWindowController_delegate_shouldCloseSelector_contextInfo(windowController: NSWindowController; delegate: id; shouldCloseSelector: SEL; contextInfo: Pointer); message 'shouldCloseWindowController:delegate:shouldCloseSelector:contextInfo:';
+    function displayName: NSString; message 'displayName';
+    function windowForSheet: NSWindow; message 'windowForSheet';
+    class function readableTypes: NSArray; message 'readableTypes';
+    class function writableTypes: NSArray; message 'writableTypes';
+    class function isNativeType(type_: NSString): Boolean; message 'isNativeType:';
+    function writableTypesForSaveOperation(saveOperation: NSSaveOperationType): NSArray; message 'writableTypesForSaveOperation:';
+    function fileNameExtensionForType_saveOperation(typeName: NSString; saveOperation: NSSaveOperationType): NSString; message 'fileNameExtensionForType:saveOperation:';
+    function validateUserInterfaceItem(anItem: id): Boolean; message 'validateUserInterfaceItem:';
+
+    { Category: NSDeprecated }
+    function dataRepresentationOfType(type_: NSString): NSData; message 'dataRepresentationOfType:';
+    function fileAttributesToWriteToFile_ofType_saveOperation(fullDocumentPath: NSString; documentTypeName: NSString; saveOperationType: NSSaveOperationType): NSDictionary; message 'fileAttributesToWriteToFile:ofType:saveOperation:';
+    function fileName: NSString; message 'fileName';
+    function fileWrapperRepresentationOfType(type_: NSString): NSFileWrapper; message 'fileWrapperRepresentationOfType:';
+    function initWithContentsOfFile_ofType(absolutePath: NSString; typeName: NSString): id; message 'initWithContentsOfFile:ofType:';
+    function initWithContentsOfURL_ofType(absoluteURL: NSURL; typeName: NSString): id; message 'initWithContentsOfURL:ofType:';
+    function loadDataRepresentation_ofType(data: NSData; type_: NSString): Boolean; message 'loadDataRepresentation:ofType:';
+    function loadFileWrapperRepresentation_ofType(wrapper: NSFileWrapper; type_: NSString): Boolean; message 'loadFileWrapperRepresentation:ofType:';
+    procedure printShowingPrintPanel(flag: Boolean); message 'printShowingPrintPanel:';
+    function readFromFile_ofType(fileName_: NSString; type_: NSString): Boolean; message 'readFromFile:ofType:';
+    function readFromURL_ofType(url: NSURL; type_: NSString): Boolean; message 'readFromURL:ofType:';
+    function revertToSavedFromFile_ofType(fileName_: NSString; type_: NSString): Boolean; message 'revertToSavedFromFile:ofType:';
+    function revertToSavedFromURL_ofType(url: NSURL; type_: NSString): Boolean; message 'revertToSavedFromURL:ofType:';
+    function runModalPageLayoutWithPrintInfo(printInfo_: NSPrintInfo): clong; message 'runModalPageLayoutWithPrintInfo:';
+    procedure saveToFile_saveOperation_delegate_didSaveSelector_contextInfo(fileName_: NSString; saveOperation: NSSaveOperationType; delegate: id; didSaveSelector: SEL; contextInfo: Pointer); message 'saveToFile:saveOperation:delegate:didSaveSelector:contextInfo:';
+    procedure setFileName(fileName_: NSString); message 'setFileName:';
+    function writeToFile_ofType(fileName_: NSString; type_: NSString): Boolean; message 'writeToFile:ofType:';
+    function writeToFile_ofType_originalFile_saveOperation(fullDocumentPath: NSString; documentTypeName: NSString; fullOriginalDocumentPath: NSString; saveOperationType: NSSaveOperationType): Boolean; message 'writeToFile:ofType:originalFile:saveOperation:';
+    function writeToURL_ofType(url: NSURL; type_: NSString): Boolean; message 'writeToURL:ofType:';
+    function writeWithBackupToFile_ofType_saveOperation(fullDocumentPath: NSString; documentTypeName: NSString; saveOperationType: NSSaveOperationType): Boolean; message 'writeWithBackupToFile:ofType:saveOperation:';
+
+    { Category: NSScripting }
+    function lastComponentOfFileName: NSString; message 'lastComponentOfFileName';
+    procedure setLastComponentOfFileName(str: NSString); message 'setLastComponentOfFileName:';
+    function handleSaveScriptCommand(command: NSScriptCommand): id; message 'handleSaveScriptCommand:';
+    function handleCloseScriptCommand(command: NSCloseCommand): id; message 'handleCloseScriptCommand:';
+    function handlePrintScriptCommand(command: NSScriptCommand): id; message 'handlePrintScriptCommand:';
+    function objectSpecifier: NSScriptObjectSpecifier; message 'objectSpecifier';
+  end; external;
+
+{$endif}
+{$endif}

+ 118 - 0
packages/cocoaint/src/appkit/NSDocumentController.inc

@@ -0,0 +1,118 @@
+{ Parsed from Appkit.framework NSDocumentController.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSDOCUMENTCONTROLLER_PAS_H}
+{$define NSDOCUMENTCONTROLLER_PAS_H}
+type
+  NSDocumentControllerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSDOCUMENTCONTROLLER_PAS_T}
+{$define NSDOCUMENTCONTROLLER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSDOCUMENTCONTROLLER_PAS_R}
+{$define NSDOCUMENTCONTROLLER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSDOCUMENTCONTROLLER_PAS_F}
+{$define NSDOCUMENTCONTROLLER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSDOCUMENTCONTROLLER_PAS_T}
+{$define NSDOCUMENTCONTROLLER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSDocumentController = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSDOCUMENTCONTROLLER_PAS_C}
+{$define NSDOCUMENTCONTROLLER_PAS_C}
+
+{ NSDocumentController }
+  NSDocumentController = objcclass(NSObject, NSCodingProtocol, NSUserInterfaceValidationsProtocol)
+  private
+    __documents: id;
+    __moreVars: id;
+    __cachedTypeDescriptions: NSArray;
+    __recents: NSMutableDictionary;
+    __recentsLimit: cint;
+    
+  public
+    class function alloc: NSDocumentController; message 'alloc';
+
+    class function sharedDocumentController: id; message 'sharedDocumentController';
+    function init: id; message 'init';
+    function documents: NSArray; message 'documents';
+    function currentDocument: id; message 'currentDocument';
+    function currentDirectory: NSString; message 'currentDirectory';
+    function documentForURL(absoluteURL: NSURL): id; message 'documentForURL:';
+    function documentForWindow(window: NSWindow): id; message 'documentForWindow:';
+    procedure addDocument(document: NSDocument); message 'addDocument:';
+    procedure removeDocument(document: NSDocument); message 'removeDocument:';
+    procedure newDocument(sender: id); message 'newDocument:';
+    function openUntitledDocumentAndDisplay_error(displayDocument: Boolean; var outError: NSError): id; message 'openUntitledDocumentAndDisplay:error:';
+    function makeUntitledDocumentOfType_error(typeName: NSString; var outError: NSError): id; message 'makeUntitledDocumentOfType:error:';
+    procedure openDocument(sender: id); message 'openDocument:';
+    function URLsFromRunningOpenPanel: NSArray; message 'URLsFromRunningOpenPanel';
+    function runModalOpenPanel_forTypes(openPanel: NSOpenPanel; types: NSArray): clong; message 'runModalOpenPanel:forTypes:';
+    function openDocumentWithContentsOfURL_display_error(absoluteURL: NSURL; displayDocument: Boolean; var outError: NSError): id; message 'openDocumentWithContentsOfURL:display:error:';
+    function makeDocumentWithContentsOfURL_ofType_error(absoluteURL: NSURL; typeName: NSString; var outError: NSError): id; message 'makeDocumentWithContentsOfURL:ofType:error:';
+    function reopenDocumentForURL_withContentsOfURL_error(absoluteDocumentURL: NSURL; absoluteDocumentContentsURL: NSURL; var outError: NSError): Boolean; message 'reopenDocumentForURL:withContentsOfURL:error:';
+    function makeDocumentForURL_withContentsOfURL_ofType_error(absoluteDocumentURL: NSURL; absoluteDocumentContentsURL: NSURL; typeName: NSString; var outError: NSError): id; message 'makeDocumentForURL:withContentsOfURL:ofType:error:';
+    procedure setAutosavingDelay(autosavingDelay_: NSTimeInterval); message 'setAutosavingDelay:';
+    function autosavingDelay: NSTimeInterval; message 'autosavingDelay';
+    procedure saveAllDocuments(sender: id); message 'saveAllDocuments:';
+    function hasEditedDocuments: Boolean; message 'hasEditedDocuments';
+    procedure reviewUnsavedDocumentsWithAlertTitle_cancellable_delegate_didReviewAllSelector_contextInfo(title: NSString; cancellable: Boolean; delegate: id; didReviewAllSelector: SEL; contextInfo: Pointer); message 'reviewUnsavedDocumentsWithAlertTitle:cancellable:delegate:didReviewAllSelector:contextInfo:';
+    procedure closeAllDocumentsWithDelegate_didCloseAllSelector_contextInfo(delegate: id; didCloseAllSelector: SEL; contextInfo: Pointer); message 'closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:';
+    procedure presentError_modalForWindow_delegate_didPresentSelector_contextInfo(error: NSError; window: NSWindow; delegate: id; didPresentSelector: SEL; contextInfo: Pointer); message 'presentError:modalForWindow:delegate:didPresentSelector:contextInfo:';
+    function presentError(error: NSError): Boolean; message 'presentError:';
+    function willPresentError(error: NSError): NSError; message 'willPresentError:';
+    function maximumRecentDocumentCount: culong; message 'maximumRecentDocumentCount';
+    procedure clearRecentDocuments(sender: id); message 'clearRecentDocuments:';
+    procedure noteNewRecentDocument(document: NSDocument); message 'noteNewRecentDocument:';
+    procedure noteNewRecentDocumentURL(absoluteURL: NSURL); message 'noteNewRecentDocumentURL:';
+    function recentDocumentURLs: NSArray; message 'recentDocumentURLs';
+    function defaultType: NSString; message 'defaultType';
+    function typeForContentsOfURL_error(inAbsoluteURL: NSURL; var outError: NSError): NSString; message 'typeForContentsOfURL:error:';
+    function documentClassNames: NSArray; message 'documentClassNames';
+    function documentClassForType(typeName: NSString): Pobjc_class; message 'documentClassForType:';
+    function displayNameForType(typeName: NSString): NSString; message 'displayNameForType:';
+    function validateUserInterfaceItem(anItem: id): Boolean; message 'validateUserInterfaceItem:';
+
+    { Category: NSDeprecated }
+    function fileExtensionsFromType(typeName: NSString): NSArray; message 'fileExtensionsFromType:';
+    function typeFromFileExtension(fileNameExtensionOrHFSFileType: NSString): NSString; message 'typeFromFileExtension:';
+    function documentForFileName(fileName: NSString): id; message 'documentForFileName:';
+    function fileNamesFromRunningOpenPanel: NSArray; message 'fileNamesFromRunningOpenPanel';
+    function makeDocumentWithContentsOfFile_ofType(fileName: NSString; type_: NSString): id; message 'makeDocumentWithContentsOfFile:ofType:';
+    function makeDocumentWithContentsOfURL_ofType(url: NSURL; type_: NSString): id; message 'makeDocumentWithContentsOfURL:ofType:';
+    function makeUntitledDocumentOfType(type_: NSString): id; message 'makeUntitledDocumentOfType:';
+    function openDocumentWithContentsOfFile_display(fileName: NSString; display: Boolean): id; message 'openDocumentWithContentsOfFile:display:';
+    function openDocumentWithContentsOfURL_display(url: NSURL; display: Boolean): id; message 'openDocumentWithContentsOfURL:display:';
+    function openUntitledDocumentOfType_display(type_: NSString; display: Boolean): id; message 'openUntitledDocumentOfType:display:';
+    procedure setShouldCreateUI(flag: Boolean); message 'setShouldCreateUI:';
+    function shouldCreateUI: Boolean; message 'shouldCreateUI';
+  end; external;
+
+{$endif}
+{$endif}

+ 31 - 0
packages/cocoaint/src/appkit/NSDocumentScripting.inc

@@ -0,0 +1,31 @@
+{ Parsed from Appkit.framework NSDocumentScripting.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSDOCUMENTSCRIPTING_PAS_T}
+{$define NSDOCUMENTSCRIPTING_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSDOCUMENTSCRIPTING_PAS_R}
+{$define NSDOCUMENTSCRIPTING_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSDOCUMENTSCRIPTING_PAS_F}
+{$define NSDOCUMENTSCRIPTING_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSDOCUMENTSCRIPTING_PAS_T}
+{$define NSDOCUMENTSCRIPTING_PAS_T}
+
+{$endif}
+{$endif}

+ 72 - 0
packages/cocoaint/src/appkit/NSDragging.inc

@@ -0,0 +1,72 @@
+{ Parsed from Appkit.framework NSDragging.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSDRAGGING_PAS_T}
+{$define NSDRAGGING_PAS_T}
+
+{ Types }
+type
+  NSDragOperation = culong;
+
+{ Constants }
+
+const
+  NSDragOperationNone = 0;
+  NSDragOperationCopy = 1;
+  NSDragOperationLink = 2;
+  NSDragOperationGeneric = 4;
+  NSDragOperationPrivate = 8;
+  NSDragOperationAll_Obsolete = 15;
+  NSDragOperationMove = 16;
+  NSDragOperationDelete = 32;
+  NSDragOperationEvery = NSUIntegerMax;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSDRAGGING_PAS_R}
+{$define NSDRAGGING_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSDRAGGING_PAS_F}
+{$define NSDRAGGING_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSDRAGGING_PAS_T}
+{$define NSDRAGGING_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSDraggingInfoProtocol = objcprotocol;
+
+{$endif}
+{$ifdef PROTOCOLS}
+{$ifndef NSDRAGGING_PAS_P}
+{$define NSDRAGGING_PAS_P}
+  
+{ NSDraggingInfo Protocol }
+  NSDraggingInfoProtocol = objcprotocol
+    function draggingDestinationWindow: NSWindow; message 'draggingDestinationWindow';
+    function draggingSourceOperationMask: NSDragOperation; message 'draggingSourceOperationMask';
+    function draggingLocation: NSPoint; message 'draggingLocation';
+    function draggedImageLocation: NSPoint; message 'draggedImageLocation';
+    function draggedImage: NSImage; message 'draggedImage';
+    function draggingPasteboard: NSPasteboard; message 'draggingPasteboard';
+    function draggingSource: id; message 'draggingSource';
+    function draggingSequenceNumber: clong; message 'draggingSequenceNumber';
+    procedure slideDraggedImageTo(screenPoint: NSPoint); message 'slideDraggedImageTo:';
+    function namesOfPromisedFilesDroppedAtDestination(dropDestination: NSURL): NSArray; message 'namesOfPromisedFilesDroppedAtDestination:';
+  end; external name 'NSDraggingInfo';
+{$endif}
+{$endif}

+ 125 - 0
packages/cocoaint/src/appkit/NSDrawer.inc

@@ -0,0 +1,125 @@
+{ Parsed from Appkit.framework NSDrawer.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSDRAWER_PAS_H}
+{$define NSDRAWER_PAS_H}
+type
+  NSDrawerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSDRAWER_PAS_T}
+{$define NSDRAWER_PAS_T}
+
+{ Constants }
+
+const
+  NSDrawerClosedState = 0;
+  NSDrawerOpeningState = 1;
+  NSDrawerOpenState = 2;
+  NSDrawerClosingState = 3;
+
+{ Types }
+type
+  NSDrawerState = culong;
+
+{ CFString constants }
+var
+  NSDrawerWillOpenNotification: CFStringRef; external name '_NSDrawerWillOpenNotification';
+  NSDrawerDidOpenNotification: CFStringRef; external name '_NSDrawerDidOpenNotification';
+  NSDrawerWillCloseNotification: CFStringRef; external name '_NSDrawerWillCloseNotification';
+  NSDrawerDidCloseNotification: CFStringRef; external name '_NSDrawerDidCloseNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSDRAWER_PAS_R}
+{$define NSDRAWER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSDRAWER_PAS_F}
+{$define NSDRAWER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSDRAWER_PAS_T}
+{$define NSDRAWER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSDrawer = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSDRAWER_PAS_C}
+{$define NSDRAWER_PAS_C}
+
+{ NSDrawer }
+  NSDrawer = objcclass(NSResponder)
+  private
+    __drawerState: NSDrawerState;
+    __drawerNextState: NSDrawerState;
+    __drawerEdge: NSRectEdge;
+    __drawerNextEdge: NSRectEdge;
+    __drawerPreferredEdge: NSRectEdge;
+    __drawerPercent: single;
+    __drawerPercentSaved: single;
+    __drawerLeadingOffset: CGFloat;
+    __drawerTrailingOffset: CGFloat;
+    __drawerLock: NSLock;
+    __drawerWindow: NSWindow;
+    __drawerParentWindow: NSWindow;
+    __drawerNextParentWindow: NSWindow;
+    __drawerSaveName: NSString;
+    __drawerStartTime: CFAbsoluteTime;
+    __drawerTotalTime: CFTimeInterval;
+    __drawerLoop: CFRunLoopRef;
+    __drawerTimer: CFRunLoopTimerRef; {garbage collector: __strong }
+    __drawerDelegate: id;
+    __drawerFlags: cuint;
+    __drawerObserver: CFRunLoopObserverRef; {garbage collector: __strong }
+    
+  public
+    class function alloc: NSDrawer; message 'alloc';
+
+    function initWithContentSize_preferredEdge(contentSize_: NSSize; edge_: NSRectEdge): id; message 'initWithContentSize:preferredEdge:';
+    procedure setParentWindow(parent: NSWindow); message 'setParentWindow:';
+    function parentWindow: NSWindow; message 'parentWindow';
+    procedure setContentView(aView: NSView); message 'setContentView:';
+    function contentView: NSView; message 'contentView';
+    procedure setPreferredEdge(edge_: NSRectEdge); message 'setPreferredEdge:';
+    function preferredEdge: NSRectEdge; message 'preferredEdge';
+    procedure setDelegate(anObject: id); message 'setDelegate:';
+    function delegate: id; message 'delegate';
+    procedure open; message 'open';
+    procedure openOnEdge(edge_: NSRectEdge); message 'openOnEdge:';
+    procedure close; message 'close';
+    procedure toggle(sender: id); message 'toggle:';
+    function state: clong; message 'state';
+    function edge: NSRectEdge; message 'edge';
+    procedure setContentSize(size: NSSize); message 'setContentSize:';
+    function contentSize: NSSize; message 'contentSize';
+    procedure setMinContentSize(size: NSSize); message 'setMinContentSize:';
+    function minContentSize: NSSize; message 'minContentSize';
+    procedure setMaxContentSize(size: NSSize); message 'setMaxContentSize:';
+    function maxContentSize: NSSize; message 'maxContentSize';
+    procedure setLeadingOffset(offset: CGFloat); message 'setLeadingOffset:';
+    function leadingOffset: CGFloat; message 'leadingOffset';
+    procedure setTrailingOffset(offset: CGFloat); message 'setTrailingOffset:';
+    function trailingOffset: CGFloat; message 'trailingOffset';
+  end; external;
+
+{$endif}
+{$endif}

+ 68 - 0
packages/cocoaint/src/appkit/NSEPSImageRep.inc

@@ -0,0 +1,68 @@
+{ Parsed from Appkit.framework NSEPSImageRep.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSEPSIMAGEREP_PAS_H}
+{$define NSEPSIMAGEREP_PAS_H}
+type
+  NSEPSImageRepPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSEPSIMAGEREP_PAS_T}
+{$define NSEPSIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSEPSIMAGEREP_PAS_R}
+{$define NSEPSIMAGEREP_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSEPSIMAGEREP_PAS_F}
+{$define NSEPSIMAGEREP_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSEPSIMAGEREP_PAS_T}
+{$define NSEPSIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSEPSImageRep = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSEPSIMAGEREP_PAS_C}
+{$define NSEPSIMAGEREP_PAS_C}
+
+{ NSEPSImageRep }
+  NSEPSImageRep = objcclass(NSImageRep)
+  private
+    __bBoxOrigin: NSPoint;
+    __epsData: NSData;
+    __pdfImageRep: NSPDFImageRep;
+    
+  public
+    class function alloc: NSEPSImageRep; message 'alloc';
+
+    class function imageRepWithData_initWithData(epsData: NSData): id; message 'imageRepWithData:';
+    function initWithData(epsData: NSData): id; message 'initWithData:';
+    procedure prepareGState; message 'prepareGState';
+    function EPSRepresentation: NSData; message 'EPSRepresentation';
+    function boundingBox: NSRect; message 'boundingBox';
+  end; external;
+
+{$endif}
+{$endif}

+ 70 - 0
packages/cocoaint/src/appkit/NSErrors.inc

@@ -0,0 +1,70 @@
+{ Parsed from Appkit.framework NSErrors.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSERRORS_PAS_T}
+{$define NSERRORS_PAS_T}
+
+{ CFString constants }
+var
+  NSTextLineTooLongException: CFStringRef; external name '_NSTextLineTooLongException';
+  NSTextNoSelectionException: CFStringRef; external name '_NSTextNoSelectionException';
+  NSWordTablesWriteException: CFStringRef; external name '_NSWordTablesWriteException';
+  NSWordTablesReadException: CFStringRef; external name '_NSWordTablesReadException';
+  NSTextReadException: CFStringRef; external name '_NSTextReadException';
+  NSTextWriteException: CFStringRef; external name '_NSTextWriteException';
+  NSPasteboardCommunicationException: CFStringRef; external name '_NSPasteboardCommunicationException';
+  NSPrintingCommunicationException: CFStringRef; external name '_NSPrintingCommunicationException';
+  NSAbortModalException: CFStringRef; external name '_NSAbortModalException';
+  NSAbortPrintingException: CFStringRef; external name '_NSAbortPrintingException';
+  NSIllegalSelectorException: CFStringRef; external name '_NSIllegalSelectorException';
+  NSAppKitVirtualMemoryException: CFStringRef; external name '_NSAppKitVirtualMemoryException';
+  NSBadRTFDirectiveException: CFStringRef; external name '_NSBadRTFDirectiveException';
+  NSBadRTFFontTableException: CFStringRef; external name '_NSBadRTFFontTableException';
+  NSBadRTFStyleSheetException: CFStringRef; external name '_NSBadRTFStyleSheetException';
+  NSTypedStreamVersionException: CFStringRef; external name '_NSTypedStreamVersionException';
+  NSTIFFException: CFStringRef; external name '_NSTIFFException';
+  NSPrintPackageException: CFStringRef; external name '_NSPrintPackageException';
+  NSBadRTFColorTableException: CFStringRef; external name '_NSBadRTFColorTableException';
+  NSDraggingException: CFStringRef; external name '_NSDraggingException';
+  NSColorListIOException: CFStringRef; external name '_NSColorListIOException';
+  NSColorListNotEditableException: CFStringRef; external name '_NSColorListNotEditableException';
+  NSBadBitmapParametersException: CFStringRef; external name '_NSBadBitmapParametersException';
+  NSWindowServerCommunicationException: CFStringRef; external name '_NSWindowServerCommunicationException';
+  NSFontUnavailableException: CFStringRef; external name '_NSFontUnavailableException';
+  NSPPDIncludeNotFoundException: CFStringRef; external name '_NSPPDIncludeNotFoundException';
+  NSPPDParseException: CFStringRef; external name '_NSPPDParseException';
+  NSPPDIncludeStackOverflowException: CFStringRef; external name '_NSPPDIncludeStackOverflowException';
+  NSPPDIncludeStackUnderflowException: CFStringRef; external name '_NSPPDIncludeStackUnderflowException';
+  NSRTFPropertyStackOverflowException: CFStringRef; external name '_NSRTFPropertyStackOverflowException';
+  NSAppKitIgnoredException: CFStringRef; external name '_NSAppKitIgnoredException';
+  NSBadComparisonException: CFStringRef; external name '_NSBadComparisonException';
+  NSImageCacheException: CFStringRef; external name '_NSImageCacheException';
+  NSNibLoadingException: CFStringRef; external name '_NSNibLoadingException';
+  NSBrowserIllegalDelegateException: CFStringRef; external name '_NSBrowserIllegalDelegateException';
+  NSAccessibilityException: CFStringRef; external name '_NSAccessibilityException';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSERRORS_PAS_R}
+{$define NSERRORS_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSERRORS_PAS_F}
+{$define NSERRORS_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSERRORS_PAS_T}
+{$define NSERRORS_PAS_T}
+
+{$endif}
+{$endif}

+ 330 - 0
packages/cocoaint/src/appkit/NSEvent.inc

@@ -0,0 +1,330 @@
+{ Parsed from Appkit.framework NSEvent.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSEVENT_PAS_H}
+{$define NSEVENT_PAS_H}
+type
+  NSEventPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSEVENT_PAS_T}
+{$define NSEVENT_PAS_T}
+
+{ Constants }
+
+const
+  NSLeftMouseDown = 1;
+  NSLeftMouseUp = 2;
+  NSRightMouseDown = 3;
+  NSRightMouseUp = 4;
+  NSMouseMoved = 5;
+  NSLeftMouseDragged = 6;
+  NSRightMouseDragged = 7;
+  NSMouseEntered = 8;
+  NSMouseExited = 9;
+  NSKeyDown = 10;
+  NSKeyUp = 11;
+  NSFlagsChanged = 12;
+  NSAppKitDefined = 13;
+  NSSystemDefined = 14;
+  NSApplicationDefined = 15;
+  NSPeriodic = 16;
+  NSCursorUpdate = 17;
+  NSScrollWheel = 22;
+  NSTabletPoint = 23;
+  NSTabletProximity = 24;
+  NSOtherMouseDown = 25;
+  NSOtherMouseUp = 26;
+  NSOtherMouseDragged = 27;
+
+const
+  NSAnyEventMask = NSUIntegerMax;
+
+const
+  NSAlphaShiftKeyMask = 1  shl  16;
+  NSShiftKeyMask = 1  shl  17;
+  NSControlKeyMask = 1  shl  18;
+  NSAlternateKeyMask = 1  shl  19;
+  NSCommandKeyMask = 1  shl  20;
+  NSNumericPadKeyMask = 1  shl  21;
+  NSHelpKeyMask = 1  shl  22;
+  NSFunctionKeyMask = 1  shl  23;
+  NSDeviceIndependentModifierFlagsMask = $ffff0000;
+
+const
+  NSUnknownPointingDevice = NX_TABLET_POINTER_UNKNOWN;
+  NSPenPointingDevice = NX_TABLET_POINTER_PEN;
+  NSCursorPointingDevice = NX_TABLET_POINTER_CURSOR;
+  NSEraserPointingDevice = NX_TABLET_POINTER_ERASER;
+
+const
+  NSPenTipMask = NX_TABLET_BUTTON_PENTIPMASK;
+  NSPenLowerSideMask = NX_TABLET_BUTTON_PENLOWERSIDEMASK;
+  NSPenUpperSideMask = NX_TABLET_BUTTON_PENUPPERSIDEMASK;
+
+const
+  NSUpArrowFunctionKey = $F700;
+  NSDownArrowFunctionKey = $F701;
+  NSLeftArrowFunctionKey = $F702;
+  NSRightArrowFunctionKey = $F703;
+  NSF1FunctionKey = $F704;
+  NSF2FunctionKey = $F705;
+  NSF3FunctionKey = $F706;
+  NSF4FunctionKey = $F707;
+  NSF5FunctionKey = $F708;
+  NSF6FunctionKey = $F709;
+  NSF7FunctionKey = $F70A;
+  NSF8FunctionKey = $F70B;
+  NSF9FunctionKey = $F70C;
+  NSF10FunctionKey = $F70D;
+  NSF11FunctionKey = $F70E;
+  NSF12FunctionKey = $F70F;
+  NSF13FunctionKey = $F710;
+  NSF14FunctionKey = $F711;
+  NSF15FunctionKey = $F712;
+  NSF16FunctionKey = $F713;
+  NSF17FunctionKey = $F714;
+  NSF18FunctionKey = $F715;
+  NSF19FunctionKey = $F716;
+  NSF20FunctionKey = $F717;
+  NSF21FunctionKey = $F718;
+  NSF22FunctionKey = $F719;
+  NSF23FunctionKey = $F71A;
+  NSF24FunctionKey = $F71B;
+  NSF25FunctionKey = $F71C;
+  NSF26FunctionKey = $F71D;
+  NSF27FunctionKey = $F71E;
+  NSF28FunctionKey = $F71F;
+  NSF29FunctionKey = $F720;
+  NSF30FunctionKey = $F721;
+  NSF31FunctionKey = $F722;
+  NSF32FunctionKey = $F723;
+  NSF33FunctionKey = $F724;
+  NSF34FunctionKey = $F725;
+  NSF35FunctionKey = $F726;
+  NSInsertFunctionKey = $F727;
+  NSDeleteFunctionKey = $F728;
+  NSHomeFunctionKey = $F729;
+  NSBeginFunctionKey = $F72A;
+  NSEndFunctionKey = $F72B;
+  NSPageUpFunctionKey = $F72C;
+  NSPageDownFunctionKey = $F72D;
+  NSPrintScreenFunctionKey = $F72E;
+  NSScrollLockFunctionKey = $F72F;
+  NSPauseFunctionKey = $F730;
+  NSSysReqFunctionKey = $F731;
+  NSBreakFunctionKey = $F732;
+  NSResetFunctionKey = $F733;
+  NSStopFunctionKey = $F734;
+  NSMenuFunctionKey = $F735;
+  NSUserFunctionKey = $F736;
+  NSSystemFunctionKey = $F737;
+  NSPrintFunctionKey = $F738;
+  NSClearLineFunctionKey = $F739;
+  NSClearDisplayFunctionKey = $F73A;
+  NSInsertLineFunctionKey = $F73B;
+  NSDeleteLineFunctionKey = $F73C;
+  NSInsertCharFunctionKey = $F73D;
+  NSDeleteCharFunctionKey = $F73E;
+  NSPrevFunctionKey = $F73F;
+  NSNextFunctionKey = $F740;
+  NSSelectFunctionKey = $F741;
+  NSExecuteFunctionKey = $F742;
+  NSUndoFunctionKey = $F743;
+  NSRedoFunctionKey = $F744;
+  NSFindFunctionKey = $F745;
+  NSHelpFunctionKey = $F746;
+  NSModeSwitchFunctionKey = $F747;
+
+const
+  NSWindowExposedEventType = 0;
+  NSApplicationActivatedEventType = 1;
+  NSApplicationDeactivatedEventType = 2;
+  NSWindowMovedEventType = 4;
+  NSScreenChangedEventType = 8;
+  NSAWTEventType = 16;
+
+const
+  NSPowerOffEventType = 1;
+
+const
+  NSMouseEventSubtype = NX_SUBTYPE_DEFAULT;
+  NSTabletPointEventSubtype = NX_SUBTYPE_TABLET_POINT;
+  NSTabletProximityEventSubtype = NX_SUBTYPE_TABLET_PROXIMITY;
+
+{ Types }
+type
+  NSEventType = culong;
+  NSPointingDeviceType = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSEVENT_PAS_R}
+{$define NSEVENT_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSEVENT_PAS_F}
+{$define NSEVENT_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSEVENT_PAS_T}
+{$define NSEVENT_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSEvent = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSEVENT_PAS_C}
+{$define NSEVENT_PAS_C}
+
+{ NSEvent }
+  NSEvent = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __type: NSEventType;
+    __location: NSPoint;
+    __modifierFlags: cuint;
+    __WSTimestamp: clong;
+    __timestamp: NSTimeInterval;
+    __windowNumber: clong;
+    __window: NSWindow;
+    __context: NSGraphicsContext;
+    _mouse: record
+        eventNumber: cint;
+        clickCount: cint;
+        pressure: single;
+        {$ifdef cpu64}
+        deltaX: CGFloat;
+        deltaY: CGFloat;
+        subtype: cint;
+        buttonNumber: cshort;
+        reserved1: cshort;
+        reserved2: cint;
+        {$endif}
+      end;
+    _key: record
+        keys: NSString;
+        unmodKeys: NSString;
+        keyCode: cushort;
+        isARepeat: Boolean;
+        {$ifdef cpu64}
+        reserved: cint;
+        {$endif}
+      end;
+    _tracking: record
+        eventNumber: cint;
+        trackingNumber: clong;
+        userData: Pointer;
+        {$ifdef cpu64}
+        reserved: cint;
+        {$endif}
+      end;
+    _scrollWheel: record
+        deltaX: CGFloat;
+        deltaY: CGFloat;
+        deltaZ: CGFloat;
+        {$ifdef cpu64}
+        subtype: cshort;
+        reserved1: cshort;
+        reserved2: cint;
+        {$endif}
+      end;
+    _misc: record
+        subtype: cint;
+        data1: clong;
+        data2: clong;
+        {$ifdef cpu64}
+        reserved: cint;
+        {$endif}
+      end;
+    {$ifdef cpu64}
+    _tabletPointData: cint;
+    _tabletProximityData: cint;
+    {$endif}
+    __data: record
+      end;
+    __eventRef: Pointer;
+    {$ifdef cpu64}
+    _reserved1: Pointer;
+    _reserved2: Pointer;
+    {$endif}
+    
+  public
+    class function alloc: NSEvent; message 'alloc';
+
+    function type_: NSEventType; message 'type';
+    function modifierFlags: culong; message 'modifierFlags';
+    function timestamp: NSTimeInterval; message 'timestamp';
+    function window: NSWindow; message 'window';
+    function windowNumber: clong; message 'windowNumber';
+    function context: NSGraphicsContext; message 'context';
+    function clickCount: clong; message 'clickCount';
+    function buttonNumber: clong; message 'buttonNumber';
+    function eventNumber: clong; message 'eventNumber';
+    function pressure: single; message 'pressure';
+    function locationInWindow: NSPoint; message 'locationInWindow';
+    function deltaX: CGFloat; message 'deltaX';
+    function deltaY: CGFloat; message 'deltaY';
+    function deltaZ: CGFloat; message 'deltaZ';
+    function characters: NSString; message 'characters';
+    function charactersIgnoringModifiers: NSString; message 'charactersIgnoringModifiers';
+    function isARepeat: Boolean; message 'isARepeat';
+    function keyCode: cushort; message 'keyCode';
+    function trackingNumber: clong; message 'trackingNumber';
+    function userData: Pointer; message 'userData';
+    function trackingArea: NSTrackingArea; message 'trackingArea';
+    function subtype: cshort; message 'subtype';
+    function data1: clong; message 'data1';
+    function data2: clong; message 'data2';
+    function eventRef: Pointer; message 'eventRef';
+    class function eventWithEventRef(eventRef_: Pointer): NSEvent; message 'eventWithEventRef:';
+    function CGEvent: CGEventRef; message 'CGEvent';
+    class function eventWithCGEvent(CGEvent_: CGEventRef): NSEvent; message 'eventWithCGEvent:';
+    class procedure setMouseCoalescingEnabled(flag: Boolean); message 'setMouseCoalescingEnabled:';
+    class function isMouseCoalescingEnabled: Boolean; message 'isMouseCoalescingEnabled';
+    function deviceID: culong; message 'deviceID';
+    function absoluteX: clong; message 'absoluteX';
+    function absoluteY: clong; message 'absoluteY';
+    function absoluteZ: clong; message 'absoluteZ';
+    function buttonMask: culong; message 'buttonMask';
+    function tilt: NSPoint; message 'tilt';
+    function rotation: single; message 'rotation';
+    function tangentialPressure: single; message 'tangentialPressure';
+    function vendorDefined: id; message 'vendorDefined';
+    function vendorID: culong; message 'vendorID';
+    function tabletID: culong; message 'tabletID';
+    function pointingDeviceID: culong; message 'pointingDeviceID';
+    function systemTabletID: culong; message 'systemTabletID';
+    function vendorPointingDeviceType: culong; message 'vendorPointingDeviceType';
+    function pointingDeviceSerialNumber: culong; message 'pointingDeviceSerialNumber';
+    function uniqueID: culonglong; message 'uniqueID';
+    function capabilityMask: culong; message 'capabilityMask';
+    function pointingDeviceType: NSPointingDeviceType; message 'pointingDeviceType';
+    function isEnteringProximity: Boolean; message 'isEnteringProximity';
+    class procedure startPeriodicEventsAfterDelay_withPeriod(delay: NSTimeInterval; period: NSTimeInterval); message 'startPeriodicEventsAfterDelay:withPeriod:';
+    class procedure stopPeriodicEvents; message 'stopPeriodicEvents';
+    class function mouseEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_clickCount_pressure(type__: NSEventType; location: NSPoint; flags: culong; time: NSTimeInterval; wNum: clong; context_: NSGraphicsContext; eNum: clong; cNum: clong; pressure_: single): NSEvent; message 'mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:';
+    class function keyEventWithType_location_modifierFlags_timestamp_windowNumber_context_characters_charactersIgnoringModifiers_isARepeat_keyCode(type__: NSEventType; location: NSPoint; flags: culong; time: NSTimeInterval; wNum: clong; context_: NSGraphicsContext; keys: NSString; ukeys: NSString; flag: Boolean; code: cushort): NSEvent; message 'keyEventWithType:location:modifierFlags:timestamp:windowNumber:context:characters:charactersIgnoringModifiers:isARepeat:keyCode:';
+    class function enterExitEventWithType_location_modifierFlags_timestamp_windowNumber_context_eventNumber_trackingNumber_userData(type__: NSEventType; location: NSPoint; flags: culong; time: NSTimeInterval; wNum: clong; context_: NSGraphicsContext; eNum: clong; tNum: clong; data: Pointer): NSEvent; message 'enterExitEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:trackingNumber:userData:';
+    class function otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2(type__: NSEventType; location: NSPoint; flags: culong; time: NSTimeInterval; wNum: clong; context_: NSGraphicsContext; subtype_: cshort; d: clong; d1: clong): NSEvent; message 'otherEventWithType:location:modifierFlags:timestamp:windowNumber:context:subtype:data1:data2:';
+    class function mouseLocation: NSPoint; message 'mouseLocation';
+  end; external;
+
+{$endif}
+{$endif}

+ 95 - 0
packages/cocoaint/src/appkit/NSFileWrapper.inc

@@ -0,0 +1,95 @@
+{ Parsed from Appkit.framework NSFileWrapper.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSFILEWRAPPER_PAS_H}
+{$define NSFILEWRAPPER_PAS_H}
+type
+  NSFileWrapperPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSFILEWRAPPER_PAS_T}
+{$define NSFILEWRAPPER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSFILEWRAPPER_PAS_R}
+{$define NSFILEWRAPPER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSFILEWRAPPER_PAS_F}
+{$define NSFILEWRAPPER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSFILEWRAPPER_PAS_T}
+{$define NSFILEWRAPPER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSFileWrapper = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSFILEWRAPPER_PAS_C}
+{$define NSFILEWRAPPER_PAS_C}
+
+{ NSFileWrapper }
+  NSFileWrapper = objcclass(NSObject, NSCodingProtocol)
+  private
+    __impl: id;
+    __fileName: NSString;
+    __preferredFileName: NSString;
+    __fileAttributes: NSDictionary;
+    __image: NSImage;
+    __moreVars: id;
+    
+  public
+    class function alloc: NSFileWrapper; message 'alloc';
+
+    function initDirectoryWithFileWrappers(docs: NSDictionary): id; message 'initDirectoryWithFileWrappers:';
+    function initRegularFileWithContents(data: NSData): id; message 'initRegularFileWithContents:';
+    function initSymbolicLinkWithDestination(path: NSString): id; message 'initSymbolicLinkWithDestination:';
+    function initWithPath(path: NSString): id; message 'initWithPath:';
+    function initWithSerializedRepresentation(data: NSData): id; message 'initWithSerializedRepresentation:';
+    function writeToFile_atomically_updateFilenames(path: NSString; atomicFlag: Boolean; updateFilenamesFlag: Boolean): Boolean; message 'writeToFile:atomically:updateFilenames:';
+    function serializedRepresentation: NSData; message 'serializedRepresentation';
+    procedure setFilename(filename_: NSString); message 'setFilename:';
+    function filename: NSString; message 'filename';
+    procedure setPreferredFilename(filename_: NSString); message 'setPreferredFilename:';
+    function preferredFilename: NSString; message 'preferredFilename';
+    procedure setFileAttributes(attributes: NSDictionary); message 'setFileAttributes:';
+    function fileAttributes: NSDictionary; message 'fileAttributes';
+    function isRegularFile: Boolean; message 'isRegularFile';
+    function isDirectory: Boolean; message 'isDirectory';
+    function isSymbolicLink: Boolean; message 'isSymbolicLink';
+    procedure setIcon(icon_: NSImage); message 'setIcon:';
+    function icon: NSImage; message 'icon';
+    function needsToBeUpdatedFromPath(path: NSString): Boolean; message 'needsToBeUpdatedFromPath:';
+    function updateFromPath(path: NSString): Boolean; message 'updateFromPath:';
+    function addFileWrapper(doc: NSFileWrapper): NSString; message 'addFileWrapper:';
+    procedure removeFileWrapper(doc: NSFileWrapper); message 'removeFileWrapper:';
+    function fileWrappers: NSDictionary; message 'fileWrappers';
+    function keyForFileWrapper(doc: NSFileWrapper): NSString; message 'keyForFileWrapper:';
+    function addFileWithPath(path: NSString): NSString; message 'addFileWithPath:';
+    function addRegularFileWithContents_preferredFilename(data: NSData; filename_: NSString): NSString; message 'addRegularFileWithContents:preferredFilename:';
+    function addSymbolicLinkWithDestination_preferredFilename(path: NSString; filename_: NSString): NSString; message 'addSymbolicLinkWithDestination:preferredFilename:';
+    function regularFileContents: NSData; message 'regularFileContents';
+    function symbolicLinkDestination: NSString; message 'symbolicLinkDestination';
+  end; external;
+
+{$endif}
+{$endif}

+ 165 - 0
packages/cocoaint/src/appkit/NSFont.inc

@@ -0,0 +1,165 @@
+{ Parsed from Appkit.framework NSFont.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSFONT_PAS_H}
+{$define NSFONT_PAS_H}
+type
+  NSFontPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSFONT_PAS_T}
+{$define NSFONT_PAS_T}
+
+{ Types }
+type
+  NSGlyph = cuint;
+  NSMultibyteGlyphPacking = culong;
+  NSFontRenderingMode = culong;
+  NSGlyphRelation = culong;
+
+{ Constants }
+
+const
+  NSControlGlyph = $00FFFFFF;
+  NSNullGlyph = $0;
+
+const
+  NSNativeShortGlyphPacking = 5;
+
+const
+  NSOneByteGlyphPacking = 0;
+  NSJapaneseEUCGlyphPacking = 1;
+  NSAsciiWithDoubleByteEUCGlyphPacking = 2;
+  NSTwoByteGlyphPacking = 3;
+  NSFourByteGlyphPacking = 4;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSFONT_PAS_R}
+{$define NSFONT_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSFONT_PAS_F}
+{$define NSFONT_PAS_F}
+
+{ Functions }
+function NSConvertGlyphsToPackedGlyphs(var glBuf: NSGlyph; count: clong; packing: NSMultibyteGlyphPacking; var packedGlyphs: char): clong; cdecl; external name 'NSConvertGlyphsToPackedGlyphs';
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSFONT_PAS_T}
+{$define NSFONT_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSFont = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSFONT_PAS_C}
+{$define NSFONT_PAS_C}
+
+{ NSFont }
+  NSFont = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __name: NSString;
+    __size: CGFloat;
+    __reservedFont1: Pointer;
+    __fFlags: bitpacked record
+        _isScreenFont: 0..1;
+        _systemFontType: 0..((1 shl 8)-1);
+        _reserved1: 0..((1 shl 4)-1);
+        _matrixIsIdentity: 0..1;
+        _renderingMode: 0..((1 shl 3)-1);
+        _reserved2: 0..((1 shl 15)-1);
+      end;
+    __private: id;
+    
+  public
+    class function alloc: NSFont; message 'alloc';
+
+    class function fontWithName_size(fontName_: NSString; fontSize: CGFloat): NSFont; message 'fontWithName:size:';
+    class function fontWithName_matrix(fontName_: NSString; var fontMatrix: CGFloat): NSFont; message 'fontWithName:matrix:';
+    class function fontWithDescriptor_size(fontDescriptor_: NSFontDescriptor; fontSize: CGFloat): NSFont; message 'fontWithDescriptor:size:';
+    class function fontWithDescriptor_textTransform(fontDescriptor_: NSFontDescriptor; textTransform_: NSAffineTransform): NSFont; message 'fontWithDescriptor:textTransform:';
+    class function userFontOfSize(fontSize: CGFloat): NSFont; message 'userFontOfSize:';
+    class function userFixedPitchFontOfSize(fontSize: CGFloat): NSFont; message 'userFixedPitchFontOfSize:';
+    class procedure setUserFont(aFont: NSFont); message 'setUserFont:';
+    class procedure setUserFixedPitchFont(aFont: NSFont); message 'setUserFixedPitchFont:';
+    class function systemFontOfSize(fontSize: CGFloat): NSFont; message 'systemFontOfSize:';
+    class function boldSystemFontOfSize(fontSize: CGFloat): NSFont; message 'boldSystemFontOfSize:';
+    class function labelFontOfSize(fontSize: CGFloat): NSFont; message 'labelFontOfSize:';
+    class function titleBarFontOfSize(fontSize: CGFloat): NSFont; message 'titleBarFontOfSize:';
+    class function menuFontOfSize(fontSize: CGFloat): NSFont; message 'menuFontOfSize:';
+    class function menuBarFontOfSize(fontSize: CGFloat): NSFont; message 'menuBarFontOfSize:';
+    class function messageFontOfSize(fontSize: CGFloat): NSFont; message 'messageFontOfSize:';
+    class function paletteFontOfSize(fontSize: CGFloat): NSFont; message 'paletteFontOfSize:';
+    class function toolTipsFontOfSize(fontSize: CGFloat): NSFont; message 'toolTipsFontOfSize:';
+    class function controlContentFontOfSize(fontSize: CGFloat): NSFont; message 'controlContentFontOfSize:';
+    class function systemFontSize: CGFloat; message 'systemFontSize';
+    class function smallSystemFontSize: CGFloat; message 'smallSystemFontSize';
+    class function labelFontSize: CGFloat; message 'labelFontSize';
+    class function systemFontSizeForControlSize(controlSize: NSControlSize): CGFloat; message 'systemFontSizeForControlSize:';
+    function fontName: NSString; message 'fontName';
+    function pointSize: CGFloat; message 'pointSize';
+    function matrix: CGFloat; message 'matrix';
+    function familyName: NSString; message 'familyName';
+    function displayName: NSString; message 'displayName';
+    function fontDescriptor: NSFontDescriptor; message 'fontDescriptor';
+    function textTransform: NSAffineTransform; message 'textTransform';
+    function numberOfGlyphs: culong; message 'numberOfGlyphs';
+    function mostCompatibleStringEncoding: NSStringEncoding; message 'mostCompatibleStringEncoding';
+    function glyphWithName(aName: NSString): NSGlyph; message 'glyphWithName:';
+    function coveredCharacterSet: NSCharacterSet; message 'coveredCharacterSet';
+    function boundingRectForFont: NSRect; message 'boundingRectForFont';
+    function maximumAdvancement: NSSize; message 'maximumAdvancement';
+    function ascender: CGFloat; message 'ascender';
+    function descender: CGFloat; message 'descender';
+    function leading: CGFloat; message 'leading';
+    function underlinePosition: CGFloat; message 'underlinePosition';
+    function underlineThickness: CGFloat; message 'underlineThickness';
+    function italicAngle: CGFloat; message 'italicAngle';
+    function capHeight: CGFloat; message 'capHeight';
+    function xHeight: CGFloat; message 'xHeight';
+    function isFixedPitch: Boolean; message 'isFixedPitch';
+    function boundingRectForGlyph(aGlyph: NSGlyph): NSRect; message 'boundingRectForGlyph:';
+    function advancementForGlyph(ag: NSGlyph): NSSize; message 'advancementForGlyph:';
+    procedure getBoundingRects_forGlyphs_count(bounds: NSRectArray; var glyphs: NSGlyph; glyphCount: culong); message 'getBoundingRects:forGlyphs:count:';
+    procedure getAdvancements_forGlyphs_count(advancements: NSSizeArray; var glyphs: NSGlyph; glyphCount: culong); message 'getAdvancements:forGlyphs:count:';
+    procedure getAdvancements_forPackedGlyphs_length(advancements: NSSizeArray; packedGlyphs: Pointer; length: culong); message 'getAdvancements:forPackedGlyphs:length:';
+    procedure set_; message 'set';
+    procedure setInContext(graphicsContext: NSGraphicsContext); message 'setInContext:';
+    function printerFont: NSFont; message 'printerFont';
+    function screenFont: NSFont; message 'screenFont';
+    function screenFontWithRenderingMode(renderingMode_: NSFontRenderingMode): NSFont; message 'screenFontWithRenderingMode:';
+    function renderingMode: NSFontRenderingMode; message 'renderingMode';
+
+    { Category: NSFontDeprecated }
+    class procedure useFont(fontName_: NSString); message 'useFont:';
+    function widthOfString(string_: NSString): CGFloat; message 'widthOfString:';
+    function glyphIsEncoded(aGlyph: NSGlyph): Boolean; message 'glyphIsEncoded:';
+    class procedure setPreferredFontNames(fontNameArray: NSArray); message 'setPreferredFontNames:';
+    function positionOfGlyph_precededByGlyph_isNominal(curGlyph: NSGlyph; prevGlyph: NSGlyph; var nominal: Boolean): NSPoint; message 'positionOfGlyph:precededByGlyph:isNominal:';
+    function positionsForCompositeSequence_numberOfGlyphs_pointArray(var someGlyphs: NSGlyph; numGlyphs: clong; points: NSPointArray): clong; message 'positionsForCompositeSequence:numberOfGlyphs:pointArray:';
+    function positionOfGlyph_struckOverGlyph_metricsExist(curGlyph: NSGlyph; prevGlyph: NSGlyph; var exist: Boolean): NSPoint; message 'positionOfGlyph:struckOverGlyph:metricsExist:';
+    function positionOfGlyph_struckOverRect_metricsExist(aGlyph: NSGlyph; aRect: NSRect; var exist: Boolean): NSPoint; message 'positionOfGlyph:struckOverRect:metricsExist:';
+    function positionOfGlyph_forCharacter_struckOverRect(aGlyph: NSGlyph; aChar: unichar; aRect: NSRect): NSPoint; message 'positionOfGlyph:forCharacter:struckOverRect:';
+    function positionOfGlyph_withRelation_toBaseGlyph_totalAdvancement_metricsExist(thisGlyph: NSGlyph; rel: NSGlyphRelation; baseGlyph: NSGlyph; adv: NSSizePointer; var exist: Boolean): NSPoint; message 'positionOfGlyph:withRelation:toBaseGlyph:totalAdvancement:metricsExist:';
+  end; external;
+
+{$endif}
+{$endif}

+ 116 - 0
packages/cocoaint/src/appkit/NSFontDescriptor.inc

@@ -0,0 +1,116 @@
+{ Parsed from Appkit.framework NSFontDescriptor.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSFONTDESCRIPTOR_PAS_H}
+{$define NSFONTDESCRIPTOR_PAS_H}
+type
+  NSFontDescriptorPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSFONTDESCRIPTOR_PAS_T}
+{$define NSFONTDESCRIPTOR_PAS_T}
+
+{ Types }
+type
+  NSFontSymbolicTraits = cardinal;
+  NSFontFamilyClass = cardinal;
+
+{ Constants }
+
+const
+  NSFontUnknownClass = 0  shl  28;
+  NSFontOldStyleSerifsClass = 1  shl  28;
+  NSFontTransitionalSerifsClass = 2  shl  28;
+  NSFontModernSerifsClass = 3  shl  28;
+  NSFontClarendonSerifsClass = 4  shl  28;
+  NSFontSlabSerifsClass = 5  shl  28;
+  NSFontFreeformSerifsClass = 7  shl  28;
+  NSFontSansSerifClass = 8  shl  28;
+  NSFontOrnamentalsClass = 9  shl  28;
+  NSFontScriptsClass = 10  shl  28;
+  NSFontSymbolicClass = 12  shl  28;
+
+const
+  NSFontFamilyClassMask = $F0000000;
+
+const
+  NSFontItalicTrait = 1  shl  0;
+  NSFontBoldTrait = 1  shl  1;
+  NSFontExpandedTrait = 1  shl  5;
+  NSFontCondensedTrait = 1  shl  6;
+  NSFontMonoSpaceTrait = 1  shl  10;
+  NSFontVerticalTrait = 1  shl  11;
+  NSFontUIOptimizedTrait = 1  shl  12;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSFONTDESCRIPTOR_PAS_R}
+{$define NSFONTDESCRIPTOR_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSFONTDESCRIPTOR_PAS_F}
+{$define NSFONTDESCRIPTOR_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSFONTDESCRIPTOR_PAS_T}
+{$define NSFONTDESCRIPTOR_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSFontDescriptor = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSFONTDESCRIPTOR_PAS_C}
+{$define NSFONTDESCRIPTOR_PAS_C}
+
+{ NSFontDescriptor }
+  NSFontDescriptor = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __attributes: NSMutableDictionary;
+    __reserved1: id;
+    __reserved2: id;
+    __reserved3: id;
+    __reserved4: id;
+    __reserved5: id;
+    
+  public
+    class function alloc: NSFontDescriptor; message 'alloc';
+
+    function postscriptName: NSString; message 'postscriptName';
+    function pointSize: CGFloat; message 'pointSize';
+    function matrix: NSAffineTransform; message 'matrix';
+    function symbolicTraits: NSFontSymbolicTraits; message 'symbolicTraits';
+    function objectForKey(anAttribute: NSString): id; message 'objectForKey:';
+    function fontAttributes: NSDictionary; message 'fontAttributes';
+    class function fontDescriptorWithFontAttributes(attributes: NSDictionary): NSFontDescriptor; message 'fontDescriptorWithFontAttributes:';
+    class function fontDescriptorWithName_size(fontName: NSString; size: CGFloat): NSFontDescriptor; message 'fontDescriptorWithName:size:';
+    class function fontDescriptorWithName_matrix(fontName: NSString; matrix_: NSAffineTransform): NSFontDescriptor; message 'fontDescriptorWithName:matrix:';
+    function initWithFontAttributes(attributes: NSDictionary): id; message 'initWithFontAttributes:';
+    function matchingFontDescriptorsWithMandatoryKeys(mandatoryKeys: NSSet): NSArray; message 'matchingFontDescriptorsWithMandatoryKeys:';
+    function matchingFontDescriptorWithMandatoryKeys(mandatoryKeys: NSSet): NSFontDescriptor; message 'matchingFontDescriptorWithMandatoryKeys:';
+    function fontDescriptorByAddingAttributes(attributes: NSDictionary): NSFontDescriptor; message 'fontDescriptorByAddingAttributes:';
+    function fontDescriptorWithSymbolicTraits(symbolicTraits_: NSFontSymbolicTraits): NSFontDescriptor; message 'fontDescriptorWithSymbolicTraits:';
+    function fontDescriptorWithSize(newPointSize: CGFloat): NSFontDescriptor; message 'fontDescriptorWithSize:';
+    function fontDescriptorWithMatrix(matrix_: NSAffineTransform): NSFontDescriptor; message 'fontDescriptorWithMatrix:';
+    function fontDescriptorWithFace(newFace: NSString): NSFontDescriptor; message 'fontDescriptorWithFace:';
+    function fontDescriptorWithFamily(newFamily: NSString): NSFontDescriptor; message 'fontDescriptorWithFamily:';
+  end; external;
+
+{$endif}
+{$endif}

+ 164 - 0
packages/cocoaint/src/appkit/NSFontManager.inc

@@ -0,0 +1,164 @@
+{ Parsed from Appkit.framework NSFontManager.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSFONTMANAGER_PAS_H}
+{$define NSFONTMANAGER_PAS_H}
+type
+  NSFontManagerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSFONTMANAGER_PAS_T}
+{$define NSFONTMANAGER_PAS_T}
+
+{ Types }
+type
+  NSFontTraitMask = culong;
+  NSFontAction = culong;
+
+{ Constants }
+
+const
+  NSItalicFontMask = $00000001;
+  NSBoldFontMask = $00000002;
+  NSUnboldFontMask = $00000004;
+  NSNonStandardCharacterSetFontMask = $00000008;
+  NSNarrowFontMask = $00000010;
+  NSExpandedFontMask = $00000020;
+  NSCondensedFontMask = $00000040;
+  NSSmallCapsFontMask = $00000080;
+  NSPosterFontMask = $00000100;
+  NSCompressedFontMask = $00000200;
+  NSFixedPitchFontMask = $00000400;
+  NSUnitalicFontMask = $01000000;
+
+const
+  NSFontCollectionApplicationOnlyMask = 1  shl  0;
+
+const
+  NSNoFontChangeAction = 0;
+  NSViaPanelFontAction = 1;
+  NSAddTraitFontAction = 2;
+  NSSizeUpFontAction = 3;
+  NSSizeDownFontAction = 4;
+  NSHeavierFontAction = 5;
+  NSLighterFontAction = 6;
+  NSRemoveTraitFontAction = 7;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSFONTMANAGER_PAS_R}
+{$define NSFONTMANAGER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSFONTMANAGER_PAS_F}
+{$define NSFONTMANAGER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSFONTMANAGER_PAS_T}
+{$define NSFONTMANAGER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSFontManager = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSFONTMANAGER_PAS_C}
+{$define NSFONTMANAGER_PAS_C}
+
+{ NSFontManager }
+  NSFontManager = objcclass(NSObject)
+  private
+    __panel: NSFontPanel;
+    __fmReserved1: cuint;
+    __action: SEL;
+    __actionOrigin: id;
+    __target: id;
+    __selFont: NSFont;
+    __fmFlags: bitpacked record
+        multipleFont: 0..1;
+        disabled: 0..1;
+        senderTagMode: 0..((1 shl 2)-1);
+        _RESERVED: 0..((1 shl 12)-1);
+      end;
+    __fmReserved3: cushort;
+    __delegate: id;
+    __collections: id;
+    __hiddenCollections: id;
+    __fmReserved4: culong;
+    
+  public
+    class function alloc: NSFontManager; message 'alloc';
+
+    class procedure setFontPanelFactory(factoryId: Pobjc_class); message 'setFontPanelFactory:';
+    class procedure setFontManagerFactory(factoryId: Pobjc_class); message 'setFontManagerFactory:';
+    class function sharedFontManager: NSFontManager; message 'sharedFontManager';
+    function isMultiple: Boolean; message 'isMultiple';
+    function selectedFont: NSFont; message 'selectedFont';
+    procedure setSelectedFont_isMultiple(fontObj: NSFont; flag: Boolean); message 'setSelectedFont:isMultiple:';
+    procedure setFontMenu(newMenu: NSMenu); message 'setFontMenu:';
+    function fontMenu(create_: Boolean): NSMenu; message 'fontMenu:';
+    function fontPanel(create_: Boolean): NSFontPanel; message 'fontPanel:';
+    function fontWithFamily_traits_weight_size(family: NSString; traits: NSFontTraitMask; weight: clong; size: CGFloat): NSFont; message 'fontWithFamily:traits:weight:size:';
+    function traitsOfFont(fontObj: NSFont): NSFontTraitMask; message 'traitsOfFont:';
+    function weightOfFont(fontObj: NSFont): clong; message 'weightOfFont:';
+    function availableFonts: NSArray; message 'availableFonts';
+    function availableFontFamilies: NSArray; message 'availableFontFamilies';
+    function availableMembersOfFontFamily(fam: NSString): NSArray; message 'availableMembersOfFontFamily:';
+    function convertFont(fontObj: NSFont): NSFont; message 'convertFont:';
+    function convertFont_toSize(fontObj: NSFont; size: CGFloat): NSFont; message 'convertFont:toSize:';
+    function convertFont_toFace(fontObj: NSFont; typeface: NSString): NSFont; message 'convertFont:toFace:';
+    function convertFont_toFamily(fontObj: NSFont; family: NSString): NSFont; message 'convertFont:toFamily:';
+    function convertFont_toHaveTrait(fontObj: NSFont; trait: NSFontTraitMask): NSFont; message 'convertFont:toHaveTrait:';
+    function convertFont_toNotHaveTrait(fontObj: NSFont; trait: NSFontTraitMask): NSFont; message 'convertFont:toNotHaveTrait:';
+    function convertWeight_ofFont(upFlag: Boolean; fontObj: NSFont): NSFont; message 'convertWeight:ofFont:';
+    function isEnabled: Boolean; message 'isEnabled';
+    procedure setEnabled(flag: Boolean); message 'setEnabled:';
+    function action: SEL; message 'action';
+    procedure setAction(aSelector: SEL); message 'setAction:';
+    function sendAction: Boolean; message 'sendAction';
+    procedure setDelegate(anObject: id); message 'setDelegate:';
+    function delegate: id; message 'delegate';
+    function localizedNameForFamily_face(family: NSString; faceKey: NSString): NSString; message 'localizedNameForFamily:face:';
+    procedure setSelectedAttributes_isMultiple(attributes: NSDictionary; flag: Boolean); message 'setSelectedAttributes:isMultiple:';
+    function convertAttributes(attributes: NSDictionary): NSDictionary; message 'convertAttributes:';
+    function availableFontNamesMatchingFontDescriptor(descriptor: NSFontDescriptor): NSArray; message 'availableFontNamesMatchingFontDescriptor:';
+    function collectionNames: NSArray; message 'collectionNames';
+    function fontDescriptorsInCollection(collectionNames_: NSString): NSArray; message 'fontDescriptorsInCollection:';
+    function addCollection_options(collectionName: NSString; collectionOptions: clong): Boolean; message 'addCollection:options:';
+    function removeCollection(collectionName: NSString): Boolean; message 'removeCollection:';
+    procedure addFontDescriptors_toCollection(descriptors: NSArray; collectionName: NSString); message 'addFontDescriptors:toCollection:';
+    procedure removeFontDescriptor_fromCollection(descriptor: NSFontDescriptor; collection: NSString); message 'removeFontDescriptor:fromCollection:';
+    function currentFontAction: NSFontAction; message 'currentFontAction';
+    function convertFontTraits(traits: NSFontTraitMask): NSFontTraitMask; message 'convertFontTraits:';
+    procedure setTarget(aTarget: id); message 'setTarget:';
+    function target: id; message 'target';
+
+    { Category: NSFontManagerMenuActionMethods }
+    function fontNamed_hasTraits(fName: NSString; someTraits: NSFontTraitMask): Boolean; message 'fontNamed:hasTraits:';
+    function availableFontNamesWithTraits(someTraits: NSFontTraitMask): NSArray; message 'availableFontNamesWithTraits:';
+    procedure addFontTrait(sender: id); message 'addFontTrait:';
+    procedure removeFontTrait(sender: id); message 'removeFontTrait:';
+    procedure modifyFontViaPanel(sender: id); message 'modifyFontViaPanel:';
+    procedure modifyFont(sender: id); message 'modifyFont:';
+    procedure orderFrontFontPanel(sender: id); message 'orderFrontFontPanel:';
+    procedure orderFrontStylesPanel(sender: id); message 'orderFrontStylesPanel:';
+  end; external;
+
+{$endif}
+{$endif}

+ 158 - 0
packages/cocoaint/src/appkit/NSFontPanel.inc

@@ -0,0 +1,158 @@
+{ Parsed from Appkit.framework NSFontPanel.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSFONTPANEL_PAS_H}
+{$define NSFONTPANEL_PAS_H}
+type
+  NSFontPanelPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSFONTPANEL_PAS_T}
+{$define NSFONTPANEL_PAS_T}
+
+{ Constants }
+
+const
+  NSFPPreviewButton = 131;
+  NSFPRevertButton = 130;
+  NSFPSetButton = 132;
+  NSFPPreviewField = 128;
+  NSFPSizeField = 129;
+  NSFPSizeTitle = 133;
+  NSFPCurrentField = 134;
+
+const
+  NSFontPanelFaceModeMask = 1  shl  0;
+  NSFontPanelSizeModeMask = 1  shl  1;
+  NSFontPanelCollectionModeMask = 1  shl  2;
+  NSFontPanelUnderlineEffectModeMask = 1 shl 8;
+  NSFontPanelStrikethroughEffectModeMask = 1 shl 9;
+  NSFontPanelTextColorEffectModeMask = 1 shl  10;
+  NSFontPanelDocumentColorEffectModeMask = 1 shl 11;
+  NSFontPanelShadowEffectModeMask = 1 shl 12;
+  NSFontPanelAllEffectsModeMask = $FFF00;
+  NSFontPanelStandardModesMask = $FFFF;
+  NSFontPanelAllModesMask = $FFFFFFFF;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSFONTPANEL_PAS_R}
+{$define NSFONTPANEL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSFONTPANEL_PAS_F}
+{$define NSFONTPANEL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSFONTPANEL_PAS_T}
+{$define NSFONTPANEL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSFontPanel = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSFONTPANEL_PAS_C}
+{$define NSFONTPANEL_PAS_C}
+
+{ NSFontPanel }
+  NSFontPanel = objcclass(NSPanel)
+  private
+    __manager: NSFontManager;
+    __collectionNames: NSArray;
+    __selection: id;
+    __carbonNotification: Pointer;
+    __targetObject: id;
+    __familyList: id;
+    __faceList: id;
+    __sizeList: id;
+    __mainCollectionList: id;
+    __sizeField: id;
+    __sizeSlider: id;
+    __sizeSliderBox: id;
+    __preview: id;
+    __previewCaption: id;
+    __mainSplitView: id;
+    __mmCollectionList: id;
+    __mmFamilyList: id;
+    __mmFaceList: id;
+    __mmSizeList: id;
+    __extrasPopup: id;
+    __searchField: id;
+    __fixedListButton: id;
+    __sliderButton: id;
+    __accessoryView: id;
+    __fpFlags: bitpacked record
+        setFontChange: 0..1;
+        setFontAttributeChange: 0..1;
+        _delRespFamily: 0..1;
+        _delRespFace: 0..1;
+        _delRespSize: 0..1;
+        _delRespColl: 0..1;
+        _collectionDisabled: 0..1;
+        _sizeDisabled: 0..1;
+        _faceDisabled: 0..1;
+        showEffects: 0..1;
+        _uiMode: 0..((1 shl 8)-1);
+        _reserved: 0..((1 shl 14)-1);
+      end;
+    __regularModeBox: id;
+    __miniModeBox: id;
+    __modeBoxSuperview: id;
+    __collectionLabel: id;
+    __sizeLabel: id;
+    __faceLabel: id;
+    __familyLabel: id;
+    __sizeStyleButton: id;
+    __newSizeField: id;
+    __editSizeList: id;
+    __editSizeListBox: id;
+    __editSizeSliderBox: id;
+    __editSizeSliderMaxField: id;
+    __editSizeSliderMinField: id;
+    __sizeEditWindow: id;
+    __availableSizes: id;
+    __addCollectionButton: id;
+    __removeCollectionButton: id;
+    __fontPanelPreviewHeight: CGFloat;
+    __typographyPanel: id;
+    __actionButton: id;
+    __fontEffectsBox: id;
+    __sizeStyle: cint;
+    {$ifndef cpu64}
+    __fpUnused: id;
+    {$endif}
+    
+  public
+    class function alloc: NSFontPanel; message 'alloc';
+
+    class function sharedFontPanel: NSFontPanel; message 'sharedFontPanel';
+    class function sharedFontPanelExists: Boolean; message 'sharedFontPanelExists';
+    function accessoryView: NSView; message 'accessoryView';
+    procedure setAccessoryView(aView: NSView); message 'setAccessoryView:';
+    procedure setPanelFont_isMultiple(fontObj: NSFont; flag: Boolean); message 'setPanelFont:isMultiple:';
+    function panelConvertFont(fontObj: NSFont): NSFont; message 'panelConvertFont:';
+    function worksWhenModal: Boolean; message 'worksWhenModal';
+    function isEnabled: Boolean; message 'isEnabled';
+    procedure setEnabled(flag: Boolean); message 'setEnabled:';
+    procedure reloadDefaultFontFamilies; message 'reloadDefaultFontFamilies';
+  end; external;
+
+{$endif}
+{$endif}

+ 31 - 0
packages/cocoaint/src/appkit/NSForm.inc

@@ -0,0 +1,31 @@
+{ Parsed from Appkit.framework NSForm.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSFORM_PAS_T}
+{$define NSFORM_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSFORM_PAS_R}
+{$define NSFORM_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSFORM_PAS_F}
+{$define NSFORM_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSFORM_PAS_T}
+{$define NSFORM_PAS_T}
+
+{$endif}
+{$endif}

+ 86 - 0
packages/cocoaint/src/appkit/NSFormCell.inc

@@ -0,0 +1,86 @@
+{ Parsed from Appkit.framework NSFormCell.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSFORMCELL_PAS_H}
+{$define NSFORMCELL_PAS_H}
+type
+  NSFormCellPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSFORMCELL_PAS_T}
+{$define NSFORMCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSFORMCELL_PAS_R}
+{$define NSFORMCELL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSFORMCELL_PAS_F}
+{$define NSFORMCELL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSFORMCELL_PAS_T}
+{$define NSFORMCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSFormCell = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSFORMCELL_PAS_C}
+{$define NSFORMCELL_PAS_C}
+
+{ NSFormCell }
+  NSFormCell = objcclass(NSActionCell)
+  private
+    __titleWidth: CGFloat;
+    __titleCell: id;
+    __titleEndPoint: CGFloat;
+    
+  public
+    class function alloc: NSFormCell; message 'alloc';
+
+    function initTextCell(aString: NSString): id; message 'initTextCell:';
+    function titleWidth(aSize: NSSize): CGFloat; message 'titleWidth:';
+    procedure setTitleWidth(width: CGFloat); message 'setTitleWidth:';
+    function title: NSString; message 'title';
+    procedure setTitle(aString: NSString); message 'setTitle:';
+    function titleFont: NSFont; message 'titleFont';
+    procedure setTitleFont(fontObj: NSFont); message 'setTitleFont:';
+    function titleAlignment: NSTextAlignment; message 'titleAlignment';
+    procedure setTitleAlignment(mode: NSTextAlignment); message 'setTitleAlignment:';
+    function isOpaque: Boolean; message 'isOpaque';
+    procedure setPlaceholderString(string_: NSString); message 'setPlaceholderString:';
+    function placeholderString: NSString; message 'placeholderString';
+    procedure setPlaceholderAttributedString(string_: NSAttributedString); message 'setPlaceholderAttributedString:';
+    function placeholderAttributedString: NSAttributedString; message 'placeholderAttributedString';
+    function titleBaseWritingDirection: NSWritingDirection; message 'titleBaseWritingDirection';
+    procedure setTitleBaseWritingDirection(writingDirection: NSWritingDirection); message 'setTitleBaseWritingDirection:';
+
+    { Category: NSKeyboardUI }
+    procedure setTitleWithMnemonic(stringWithAmpersand: NSString); message 'setTitleWithMnemonic:';
+
+    { Category: NSFormCellAttributedStringMethods }
+    function attributedTitle: NSAttributedString; message 'attributedTitle';
+    procedure setAttributedTitle(obj: NSAttributedString); message 'setAttributedTitle:';
+  end; external;
+
+{$endif}
+{$endif}

+ 82 - 0
packages/cocoaint/src/appkit/NSGlyphGenerator.inc

@@ -0,0 +1,82 @@
+{ Parsed from Appkit.framework NSGlyphGenerator.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSGLYPHGENERATOR_PAS_H}
+{$define NSGLYPHGENERATOR_PAS_H}
+type
+  NSGlyphGeneratorPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSGLYPHGENERATOR_PAS_T}
+{$define NSGLYPHGENERATOR_PAS_T}
+
+{ Constants }
+
+const
+  NSShowControlGlyphs = 1  shl  0;
+  NSShowInvisibleGlyphs = 1  shl  1;
+  NSWantsBidiLevels = 1  shl  2;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSGLYPHGENERATOR_PAS_R}
+{$define NSGLYPHGENERATOR_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSGLYPHGENERATOR_PAS_F}
+{$define NSGLYPHGENERATOR_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSGLYPHGENERATOR_PAS_T}
+{$define NSGLYPHGENERATOR_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSGlyphStorageProtocol = objcprotocol;
+  NSGlyphGenerator = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSGLYPHGENERATOR_PAS_C}
+{$define NSGLYPHGENERATOR_PAS_C}
+
+{ NSGlyphGenerator }
+  NSGlyphGenerator = objcclass(NSObject)
+    
+  public
+    class function alloc: NSGlyphGenerator; message 'alloc';
+
+    procedure generateGlyphsForGlyphStorage_desiredNumberOfCharacters_glyphIndex_characterIndex(glyphStorage: id; nChars: culong; var glyphIndex: culong; var charIndex: culong); message 'generateGlyphsForGlyphStorage:desiredNumberOfCharacters:glyphIndex:characterIndex:';
+    class function sharedGlyphGenerator: id; message 'sharedGlyphGenerator';
+  end; external;
+
+{$endif}
+{$endif}
+{$ifdef PROTOCOLS}
+{$ifndef NSGLYPHGENERATOR_PAS_P}
+{$define NSGLYPHGENERATOR_PAS_P}
+  
+{ NSGlyphStorage Protocol }
+  NSGlyphStorageProtocol = objcprotocol
+    procedure insertGlyphs_length_forStartingGlyphAtIndex_characterIndex(var glyphs: NSGlyph; length: culong; glyphIndex: culong; charIndex: culong); message 'insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:';
+    procedure setIntAttribute_value_forGlyphAtIndex(attributeTag: clong; val: clong; glyphIndex: culong); message 'setIntAttribute:value:forGlyphAtIndex:';
+    function attributedString: NSAttributedString; message 'attributedString';
+    function layoutOptions: culong; message 'layoutOptions';
+  end; external name 'NSGlyphStorage';
+{$endif}
+{$endif}

+ 71 - 0
packages/cocoaint/src/appkit/NSGlyphInfo.inc

@@ -0,0 +1,71 @@
+{ Parsed from Appkit.framework NSGlyphInfo.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSGLYPHINFO_PAS_H}
+{$define NSGLYPHINFO_PAS_H}
+type
+  NSGlyphInfoPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSGLYPHINFO_PAS_T}
+{$define NSGLYPHINFO_PAS_T}
+
+{ Types }
+type
+  NSCharacterCollection = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSGLYPHINFO_PAS_R}
+{$define NSGLYPHINFO_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSGLYPHINFO_PAS_F}
+{$define NSGLYPHINFO_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSGLYPHINFO_PAS_T}
+{$define NSGLYPHINFO_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSGlyphInfo = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSGLYPHINFO_PAS_C}
+{$define NSGLYPHINFO_PAS_C}
+
+{ NSGlyphInfo }
+  NSGlyphInfo = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __baseString: NSString;
+    
+  public
+    class function alloc: NSGlyphInfo; message 'alloc';
+
+    class function glyphInfoWithGlyphName_forFont_baseString(glyphName_: NSString; font: NSFont; theString: NSString): NSGlyphInfo; message 'glyphInfoWithGlyphName:forFont:baseString:';
+    class function glyphInfoWithGlyph_forFont_baseString(glyph: NSGlyph; font: NSFont; theString: NSString): NSGlyphInfo; message 'glyphInfoWithGlyph:forFont:baseString:';
+    class function glyphInfoWithCharacterIdentifier_collection_baseString(cid: culong; characterCollection_: NSCharacterCollection; theString: NSString): NSGlyphInfo; message 'glyphInfoWithCharacterIdentifier:collection:baseString:';
+    function glyphName: NSString; message 'glyphName';
+    function characterIdentifier: culong; message 'characterIdentifier';
+    function characterCollection: NSCharacterCollection; message 'characterCollection';
+  end; external;
+
+{$endif}
+{$endif}

+ 91 - 0
packages/cocoaint/src/appkit/NSGradient.inc

@@ -0,0 +1,91 @@
+{ Parsed from Appkit.framework NSGradient.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSGRADIENT_PAS_H}
+{$define NSGRADIENT_PAS_H}
+type
+  NSGradientPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSGRADIENT_PAS_T}
+{$define NSGRADIENT_PAS_T}
+
+{ Types }
+type
+  NSGradientDrawingOptions = culong;
+
+{ Constants }
+
+const
+  NSGradientDrawsBeforeStartingLocation = 1  shl  0;
+  NSGradientDrawsAfterEndingLocation = 1  shl  1;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSGRADIENT_PAS_R}
+{$define NSGRADIENT_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSGRADIENT_PAS_F}
+{$define NSGRADIENT_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSGRADIENT_PAS_T}
+{$define NSGRADIENT_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSGradient = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSGRADIENT_PAS_C}
+{$define NSGRADIENT_PAS_C}
+
+{ NSGradient }
+  NSGradient = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __colorArray: NSArray;
+    __colorSpace: NSColorSpace;
+    __functionRef: Pointer; {garbage collector: __strong }
+    __componentArray: Pointer;
+    __reserved1: Pointer;
+    __reserved2: Pointer;
+    __reserved3: Pointer;
+    
+  public
+    class function alloc: NSGradient; message 'alloc';
+
+    function initWithStartingColor_endingColor(startingColor: NSColor; endingColor: NSColor): id; message 'initWithStartingColor:endingColor:';
+    function initWithColors(colorArray: NSArray): id; message 'initWithColors:';
+    function initWithColorsAndLocations(firstColor: NSColor): id; message 'initWithColorsAndLocations:';
+    function initWithColors_atLocations_colorSpace(colorArray: NSArray; var locations: CGFloat; colorSpace_: NSColorSpace): id; message 'initWithColors:atLocations:colorSpace:';
+    procedure drawFromPoint_toPoint_options(startingPoint: NSPoint; endingPoint: NSPoint; options: NSGradientDrawingOptions); message 'drawFromPoint:toPoint:options:';
+    procedure drawInRect_angle(rect: NSRect; angle: CGFloat); message 'drawInRect:angle:';
+    procedure drawInBezierPath_angle(path: NSBezierPath; angle: CGFloat); message 'drawInBezierPath:angle:';
+    procedure drawFromCenter_radius_toCenter_radius_options(startCenter: NSPoint; startRadius: CGFloat; endCenter: NSPoint; endRadius: CGFloat; options: NSGradientDrawingOptions); message 'drawFromCenter:radius:toCenter:radius:options:';
+    procedure drawInRect_relativeCenterPosition(rect: NSRect; relativeCenterPosition: NSPoint); message 'drawInRect:relativeCenterPosition:';
+    procedure drawInBezierPath_relativeCenterPosition(path: NSBezierPath; relativeCenterPosition: NSPoint); message 'drawInBezierPath:relativeCenterPosition:';
+    function colorSpace: NSColorSpace; message 'colorSpace';
+    function numberOfColorStops: clong; message 'numberOfColorStops';
+    procedure getColor_location_atIndex(var color: NSColor; var location: CGFloat; index: clong); message 'getColor:location:atIndex:';
+    function interpolatedColorAtLocation(location: CGFloat): NSColor; message 'interpolatedColorAtLocation:';
+  end; external;
+
+{$endif}
+{$endif}

+ 151 - 0
packages/cocoaint/src/appkit/NSGraphics.inc

@@ -0,0 +1,151 @@
+{ Parsed from Appkit.framework NSGraphics.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSGRAPHICS_PAS_T}
+{$define NSGRAPHICS_PAS_T}
+
+{ Constants }
+
+const
+  NSCompositeClear = 0;
+  NSCompositeCopy = 1;
+  NSCompositeSourceOver = 2;
+  NSCompositeSourceIn = 3;
+  NSCompositeSourceOut = 4;
+  NSCompositeSourceAtop = 5;
+  NSCompositeDestinationOver = 6;
+  NSCompositeDestinationIn = 7;
+  NSCompositeDestinationOut = 8;
+  NSCompositeDestinationAtop = 9;
+  NSCompositeXOR = 10;
+  NSCompositePlusDarker = 11;
+  NSCompositeHighlight = 12;
+  NSCompositePlusLighter = 13;
+
+const
+  NSBackingStoreRetained = 0;
+  NSBackingStoreNonretained = 1;
+  NSBackingStoreBuffered = 2;
+
+const
+  NSWindowAbove = 1;
+  NSWindowBelow = -1;
+  NSWindowOut = 0;
+
+const
+  NSFocusRingOnly = 0;
+  NSFocusRingBelow = 1;
+  NSFocusRingAbove = 2;
+
+const
+  NSFocusRingTypeDefault = 0;
+  NSFocusRingTypeNone = 1;
+  NSFocusRingTypeExterior = 2;
+
+const
+  NSAnimationEffectDisappearingItemDefault = 0;
+  NSAnimationEffectPoof = 10;
+
+{ Types }
+type
+  NSCompositingOperation = culong;
+  NSBackingStoreType = culong;
+  NSWindowOrderingMode = clong;
+  NSFocusRingPlacement = culong;
+  NSFocusRingType = culong;
+  NSWindowDepth = cint;
+  NSAnimationEffect = culong;
+
+{ CFString constants }
+var
+  NSCalibratedWhiteColorSpace: CFStringRef; external name '_NSCalibratedWhiteColorSpace';
+  NSCalibratedBlackColorSpace: CFStringRef; external name '_NSCalibratedBlackColorSpace';
+  NSCalibratedRGBColorSpace: CFStringRef; external name '_NSCalibratedRGBColorSpace';
+  NSDeviceWhiteColorSpace: CFStringRef; external name '_NSDeviceWhiteColorSpace';
+  NSDeviceBlackColorSpace: CFStringRef; external name '_NSDeviceBlackColorSpace';
+  NSDeviceRGBColorSpace: CFStringRef; external name '_NSDeviceRGBColorSpace';
+  NSDeviceCMYKColorSpace: CFStringRef; external name '_NSDeviceCMYKColorSpace';
+  NSNamedColorSpace: CFStringRef; external name '_NSNamedColorSpace';
+  NSPatternColorSpace: CFStringRef; external name '_NSPatternColorSpace';
+  NSCustomColorSpace: CFStringRef; external name '_NSCustomColorSpace';
+  NSDeviceResolution: CFStringRef; external name '_NSDeviceResolution';
+  NSDeviceColorSpaceName: CFStringRef; external name '_NSDeviceColorSpaceName';
+  NSDeviceBitsPerSample: CFStringRef; external name '_NSDeviceBitsPerSample';
+  NSDeviceIsScreen: CFStringRef; external name '_NSDeviceIsScreen';
+  NSDeviceIsPrinter: CFStringRef; external name '_NSDeviceIsPrinter';
+  NSDeviceSize: CFStringRef; external name '_NSDeviceSize';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSGRAPHICS_PAS_R}
+{$define NSGRAPHICS_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSGRAPHICS_PAS_F}
+{$define NSGRAPHICS_PAS_F}
+
+{ Functions }
+function NSBitsPerSampleFromDepth(depth: NSWindowDepth): clong; cdecl; external name 'NSBitsPerSampleFromDepth';
+function NSBitsPerPixelFromDepth(depth: NSWindowDepth): clong; cdecl; external name 'NSBitsPerPixelFromDepth';
+function NSNumberOfColorComponents(var colorSpaceName: NSString): clong; cdecl; external name 'NSNumberOfColorComponents';
+procedure NSRectFill(aRect: NSRect); cdecl; external name 'NSRectFill';
+procedure NSRectFillList(var rects: NSRect; count: clong); cdecl; external name 'NSRectFillList';
+procedure NSRectFillListWithGrays(var rects: NSRect; var grays: CGFloat; num: clong); cdecl; external name 'NSRectFillListWithGrays';
+procedure NSRectFillListWithColors(var rects: NSRect; colors: Pointer {NSColor}; num: clong); cdecl; external name 'NSRectFillListWithColors';
+procedure NSRectFillUsingOperation(aRect: NSRect; op: NSCompositingOperation); cdecl; external name 'NSRectFillUsingOperation';
+procedure NSRectFillListUsingOperation(var rects: NSRect; count: clong; op: NSCompositingOperation); cdecl; external name 'NSRectFillListUsingOperation';
+procedure NSRectFillListWithColorsUsingOperation(var rects: NSRect; colors: Pointer {NSColor}; num: clong; op: NSCompositingOperation); cdecl; external name 'NSRectFillListWithColorsUsingOperation';
+procedure NSFrameRect(aRect: NSRect); cdecl; external name 'NSFrameRect';
+procedure NSFrameRectWithWidth(aRect: NSRect; frameWidth: CGFloat); cdecl; external name 'NSFrameRectWithWidth';
+procedure NSFrameRectWithWidthUsingOperation(aRect: NSRect; frameWidth: CGFloat; op: NSCompositingOperation); cdecl; external name 'NSFrameRectWithWidthUsingOperation';
+procedure NSRectClip(aRect: NSRect); cdecl; external name 'NSRectClip';
+procedure NSRectClipList(var rects: NSRect; count: clong); cdecl; external name 'NSRectClipList';
+function NSDrawTiledRects(boundsRect: NSRect; clipRect: NSRect; var sides: NSRectEdge; var grays: CGFloat; count: clong): NSRect; cdecl; external name 'NSDrawTiledRects';
+procedure NSDrawGrayBezel(aRect: NSRect; clipRect: NSRect); cdecl; external name 'NSDrawGrayBezel';
+procedure NSDrawGroove(aRect: NSRect; clipRect: NSRect); cdecl; external name 'NSDrawGroove';
+procedure NSDrawWhiteBezel(aRect: NSRect; clipRect: NSRect); cdecl; external name 'NSDrawWhiteBezel';
+procedure NSDrawButton(aRect: NSRect; clipRect: NSRect); cdecl; external name 'NSDrawButton';
+procedure NSEraseRect(aRect: NSRect); cdecl; external name 'NSEraseRect';
+function NSReadPixel(passedPoint: NSPoint): NSColor; cdecl; external name 'NSReadPixel';
+procedure NSDrawBitmap(rect: NSRect; width: clong; height: clong; bps: clong; spp: clong; bpp: clong; bpr: clong; isPlanar: Boolean; hasAlpha: Boolean; var colorSpaceName: NSString; char_: cuint); cdecl; external name 'NSDrawBitmap';
+procedure NSCopyBits(srcGState: clong; srcRect: NSRect; destPoint: NSPoint); cdecl; external name 'NSCopyBits';
+procedure NSHighlightRect(aRect: NSRect); cdecl; external name 'NSHighlightRect';
+procedure NSBeep; cdecl; external name 'NSBeep';
+procedure NSCountWindows(var count: clong); cdecl; external name 'NSCountWindows';
+procedure NSWindowList(size: clong; list: Pointer {array of clong}); cdecl; external name 'NSWindowList';
+procedure NSCountWindowsForContext(context: clong; var count: clong); cdecl; external name 'NSCountWindowsForContext';
+procedure NSWindowListForContext(context: clong; size: clong; list: Pointer {array of clong}); cdecl; external name 'NSWindowListForContext';
+function NSGetWindowServerMemory(context: clong; var virtualMemory: clong; var windowBackingMemory: clong; windowDumpString: Pointer {NSString}): clong; cdecl; external name 'NSGetWindowServerMemory';
+function NSDrawColorTiledRects(boundsRect: NSRect; clipRect: NSRect; var sides: NSRectEdge; colors: Pointer {NSColor}; count: clong): NSRect; cdecl; external name 'NSDrawColorTiledRects';
+procedure NSDrawDarkBezel(aRect: NSRect; clipRect: NSRect); cdecl; external name 'NSDrawDarkBezel';
+procedure NSDrawLightBezel(aRect: NSRect; clipRect: NSRect); cdecl; external name 'NSDrawLightBezel';
+procedure NSDottedFrameRect(aRect: NSRect); cdecl; external name 'NSDottedFrameRect';
+procedure NSDrawWindowBackground(aRect: NSRect); cdecl; external name 'NSDrawWindowBackground';
+procedure NSSetFocusRingStyle(placement: NSFocusRingPlacement); cdecl; external name 'NSSetFocusRingStyle';
+procedure NSDisableScreenUpdates; cdecl; external name 'NSDisableScreenUpdates';
+procedure NSEnableScreenUpdates; cdecl; external name 'NSEnableScreenUpdates';
+procedure NSShowAnimationEffect(animationEffect: NSAnimationEffect; centerLocation: NSPoint; size: NSSize; animationDelegate: id; didEndSelector: SEL; var contextInfo: Pointer); cdecl; external name 'NSShowAnimationEffect';
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSGRAPHICS_PAS_T}
+{$define NSGRAPHICS_PAS_T}
+
+{ External symbols }
+var
+  NSWhite: CGFloat; external name '_NSWhite';
+  NSLightGray: CGFloat; external name '_NSLightGray';
+  NSDarkGray: CGFloat; external name '_NSDarkGray';
+  NSBlack: CGFloat; external name '_NSBlack';
+
+{$endif}
+{$endif}

+ 106 - 0
packages/cocoaint/src/appkit/NSGraphicsContext.inc

@@ -0,0 +1,106 @@
+{ Parsed from Appkit.framework NSGraphicsContext.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSGRAPHICSCONTEXT_PAS_H}
+{$define NSGRAPHICSCONTEXT_PAS_H}
+type
+  NSGraphicsContextPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSGRAPHICSCONTEXT_PAS_T}
+{$define NSGRAPHICSCONTEXT_PAS_T}
+
+{ CFString constants }
+var
+  NSGraphicsContextDestinationAttributeName: CFStringRef; external name '_NSGraphicsContextDestinationAttributeName';
+  NSGraphicsContextRepresentationFormatAttributeName: CFStringRef; external name '_NSGraphicsContextRepresentationFormatAttributeName';
+  NSGraphicsContextPSFormat: CFStringRef; external name '_NSGraphicsContextPSFormat';
+  NSGraphicsContextPDFFormat: CFStringRef; external name '_NSGraphicsContextPDFFormat';
+
+{ Constants }
+
+const
+  NSImageInterpolationDefault = 0;
+  NSImageInterpolationNone = 1;
+  NSImageInterpolationLow = 2;
+  NSImageInterpolationHigh = 3;
+
+const
+  NSColorRenderingIntentDefault = 0;
+  NSColorRenderingIntentAbsoluteColorimetric = 1;
+  NSColorRenderingIntentRelativeColorimetric = 2;
+  NSColorRenderingIntentPerceptual = 3;
+  NSColorRenderingIntentSaturation = 4;
+
+{ Types }
+type
+  NSImageInterpolation = culong;
+  NSColorRenderingIntent = clong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSGRAPHICSCONTEXT_PAS_R}
+{$define NSGRAPHICSCONTEXT_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSGRAPHICSCONTEXT_PAS_F}
+{$define NSGRAPHICSCONTEXT_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSGRAPHICSCONTEXT_PAS_T}
+{$define NSGRAPHICSCONTEXT_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSGraphicsContext = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSGRAPHICSCONTEXT_PAS_C}
+{$define NSGRAPHICSCONTEXT_PAS_C}
+
+{ NSGraphicsContext }
+  NSGraphicsContext = objcclass(NSObject)
+    
+  public
+    class function alloc: NSGraphicsContext; message 'alloc';
+
+    class function graphicsContextWithAttributes(attributes_: NSDictionary): NSGraphicsContext; message 'graphicsContextWithAttributes:';
+    class function graphicsContextWithWindow(window: NSWindow): NSGraphicsContext; message 'graphicsContextWithWindow:';
+    class function graphicsContextWithBitmapImageRep(bitmapRep: NSBitmapImageRep): NSGraphicsContext; message 'graphicsContextWithBitmapImageRep:';
+    class function graphicsContextWithGraphicsPort_flipped(graphicsPort_: Pointer; initialFlippedState: Boolean): NSGraphicsContext; message 'graphicsContextWithGraphicsPort:flipped:';
+    class function currentContext: NSGraphicsContext; message 'currentContext';
+    class procedure setCurrentContext(context: NSGraphicsContext); message 'setCurrentContext:';
+    class function currentContextDrawingToScreen: Boolean; message 'currentContextDrawingToScreen';
+    class procedure saveGraphicsState; message 'saveGraphicsState';
+    class procedure restoreGraphicsState; message 'restoreGraphicsState';
+    class procedure setGraphicsState(gState: clong); message 'setGraphicsState:';
+    function attributes: NSDictionary; message 'attributes';
+    function isDrawingToScreen: Boolean; message 'isDrawingToScreen';
+    procedure flushGraphics; message 'flushGraphics';
+    function focusStack: id; message 'focusStack';
+    procedure setFocusStack(stack: id); message 'setFocusStack:';
+    function graphicsPort: Pointer; message 'graphicsPort';
+    function isFlipped: Boolean; message 'isFlipped';
+
+    { Category: NSQuartzCoreAdditions }
+    function CIContext: CIContext_; message 'CIContext';
+  end; external;
+
+{$endif}
+{$endif}

+ 81 - 0
packages/cocoaint/src/appkit/NSHelpManager.inc

@@ -0,0 +1,81 @@
+{ Parsed from Appkit.framework NSHelpManager.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSHELPMANAGER_PAS_H}
+{$define NSHELPMANAGER_PAS_H}
+type
+  NSHelpManagerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSHELPMANAGER_PAS_T}
+{$define NSHELPMANAGER_PAS_T}
+
+{ CFString constants }
+var
+  NSContextHelpModeDidActivateNotification: CFStringRef; external name '_NSContextHelpModeDidActivateNotification';
+  NSContextHelpModeDidDeactivateNotification: CFStringRef; external name '_NSContextHelpModeDidDeactivateNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSHELPMANAGER_PAS_R}
+{$define NSHELPMANAGER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSHELPMANAGER_PAS_F}
+{$define NSHELPMANAGER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSHELPMANAGER_PAS_T}
+{$define NSHELPMANAGER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSHelpManager = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSHELPMANAGER_PAS_C}
+{$define NSHELPMANAGER_PAS_C}
+
+{ NSHelpManager }
+  NSHelpManager = objcclass(NSObject)
+  private
+    __helpMapTable: NSMapTable;
+    __keyMapTable: NSMapTable;
+    __bundleMapTable: NSMapTable;
+    __helpWindow: NSWindow;
+    __shadowWindow: NSWindow;
+    __evtWindow: NSWindow;
+    __helpBundle: NSBundle;
+    
+  public
+    class function alloc: NSHelpManager; message 'alloc';
+
+    class function sharedHelpManager: NSHelpManager; message 'sharedHelpManager';
+    class procedure setContextHelpModeActive(active: Boolean); message 'setContextHelpModeActive:';
+    class function isContextHelpModeActive: Boolean; message 'isContextHelpModeActive';
+    procedure setContextHelp_forObject(attrString: NSAttributedString; object_: id); message 'setContextHelp:forObject:';
+    procedure removeContextHelpForObject(object_: id); message 'removeContextHelpForObject:';
+    function contextHelpForObject(object_: id): NSAttributedString; message 'contextHelpForObject:';
+    function showContextHelpForObject_locationHint(object_: id; pt: NSPoint): Boolean; message 'showContextHelpForObject:locationHint:';
+    procedure openHelpAnchor_inBook(anchor: NSString; book: NSString); message 'openHelpAnchor:inBook:';
+    procedure findString_inBook(query: NSString; book: NSString); message 'findString:inBook:';
+  end; external;
+
+{$endif}
+{$endif}

+ 170 - 0
packages/cocoaint/src/appkit/NSImage.inc

@@ -0,0 +1,170 @@
+{ Parsed from Appkit.framework NSImage.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSIMAGE_PAS_H}
+{$define NSIMAGE_PAS_H}
+type
+  NSImagePointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSIMAGE_PAS_T}
+{$define NSIMAGE_PAS_T}
+
+{ Constants }
+
+const
+  NSImageLoadStatusCompleted = 0;
+  NSImageLoadStatusCancelled = 1;
+  NSImageLoadStatusInvalidData = 2;
+  NSImageLoadStatusUnexpectedEOF = 3;
+  NSImageLoadStatusReadError = 4;
+
+{ Types }
+type
+  NSImageLoadStatus = culong;
+  NSImageCacheMode = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSIMAGE_PAS_R}
+{$define NSIMAGE_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSIMAGE_PAS_F}
+{$define NSIMAGE_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSIMAGE_PAS_T}
+{$define NSIMAGE_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSImage = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSIMAGE_PAS_C}
+{$define NSIMAGE_PAS_C}
+
+{ NSImage }
+  NSImage = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __name: NSString;
+    __size: NSSize;
+    __flags: bitpacked record
+        scalable: 0..1;
+        dataRetained: 0..1;
+        uniqueWindow: 0..1;
+        sizeWasExplicitlySet: 0..1;
+        builtIn: 0..1;
+        needsToExpand: 0..1;
+        useEPSOnResolutionMismatch: 0..1;
+        colorMatchPreferred: 0..1;
+        multipleResolutionMatching: 0..1;
+        subImage: 0..1;
+        archiveByName: 0..1;
+        unboundedCacheDepth: 0..1;
+        flipped: 0..1;
+        aliased: 0..1;
+        dirtied: 0..1;
+        cacheMode: 0..((1 shl 2)-1);
+        sampleMode: 0..((1 shl 2)-1);
+        focusedWhilePrinting: 0..1;
+        imageEffectsRequested: 0..1;
+        isTemplate: 0..1;
+        failedToExpand: 0..1;
+        reserved1: 0..((1 shl 9)-1);
+      end;
+    __reps: id;
+    __imageAuxiliary: _NSImageAuxiliary;
+    
+  public
+    class function alloc: NSImage; message 'alloc';
+
+    class function imageNamed(name_: NSString): id; message 'imageNamed:';
+    function initWithSize(aSize: NSSize): id; message 'initWithSize:';
+    function initWithData(data: NSData): id; message 'initWithData:';
+    function initWithContentsOfFile(fileName: NSString): id; message 'initWithContentsOfFile:';
+    function initWithContentsOfURL(url: NSURL): id; message 'initWithContentsOfURL:';
+    function initByReferencingFile(fileName: NSString): id; message 'initByReferencingFile:';
+    function initByReferencingURL(url: NSURL): id; message 'initByReferencingURL:';
+    function initWithIconRef(iconRef: IconRef): id; message 'initWithIconRef:';
+    function initWithPasteboard(pasteboard: NSPasteboard): id; message 'initWithPasteboard:';
+    procedure setSize(aSize: NSSize); message 'setSize:';
+    function size: NSSize; message 'size';
+    function setName(string_: NSString): Boolean; message 'setName:';
+    function name: NSString; message 'name';
+    procedure setScalesWhenResized(flag: Boolean); message 'setScalesWhenResized:';
+    function scalesWhenResized: Boolean; message 'scalesWhenResized';
+    procedure setDataRetained(flag: Boolean); message 'setDataRetained:';
+    function isDataRetained: Boolean; message 'isDataRetained';
+    procedure setCachedSeparately(flag: Boolean); message 'setCachedSeparately:';
+    function isCachedSeparately: Boolean; message 'isCachedSeparately';
+    procedure setCacheDepthMatchesImageDepth(flag: Boolean); message 'setCacheDepthMatchesImageDepth:';
+    function cacheDepthMatchesImageDepth: Boolean; message 'cacheDepthMatchesImageDepth';
+    procedure setBackgroundColor(aColor: NSColor); message 'setBackgroundColor:';
+    function backgroundColor: NSColor; message 'backgroundColor';
+    procedure setUsesEPSOnResolutionMismatch(flag: Boolean); message 'setUsesEPSOnResolutionMismatch:';
+    function usesEPSOnResolutionMismatch: Boolean; message 'usesEPSOnResolutionMismatch';
+    procedure setPrefersColorMatch(flag: Boolean); message 'setPrefersColorMatch:';
+    function prefersColorMatch: Boolean; message 'prefersColorMatch';
+    procedure setMatchesOnMultipleResolution(flag: Boolean); message 'setMatchesOnMultipleResolution:';
+    function matchesOnMultipleResolution: Boolean; message 'matchesOnMultipleResolution';
+    procedure dissolveToPoint_fraction(point: NSPoint; aFloat: CGFloat); message 'dissolveToPoint:fraction:';
+    procedure dissolveToPoint_fromRect_fraction(point: NSPoint; rect: NSRect; aFloat: CGFloat); message 'dissolveToPoint:fromRect:fraction:';
+    procedure compositeToPoint_operation(point: NSPoint; op: NSCompositingOperation); message 'compositeToPoint:operation:';
+    procedure compositeToPoint_fromRect_operation(point: NSPoint; rect: NSRect; op: NSCompositingOperation); message 'compositeToPoint:fromRect:operation:';
+    procedure compositeToPoint_operation_fraction(point: NSPoint; op: NSCompositingOperation; delta: CGFloat); message 'compositeToPoint:operation:fraction:';
+    procedure compositeToPoint_fromRect_operation_fraction(point: NSPoint; rect: NSRect; op: NSCompositingOperation; delta: CGFloat); message 'compositeToPoint:fromRect:operation:fraction:';
+    procedure drawAtPoint_fromRect_operation_fraction(point: NSPoint; fromRect: NSRect; op: NSCompositingOperation; delta: CGFloat); message 'drawAtPoint:fromRect:operation:fraction:';
+    procedure drawInRect_fromRect_operation_fraction(rect: NSRect; fromRect: NSRect; op: NSCompositingOperation; delta: CGFloat); message 'drawInRect:fromRect:operation:fraction:';
+    function drawRepresentation_inRect(imageRep: NSImageRep; rect: NSRect): Boolean; message 'drawRepresentation:inRect:';
+    procedure recache; message 'recache';
+    function TIFFRepresentation: NSData; message 'TIFFRepresentation';
+    function TIFFRepresentationUsingCompression_factor(comp: NSTIFFCompression; aFloat: single): NSData; message 'TIFFRepresentationUsingCompression:factor:';
+    function representations: NSArray; message 'representations';
+    procedure addRepresentations(imageReps: NSArray); message 'addRepresentations:';
+    procedure addRepresentation(imageRep: NSImageRep); message 'addRepresentation:';
+    procedure removeRepresentation(imageRep: NSImageRep); message 'removeRepresentation:';
+    function isValid: Boolean; message 'isValid';
+    procedure lockFocus; message 'lockFocus';
+    procedure lockFocusOnRepresentation(imageRepresentation: NSImageRep); message 'lockFocusOnRepresentation:';
+    procedure unlockFocus; message 'unlockFocus';
+    function bestRepresentationForDevice(deviceDescription: NSDictionary): NSImageRep; message 'bestRepresentationForDevice:';
+    procedure setDelegate(anObject: id); message 'setDelegate:';
+    function delegate: id; message 'delegate';
+    class function imageUnfilteredFileTypes: NSArray; message 'imageUnfilteredFileTypes';
+    class function imageUnfilteredPasteboardTypes: NSArray; message 'imageUnfilteredPasteboardTypes';
+    class function imageFileTypes: NSArray; message 'imageFileTypes';
+    class function imagePasteboardTypes: NSArray; message 'imagePasteboardTypes';
+    class function imageTypes: NSArray; message 'imageTypes';
+    class function imageUnfilteredTypes: NSArray; message 'imageUnfilteredTypes';
+    class function canInitWithPasteboard(pasteboard: NSPasteboard): Boolean; message 'canInitWithPasteboard:';
+    procedure setFlipped(flag: Boolean); message 'setFlipped:';
+    function isFlipped: Boolean; message 'isFlipped';
+    procedure cancelIncrementalLoad; message 'cancelIncrementalLoad';
+    procedure setCacheMode(mode: NSImageCacheMode); message 'setCacheMode:';
+    function cacheMode: NSImageCacheMode; message 'cacheMode';
+    function alignmentRect: NSRect; message 'alignmentRect';
+    procedure setAlignmentRect(rect: NSRect); message 'setAlignmentRect:';
+    function isTemplate: Boolean; message 'isTemplate';
+    procedure setTemplate(isTemplate_: Boolean); message 'setTemplate:';
+  end; external;
+
+{$endif}
+{$endif}

+ 101 - 0
packages/cocoaint/src/appkit/NSImageCell.inc

@@ -0,0 +1,101 @@
+{ Parsed from Appkit.framework NSImageCell.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSIMAGECELL_PAS_H}
+{$define NSIMAGECELL_PAS_H}
+type
+  NSImageCellPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSIMAGECELL_PAS_T}
+{$define NSIMAGECELL_PAS_T}
+
+{ Constants }
+
+const
+  NSImageAlignCenter = 0;
+  NSImageAlignTop = 0;
+  NSImageAlignTopLeft = 1;
+  NSImageAlignTopRight = 2;
+  NSImageAlignLeft = 3;
+  NSImageAlignBottom = 4;
+  NSImageAlignBottomLeft = 5;
+  NSImageAlignBottomRight = 6;
+  NSImageAlignRight = 7;
+
+const
+  NSImageFrameNone = 0;
+  NSImageFramePhoto = 0;
+  NSImageFrameGrayBezel = 1;
+  NSImageFrameGroove = 2;
+  NSImageFrameButton = 3;
+
+{ Types }
+type
+  NSImageAlignment = culong;
+  NSImageFrameStyle = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSIMAGECELL_PAS_R}
+{$define NSIMAGECELL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSIMAGECELL_PAS_F}
+{$define NSIMAGECELL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSIMAGECELL_PAS_T}
+{$define NSIMAGECELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSImageCell = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSIMAGECELL_PAS_C}
+{$define NSIMAGECELL_PAS_C}
+
+{ NSImageCell }
+  NSImageCell = objcclass(NSCell, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __controlView: id;
+    __icFlags: bitpacked record
+        _unused: 0..((1 shl 22)-1);
+        _animates: 0..1;
+        _align: 0..((1 shl 4)-1);
+        _scale: 0..((1 shl 2)-1);
+        _style: 0..((1 shl 3)-1);
+      end;
+    __animationState: _NSImageCellAnimationState;
+    __scaledImage: NSImage;
+    
+  public
+    class function alloc: NSImageCell; message 'alloc';
+
+    function imageAlignment: NSImageAlignment; message 'imageAlignment';
+    procedure setImageAlignment(newAlign: NSImageAlignment); message 'setImageAlignment:';
+    function imageScaling: NSImageScaling; message 'imageScaling';
+    procedure setImageScaling(newScaling: NSImageScaling); message 'setImageScaling:';
+    function imageFrameStyle: NSImageFrameStyle; message 'imageFrameStyle';
+    procedure setImageFrameStyle(newStyle: NSImageFrameStyle); message 'setImageFrameStyle:';
+  end; external;
+
+{$endif}
+{$endif}

+ 122 - 0
packages/cocoaint/src/appkit/NSImageRep.inc

@@ -0,0 +1,122 @@
+{ Parsed from Appkit.framework NSImageRep.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSIMAGEREP_PAS_H}
+{$define NSIMAGEREP_PAS_H}
+type
+  NSImageRepPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSIMAGEREP_PAS_T}
+{$define NSIMAGEREP_PAS_T}
+
+{ Constants }
+
+const
+  NSImageRepMatchesDevice = 0;
+
+{ CFString constants }
+var
+  NSImageRepRegistryDidChangeNotification: CFStringRef; external name '_NSImageRepRegistryDidChangeNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSIMAGEREP_PAS_R}
+{$define NSIMAGEREP_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSIMAGEREP_PAS_F}
+{$define NSIMAGEREP_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSIMAGEREP_PAS_T}
+{$define NSIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSImageRep = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSIMAGEREP_PAS_C}
+{$define NSIMAGEREP_PAS_C}
+
+{ NSImageRep }
+  NSImageRep = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __repFlags: bitpacked record
+        hasAlpha: 0..1;
+        isOpaque: 0..1;
+        cacheParamsComputed: 0..1;
+        cacheAlphaComputed: 0..1;
+        loadState: 0..((1 shl 2)-1);
+        keepCacheWindow: 0..1;
+        reserved: 0..1;
+        bitsPerSample: 0..((1 shl 8)-1);
+        gsaved: 0..((1 shl 16)-1);
+      end;
+    __colorSpaceName: NSString;
+    __size: NSSize;
+    __pixelsWide: cint;
+    __pixelsHigh: cint;
+    
+  public
+    class function alloc: NSImageRep; message 'alloc';
+
+    function draw: Boolean; message 'draw';
+    function drawAtPoint(point: NSPoint): Boolean; message 'drawAtPoint:';
+    function drawInRect(rect: NSRect): Boolean; message 'drawInRect:';
+    procedure setSize(aSize: NSSize); message 'setSize:';
+    function size: NSSize; message 'size';
+    procedure setAlpha(flag: Boolean); message 'setAlpha:';
+    function hasAlpha: Boolean; message 'hasAlpha';
+    procedure setOpaque(flag: Boolean); message 'setOpaque:';
+    function isOpaque: Boolean; message 'isOpaque';
+    procedure setColorSpaceName(string_: NSString); message 'setColorSpaceName:';
+    function colorSpaceName: NSString; message 'colorSpaceName';
+    procedure setBitsPerSample(anInt: clong); message 'setBitsPerSample:';
+    function bitsPerSample: clong; message 'bitsPerSample';
+    procedure setPixelsWide(anInt: clong); message 'setPixelsWide:';
+    function pixelsWide: clong; message 'pixelsWide';
+    procedure setPixelsHigh(anInt: clong); message 'setPixelsHigh:';
+    function pixelsHigh: clong; message 'pixelsHigh';
+    class procedure registerImageRepClass(imageRepClass: Pobjc_class); message 'registerImageRepClass:';
+    class procedure unregisterImageRepClass(imageRepClass: Pobjc_class); message 'unregisterImageRepClass:';
+    class function registeredImageRepClasses: NSArray; message 'registeredImageRepClasses';
+    class function imageRepClassForFileType(type_: NSString): Pobjc_class; message 'imageRepClassForFileType:';
+    class function imageRepClassForPasteboardType(type_: NSString): Pobjc_class; message 'imageRepClassForPasteboardType:';
+    class function imageRepClassForType(type_: NSString): Pobjc_class; message 'imageRepClassForType:';
+    class function imageRepClassForData(data: NSData): Pobjc_class; message 'imageRepClassForData:';
+    class function canInitWithData(data: NSData): Boolean; message 'canInitWithData:';
+    class function imageUnfilteredFileTypes: NSArray; message 'imageUnfilteredFileTypes';
+    class function imageUnfilteredPasteboardTypes: NSArray; message 'imageUnfilteredPasteboardTypes';
+    class function imageFileTypes: NSArray; message 'imageFileTypes';
+    class function imagePasteboardTypes: NSArray; message 'imagePasteboardTypes';
+    class function imageUnfilteredTypes: NSArray; message 'imageUnfilteredTypes';
+    class function imageTypes: NSArray; message 'imageTypes';
+    class function canInitWithPasteboard(pasteboard: NSPasteboard): Boolean; message 'canInitWithPasteboard:';
+    class function imageRepsWithContentsOfFile(filename: NSString): NSArray; message 'imageRepsWithContentsOfFile:';
+    class function imageRepWithContentsOfFile(filename: NSString): id; message 'imageRepWithContentsOfFile:';
+    class function imageRepsWithContentsOfURL(url: NSURL): NSArray; message 'imageRepsWithContentsOfURL:';
+    class function imageRepWithContentsOfURL(url: NSURL): id; message 'imageRepWithContentsOfURL:';
+    class function imageRepsWithPasteboard(pasteboard: NSPasteboard): NSArray; message 'imageRepsWithPasteboard:';
+    class function imageRepWithPasteboard(pasteboard: NSPasteboard): id; message 'imageRepWithPasteboard:';
+  end; external;
+
+{$endif}
+{$endif}

+ 84 - 0
packages/cocoaint/src/appkit/NSImageView.inc

@@ -0,0 +1,84 @@
+{ Parsed from Appkit.framework NSImageView.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSIMAGEVIEW_PAS_H}
+{$define NSIMAGEVIEW_PAS_H}
+type
+  NSImageViewPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSIMAGEVIEW_PAS_T}
+{$define NSIMAGEVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSIMAGEVIEW_PAS_R}
+{$define NSIMAGEVIEW_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSIMAGEVIEW_PAS_F}
+{$define NSIMAGEVIEW_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSIMAGEVIEW_PAS_T}
+{$define NSIMAGEVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSImageView = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSIMAGEVIEW_PAS_C}
+{$define NSIMAGEVIEW_PAS_C}
+
+{ NSImageView }
+  NSImageView = objcclass(NSControl)
+  private
+    __ivFlags: bitpacked record
+        _unused: 0..((1 shl 27)-1);
+        _compatibleScalingAndAlignment: 0..1;
+        _compatibleImage: 0..1;
+        _overridesDrawing: 0..1;
+        _allowsCutCopyPaste: 0..1;
+        _editable: 0..1;
+      end;
+    __target: id;
+    __action: SEL;
+    
+  public
+    class function alloc: NSImageView; message 'alloc';
+
+    function image: NSImage; message 'image';
+    procedure setImage(newImage: NSImage); message 'setImage:';
+    function imageAlignment: NSImageAlignment; message 'imageAlignment';
+    procedure setImageAlignment(newAlign: NSImageAlignment); message 'setImageAlignment:';
+    function imageScaling: NSImageScaling; message 'imageScaling';
+    procedure setImageScaling(newScaling: NSImageScaling); message 'setImageScaling:';
+    function imageFrameStyle: NSImageFrameStyle; message 'imageFrameStyle';
+    procedure setImageFrameStyle(newStyle: NSImageFrameStyle); message 'setImageFrameStyle:';
+    procedure setEditable(yn: Boolean); message 'setEditable:';
+    function isEditable: Boolean; message 'isEditable';
+    procedure setAnimates(flag: Boolean); message 'setAnimates:';
+    function animates: Boolean; message 'animates';
+    function allowsCutCopyPaste: Boolean; message 'allowsCutCopyPaste';
+    procedure setAllowsCutCopyPaste(allow: Boolean); message 'setAllowsCutCopyPaste:';
+  end; external;
+
+{$endif}
+{$endif}

+ 111 - 0
packages/cocoaint/src/appkit/NSInputManager.inc

@@ -0,0 +1,111 @@
+{ Parsed from Appkit.framework NSInputManager.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSINPUTMANAGER_PAS_H}
+{$define NSINPUTMANAGER_PAS_H}
+type
+  NSInputManagerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSINPUTMANAGER_PAS_T}
+{$define NSINPUTMANAGER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSINPUTMANAGER_PAS_R}
+{$define NSINPUTMANAGER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSINPUTMANAGER_PAS_F}
+{$define NSINPUTMANAGER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSINPUTMANAGER_PAS_T}
+{$define NSINPUTMANAGER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSTextInputProtocol = objcprotocol;
+  NSInputManager = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSINPUTMANAGER_PAS_C}
+{$define NSINPUTMANAGER_PAS_C}
+
+{ NSInputManager }
+  NSInputManager = objcclass(NSObject, NSTextInputProtocol)
+  private
+    __currentClient: id;
+    __server: id;
+    __bundleObj: id;
+    __keybindings: id;
+    __trueName: NSString;
+    __connectionName: NSString;
+    __hostName: NSString;
+    __procToExec: NSString;
+    __visibleName: NSString;
+    __bundleName: NSString;
+    __language: NSString;
+    __image: NSImage;
+    __flags: cuint;
+    __keyBindingsName: NSString;
+    __reservedInputManager2: cint;
+    
+  public
+    class function alloc: NSInputManager; message 'alloc';
+
+    class function currentInputManager: NSInputManager; message 'currentInputManager';
+    class procedure cycleToNextInputLanguage(sender: id); message 'cycleToNextInputLanguage:';
+    class procedure cycleToNextInputServerInLanguage(sender: id); message 'cycleToNextInputServerInLanguage:';
+    function initWithName_host(inputServerName: NSString; hostName: NSString): NSInputManager; message 'initWithName:host:';
+    function localizedInputManagerName: NSString; message 'localizedInputManagerName';
+    procedure markedTextAbandoned(cli: id); message 'markedTextAbandoned:';
+    procedure markedTextSelectionChanged_client(newSel: NSRange; cli: id); message 'markedTextSelectionChanged:client:';
+    function wantsToInterpretAllKeystrokes: Boolean; message 'wantsToInterpretAllKeystrokes';
+    function language: NSString; message 'language';
+    function image: NSImage; message 'image';
+    function server: NSInputServer; message 'server';
+    function wantsToHandleMouseEvents: Boolean; message 'wantsToHandleMouseEvents';
+    function handleMouseEvent(theMouseEvent: NSEvent): Boolean; message 'handleMouseEvent:';
+    function wantsToDelayTextChangeNotifications: Boolean; message 'wantsToDelayTextChangeNotifications';
+  end; external;
+
+{$endif}
+{$endif}
+{$ifdef PROTOCOLS}
+{$ifndef NSINPUTMANAGER_PAS_P}
+{$define NSINPUTMANAGER_PAS_P}
+  
+{ NSTextInput Protocol }
+  NSTextInputProtocol = objcprotocol
+    procedure insertText(aString: id); message 'insertText:';
+    procedure doCommandBySelector(aSelector: SEL); message 'doCommandBySelector:';
+    procedure setMarkedText_selectedRange(aString: id; selRange: NSRange); message 'setMarkedText:selectedRange:';
+    procedure unmarkText; message 'unmarkText';
+    function hasMarkedText: Boolean; message 'hasMarkedText';
+    function conversationIdentifier: clong; message 'conversationIdentifier';
+    function attributedSubstringFromRange(theRange: NSRange): NSAttributedString; message 'attributedSubstringFromRange:';
+    function markedRange: NSRange; message 'markedRange';
+    function selectedRange: NSRange; message 'selectedRange';
+    function firstRectForCharacterRange(theRange: NSRange): NSRect; message 'firstRectForCharacterRange:';
+    function characterIndexForPoint(thePoint: NSPoint): culong; message 'characterIndexForPoint:';
+    function validAttributesForMarkedText: NSArray; message 'validAttributesForMarkedText';
+  end; external name 'NSTextInput';
+{$endif}
+{$endif}

+ 94 - 0
packages/cocoaint/src/appkit/NSInputServer.inc

@@ -0,0 +1,94 @@
+{ Parsed from Appkit.framework NSInputServer.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSINPUTSERVER_PAS_H}
+{$define NSINPUTSERVER_PAS_H}
+type
+  NSInputServerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSINPUTSERVER_PAS_T}
+{$define NSINPUTSERVER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSINPUTSERVER_PAS_R}
+{$define NSINPUTSERVER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSINPUTSERVER_PAS_F}
+{$define NSINPUTSERVER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSINPUTSERVER_PAS_T}
+{$define NSINPUTSERVER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSInputServiceProviderProtocol = objcprotocol;
+  NSInputServerMouseTrackerProtocol = objcprotocol;
+  NSInputServer = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSINPUTSERVER_PAS_C}
+{$define NSINPUTSERVER_PAS_C}
+
+{ NSInputServer }
+  NSInputServer = objcclass(NSObject, NSInputServiceProviderProtocol, NSInputServerMouseTrackerProtocol)
+  private
+    __name: NSString;
+    __delegate: id;
+    
+  public
+    class function alloc: NSInputServer; message 'alloc';
+  end; external;
+
+{$endif}
+{$endif}
+{$ifdef PROTOCOLS}
+{$ifndef NSINPUTSERVER_PAS_P}
+{$define NSINPUTSERVER_PAS_P}
+  
+{ NSInputServiceProvider Protocol }
+  NSInputServiceProviderProtocol = objcprotocol
+    procedure insertText_client(aString: id; sender: id); message 'insertText:client:';
+    procedure doCommandBySelector_client(aSelector: SEL; sender: id); message 'doCommandBySelector:client:';
+    procedure markedTextAbandoned(sender: id); message 'markedTextAbandoned:';
+    procedure markedTextSelectionChanged_client(newSel: NSRange; sender: id); message 'markedTextSelectionChanged:client:';
+    procedure terminate(sender: id); message 'terminate:';
+    function canBeDisabled: Boolean; message 'canBeDisabled';
+    function wantsToInterpretAllKeystrokes: Boolean; message 'wantsToInterpretAllKeystrokes';
+    function wantsToHandleMouseEvents: Boolean; message 'wantsToHandleMouseEvents';
+    function wantsToDelayTextChangeNotifications: Boolean; message 'wantsToDelayTextChangeNotifications';
+    procedure inputClientBecomeActive(sender: id); message 'inputClientBecomeActive:';
+    procedure inputClientResignActive(sender: id); message 'inputClientResignActive:';
+    procedure inputClientEnabled(sender: id); message 'inputClientEnabled:';
+    procedure inputClientDisabled(sender: id); message 'inputClientDisabled:';
+    procedure activeConversationWillChange_fromOldConversation(sender: id; oldConversation: clong); message 'activeConversationWillChange:fromOldConversation:';
+    procedure activeConversationChanged_toNewConversation(sender: id; newConversation: clong); message 'activeConversationChanged:toNewConversation:';
+  end; external name 'NSInputServiceProvider';
+  
+{ NSInputServerMouseTracker Protocol }
+  NSInputServerMouseTrackerProtocol = objcprotocol
+    function mouseDownOnCharacterIndex_atCoordinate_withModifier_client(theIndex: culong; thePoint: NSPoint; theFlags: culong; sender: id): Boolean; message 'mouseDownOnCharacterIndex:atCoordinate:withModifier:client:';
+    function mouseDraggedOnCharacterIndex_atCoordinate_withModifier_client(theIndex: culong; thePoint: NSPoint; theFlags: culong; sender: id): Boolean; message 'mouseDraggedOnCharacterIndex:atCoordinate:withModifier:client:';
+    procedure mouseUpOnCharacterIndex_atCoordinate_withModifier_client(theIndex: culong; thePoint: NSPoint; theFlags: culong; sender: id); message 'mouseUpOnCharacterIndex:atCoordinate:withModifier:client:';
+  end; external name 'NSInputServerMouseTracker';
+{$endif}
+{$endif}

+ 49 - 0
packages/cocoaint/src/appkit/NSInterfaceStyle.inc

@@ -0,0 +1,49 @@
+{ Parsed from Appkit.framework NSInterfaceStyle.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSINTERFACESTYLE_PAS_T}
+{$define NSINTERFACESTYLE_PAS_T}
+
+{ Constants }
+
+const
+  NSNextStepInterfaceStyle = 1;
+  NSWindows95InterfaceStyle = 2;
+  NSMacintoshInterfaceStyle = 3;
+
+{ Types }
+type
+  NSInterfaceStyle = culong;
+
+{ CFString constants }
+var
+  NSInterfaceStyleDefault: CFStringRef; external name '_NSInterfaceStyleDefault';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSINTERFACESTYLE_PAS_R}
+{$define NSINTERFACESTYLE_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSINTERFACESTYLE_PAS_F}
+{$define NSINTERFACESTYLE_PAS_F}
+
+{ Functions }
+function NSInterfaceStyleForKey(var key: NSString; var responder: NSResponder): NSInterfaceStyle; cdecl; external name 'NSInterfaceStyleForKey';
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSINTERFACESTYLE_PAS_T}
+{$define NSINTERFACESTYLE_PAS_T}
+
+{$endif}
+{$endif}

+ 40 - 0
packages/cocoaint/src/appkit/NSKeyValueBinding.inc

@@ -0,0 +1,40 @@
+{ Parsed from Appkit.framework NSKeyValueBinding.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSKEYVALUEBINDING_PAS_T}
+{$define NSKEYVALUEBINDING_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSKEYVALUEBINDING_PAS_R}
+{$define NSKEYVALUEBINDING_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSKEYVALUEBINDING_PAS_F}
+{$define NSKEYVALUEBINDING_PAS_F}
+
+{ Functions }
+function NSIsControllerMarker(object_: id): Boolean; cdecl; external name 'NSIsControllerMarker';
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSKEYVALUEBINDING_PAS_T}
+{$define NSKEYVALUEBINDING_PAS_T}
+
+{ External symbols }
+var
+  NSMultipleValuesMarker: id; external name '_NSMultipleValuesMarker';
+  NSNoSelectionMarker: id; external name '_NSNoSelectionMarker';
+  NSNotApplicableMarker: id; external name '_NSNotApplicableMarker';
+
+{$endif}
+{$endif}

+ 296 - 0
packages/cocoaint/src/appkit/NSLayoutManager.inc

@@ -0,0 +1,296 @@
+{ Parsed from Appkit.framework NSLayoutManager.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSLAYOUTMANAGER_PAS_H}
+{$define NSLAYOUTMANAGER_PAS_H}
+type
+  NSLayoutManagerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSLAYOUTMANAGER_PAS_T}
+{$define NSLAYOUTMANAGER_PAS_T}
+
+{ Constants }
+
+const
+  NSGlyphAttributeSoft = 0;
+  NSGlyphAttributeElastic = 1;
+  NSGlyphAttributeBidiLevel = 2;
+  NSGlyphAttributeInscribe = 5;
+
+const
+  NSGlyphInscribeBase = 0;
+  NSGlyphInscribeBelow = 1;
+  NSGlyphInscribeAbove = 2;
+  NSGlyphInscribeOverstrike = 3;
+  NSGlyphInscribeOverBelow = 4;
+
+const
+  NSTypesetterLatestBehavior = -1;
+  NSTypesetterBehavior_10_2 = 2;
+  NSTypesetterBehavior_10_3 = 3;
+  NSTypesetterBehavior_10_4 = 4;
+
+{ Types }
+type
+  NSGlyphInscription = culong;
+  NSTypesetterBehavior = clong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSLAYOUTMANAGER_PAS_R}
+{$define NSLAYOUTMANAGER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSLAYOUTMANAGER_PAS_F}
+{$define NSLAYOUTMANAGER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSLAYOUTMANAGER_PAS_T}
+{$define NSLAYOUTMANAGER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSLayoutManager = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSLAYOUTMANAGER_PAS_C}
+{$define NSLAYOUTMANAGER_PAS_C}
+
+{ NSLayoutManager }
+  NSLayoutManager = objcclass(NSObject, NSCodingProtocol)
+  private
+    __textStorage: NSTextStorage;
+    __glyphGenerator: NSGlyphGenerator;
+    __typesetter: NSTypesetter;
+    __textContainers: NSMutableArray;
+    __containerUsedRects: NSStorage;
+    __glyphs: NSStorage;
+    __containerRuns: NSRunStorage;
+    __fragmentRuns: NSRunStorage;
+    __glyphLocations: NSRunStorage;
+    __glyphRotationRuns: NSRunStorage;
+    __extraLineFragmentRect: NSRect;
+    __extraLineFragmentUsedRect: NSRect;
+    __extraLineFragmentContainer: NSTextContainer;
+    __glyphHoles: NSSortedArray;
+    __layoutHoles: NSSortedArray;
+    __lmFlags: bitpacked record
+        containersAreFull: 0..1;
+        glyphsMightDrawOutsideLines: 0..1;
+        backgroundLayoutEnabled: 0..1;
+        resizingInProgress: 0..1;
+        allowScreenFonts: 0..1;
+        cachedRectArrayInUse: 0..1;
+        displayInvalidationInProgress: 0..1;
+        insertionPointNeedsUpdate: 0..1;
+        layoutManagerInDirtyList: 0..1;
+        usingGlyphCache: 0..1;
+        showInvisibleCharacters: 0..1;
+        showControlCharacters: 0..1;
+        delegateRespondsToDidInvalidate: 0..1;
+        delegateRespondsToDidComplete: 0..1;
+        glyphFormat: 0..((1 shl 2)-1);
+        textStorageRespondsToIsEditing: 0..1;
+        notifyEditedInProgress: 0..1;
+        containersChanged: 0..1;
+        isGeneratingGlyphs: 0..1;
+        hasNonGeneratedGlyphData: 0..1;
+        loggedBGLayoutException: 0..1;
+        isLayoutRequestedFromSubthread: 0..1;
+        defaultAttachmentScaling: 0..((1 shl 2)-1);
+        isInUILayoutMode: 0..1;
+        seenRightToLeft: 0..1;
+        ignoresViewTransformations: 0..1;
+        needToFlushGlyph: 0..1;
+        flipsIfNeeded: 0..1;
+        allowNonContig: 0..1;
+        useNonContig: 0..1;
+      end;
+    __delegate: id;
+    __textViewResizeDisableStack: cushort;
+    __displayInvalidationDisableStack: cushort;
+    __deferredDisplayCharRange: NSRange;
+    __firstTextView: NSTextView;
+    __cachedRectArray: NSRect; {garbage collector: __strong }
+    __cachedRectArrayCapacity: culong;
+    __glyphBuffer: char; {garbage collector: __strong }
+    __glyphBufferSize: culong;
+    __cachedLocationNominalGlyphRange: NSRange;
+    __cachedLocationGlyphIndex: culong;
+    __cachedLocation: NSPoint;
+    __cachedFontCharRange: NSRange;
+    __cachedFont: NSFont;
+    __firstUnlaidGlyphIndex: culong;
+    __firstUnlaidCharIndex: culong;
+    __rulerAccView: NSBox;
+    __rulerAccViewAlignmentButtons: id;
+    __rulerAccViewSpacing: id;
+    __rulerAccViewLeftTabWell: NSTabWell;
+    __rulerAccViewRightTabWell: NSTabWell;
+    __rulerAccViewCenterTabWell: NSTabWell;
+    __rulerAccViewDecimalTabWell: NSTabWell;
+    __rulerAccViewStyles: id;
+    __rulerAccViewLists: id;
+    __newlyFilledGlyphRange: NSRange;
+    __extraData: id;
+    
+  public
+    class function alloc: NSLayoutManager; message 'alloc';
+
+    function init: id; message 'init';
+    function textStorage: NSTextStorage; message 'textStorage';
+    procedure setTextStorage(textStorage_: NSTextStorage); message 'setTextStorage:';
+    function attributedString: NSAttributedString; message 'attributedString';
+    procedure replaceTextStorage(newTextStorage: NSTextStorage); message 'replaceTextStorage:';
+    function glyphGenerator: NSGlyphGenerator; message 'glyphGenerator';
+    procedure setGlyphGenerator(glyphGenerator_: NSGlyphGenerator); message 'setGlyphGenerator:';
+    function typesetter: NSTypesetter; message 'typesetter';
+    procedure setTypesetter(typesetter_: NSTypesetter); message 'setTypesetter:';
+    function delegate: id; message 'delegate';
+    procedure setDelegate(delegate_: id); message 'setDelegate:';
+    function textContainers: NSArray; message 'textContainers';
+    procedure addTextContainer(container: NSTextContainer); message 'addTextContainer:';
+    procedure insertTextContainer_atIndex(container: NSTextContainer; index: culong); message 'insertTextContainer:atIndex:';
+    procedure removeTextContainerAtIndex(index: culong); message 'removeTextContainerAtIndex:';
+    procedure textContainerChangedGeometry(container: NSTextContainer); message 'textContainerChangedGeometry:';
+    procedure textContainerChangedTextView(container: NSTextContainer); message 'textContainerChangedTextView:';
+    procedure setBackgroundLayoutEnabled(flag: Boolean); message 'setBackgroundLayoutEnabled:';
+    function backgroundLayoutEnabled: Boolean; message 'backgroundLayoutEnabled';
+    procedure setUsesScreenFonts(flag: Boolean); message 'setUsesScreenFonts:';
+    function usesScreenFonts: Boolean; message 'usesScreenFonts';
+    procedure setShowsInvisibleCharacters(flag: Boolean); message 'setShowsInvisibleCharacters:';
+    function showsInvisibleCharacters: Boolean; message 'showsInvisibleCharacters';
+    procedure setShowsControlCharacters(flag: Boolean); message 'setShowsControlCharacters:';
+    function showsControlCharacters: Boolean; message 'showsControlCharacters';
+    procedure setHyphenationFactor(factor: single); message 'setHyphenationFactor:';
+    function hyphenationFactor: single; message 'hyphenationFactor';
+    procedure setDefaultAttachmentScaling(scaling: NSImageScaling); message 'setDefaultAttachmentScaling:';
+    function defaultAttachmentScaling: NSImageScaling; message 'defaultAttachmentScaling';
+    procedure setTypesetterBehavior(theBehavior: NSTypesetterBehavior); message 'setTypesetterBehavior:';
+    function typesetterBehavior: NSTypesetterBehavior; message 'typesetterBehavior';
+    function layoutOptions: culong; message 'layoutOptions';
+    procedure setAllowsNonContiguousLayout(flag: Boolean); message 'setAllowsNonContiguousLayout:';
+    function allowsNonContiguousLayout: Boolean; message 'allowsNonContiguousLayout';
+    function hasNonContiguousLayout: Boolean; message 'hasNonContiguousLayout';
+    procedure invalidateGlyphsForCharacterRange_changeInLength_actualCharacterRange(charRange: NSRange; delta: clong; actualCharRange: NSRangePointer); message 'invalidateGlyphsForCharacterRange:changeInLength:actualCharacterRange:';
+    procedure invalidateLayoutForCharacterRange_actualCharacterRange(charRange: NSRange; actualCharRange: NSRangePointer); message 'invalidateLayoutForCharacterRange:actualCharacterRange:';
+    procedure invalidateLayoutForCharacterRange_isSoft_actualCharacterRange(charRange: NSRange; flag: Boolean; actualCharRange: NSRangePointer); message 'invalidateLayoutForCharacterRange:isSoft:actualCharacterRange:';
+    procedure invalidateDisplayForCharacterRange(charRange: NSRange); message 'invalidateDisplayForCharacterRange:';
+    procedure invalidateDisplayForGlyphRange(glyphRange: NSRange); message 'invalidateDisplayForGlyphRange:';
+    procedure textStorage_edited_range_changeInLength_invalidatedRange(str: NSTextStorage; editedMask: culong; newCharRange: NSRange; delta: clong; invalidatedCharRange: NSRange); message 'textStorage:edited:range:changeInLength:invalidatedRange:';
+    procedure ensureGlyphsForCharacterRange(charRange: NSRange); message 'ensureGlyphsForCharacterRange:';
+    procedure ensureGlyphsForGlyphRange(glyphRange: NSRange); message 'ensureGlyphsForGlyphRange:';
+    procedure ensureLayoutForCharacterRange(charRange: NSRange); message 'ensureLayoutForCharacterRange:';
+    procedure ensureLayoutForGlyphRange(glyphRange: NSRange); message 'ensureLayoutForGlyphRange:';
+    procedure ensureLayoutForTextContainer(container: NSTextContainer); message 'ensureLayoutForTextContainer:';
+    procedure ensureLayoutForBoundingRect_inTextContainer(bounds: NSRect; container: NSTextContainer); message 'ensureLayoutForBoundingRect:inTextContainer:';
+    procedure insertGlyphs_length_forStartingGlyphAtIndex_characterIndex(var glyphs: NSGlyph; length: culong; glyphIndex: culong; charIndex: culong); message 'insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:';
+    procedure insertGlyph_atGlyphIndex_characterIndex(glyph: NSGlyph; glyphIndex: culong; charIndex: culong); message 'insertGlyph:atGlyphIndex:characterIndex:';
+    procedure replaceGlyphAtIndex_withGlyph(glyphIndex: culong; newGlyph: NSGlyph); message 'replaceGlyphAtIndex:withGlyph:';
+    procedure deleteGlyphsInRange(glyphRange: NSRange); message 'deleteGlyphsInRange:';
+    procedure setCharacterIndex_forGlyphAtIndex(charIndex: culong; glyphIndex: culong); message 'setCharacterIndex:forGlyphAtIndex:';
+    procedure setIntAttribute_value_forGlyphAtIndex(attributeTag: clong; val: clong; glyphIndex: culong); message 'setIntAttribute:value:forGlyphAtIndex:';
+    procedure invalidateGlyphsOnLayoutInvalidationForGlyphRange(glyphRange: NSRange); message 'invalidateGlyphsOnLayoutInvalidationForGlyphRange:';
+    function numberOfGlyphs: culong; message 'numberOfGlyphs';
+    function glyphAtIndex_isValidIndex(glyphIndex: culong; var isValidIndex: Boolean): NSGlyph; message 'glyphAtIndex:isValidIndex:';
+    function glyphAtIndex(glyphIndex: culong): NSGlyph; message 'glyphAtIndex:';
+    function isValidGlyphIndex(glyphIndex: culong): Boolean; message 'isValidGlyphIndex:';
+    function characterIndexForGlyphAtIndex(glyphIndex: culong): culong; message 'characterIndexForGlyphAtIndex:';
+    function glyphIndexForCharacterAtIndex(charIndex: culong): culong; message 'glyphIndexForCharacterAtIndex:';
+    function intAttribute_forGlyphAtIndex(attributeTag: clong; glyphIndex: culong): clong; message 'intAttribute:forGlyphAtIndex:';
+    function getGlyphsInRange_glyphs_characterIndexes_glyphInscriptions_elasticBits(glyphRange: NSRange; var glyphBuffer: NSGlyph; var charIndexBuffer: culong; var inscribeBuffer: NSGlyphInscription; var elasticBuffer: Boolean): culong; message 'getGlyphsInRange:glyphs:characterIndexes:glyphInscriptions:elasticBits:';
+    function getGlyphsInRange_glyphs_characterIndexes_glyphInscriptions_elasticBits_bidiLevels(glyphRange: NSRange; var glyphBuffer: NSGlyph; var charIndexBuffer: culong; var inscribeBuffer: NSGlyphInscription; var elasticBuffer: Boolean; bidiLevelBuffer: Pointer): culong; message 'getGlyphsInRange:glyphs:characterIndexes:glyphInscriptions:elasticBits:bidiLevels:';
+    function getGlyphs_range(var glyphArray: NSGlyph; glyphRange: NSRange): culong; message 'getGlyphs:range:';
+    procedure setTextContainer_forGlyphRange(container: NSTextContainer; glyphRange: NSRange); message 'setTextContainer:forGlyphRange:';
+    procedure setLineFragmentRect_forGlyphRange_usedRect(fragmentRect: NSRect; glyphRange: NSRange; usedRect: NSRect); message 'setLineFragmentRect:forGlyphRange:usedRect:';
+    procedure setExtraLineFragmentRect_usedRect_textContainer(fragmentRect: NSRect; usedRect: NSRect; container: NSTextContainer); message 'setExtraLineFragmentRect:usedRect:textContainer:';
+    procedure setLocation_forStartOfGlyphRange(location: NSPoint; glyphRange: NSRange); message 'setLocation:forStartOfGlyphRange:';
+    procedure setLocations_startingGlyphIndexes_count_forGlyphRange(locations: NSPointArray; var glyphIndexes: culong; count: culong; glyphRange: NSRange); message 'setLocations:startingGlyphIndexes:count:forGlyphRange:';
+    procedure setNotShownAttribute_forGlyphAtIndex(flag: Boolean; glyphIndex: culong); message 'setNotShownAttribute:forGlyphAtIndex:';
+    procedure setDrawsOutsideLineFragment_forGlyphAtIndex(flag: Boolean; glyphIndex: culong); message 'setDrawsOutsideLineFragment:forGlyphAtIndex:';
+    procedure setAttachmentSize_forGlyphRange(attachmentSize: NSSize; glyphRange: NSRange); message 'setAttachmentSize:forGlyphRange:';
+    procedure getFirstUnlaidCharacterIndex_glyphIndex(var charIndex: culong; var glyphIndex: culong); message 'getFirstUnlaidCharacterIndex:glyphIndex:';
+    function firstUnlaidCharacterIndex: culong; message 'firstUnlaidCharacterIndex';
+    function firstUnlaidGlyphIndex: culong; message 'firstUnlaidGlyphIndex';
+    function textContainerForGlyphAtIndex_effectiveRange(glyphIndex: culong; effectiveGlyphRange: NSRangePointer): NSTextContainer; message 'textContainerForGlyphAtIndex:effectiveRange:';
+    function usedRectForTextContainer(container: NSTextContainer): NSRect; message 'usedRectForTextContainer:';
+    function lineFragmentRectForGlyphAtIndex_effectiveRange(glyphIndex: culong; effectiveGlyphRange: NSRangePointer): NSRect; message 'lineFragmentRectForGlyphAtIndex:effectiveRange:';
+    function lineFragmentUsedRectForGlyphAtIndex_effectiveRange(glyphIndex: culong; effectiveGlyphRange: NSRangePointer): NSRect; message 'lineFragmentUsedRectForGlyphAtIndex:effectiveRange:';
+    function lineFragmentRectForGlyphAtIndex_effectiveRange_withoutAdditionalLayout(glyphIndex: culong; effectiveGlyphRange: NSRangePointer; flag: Boolean): NSRect; message 'lineFragmentRectForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:';
+    function lineFragmentUsedRectForGlyphAtIndex_effectiveRange_withoutAdditionalLayout(glyphIndex: culong; effectiveGlyphRange: NSRangePointer; flag: Boolean): NSRect; message 'lineFragmentUsedRectForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:';
+    function textContainerForGlyphAtIndex_effectiveRange_withoutAdditionalLayout(glyphIndex: culong; effectiveGlyphRange: NSRangePointer; flag: Boolean): NSTextContainer; message 'textContainerForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:';
+    function extraLineFragmentRect: NSRect; message 'extraLineFragmentRect';
+    function extraLineFragmentUsedRect: NSRect; message 'extraLineFragmentUsedRect';
+    function extraLineFragmentTextContainer: NSTextContainer; message 'extraLineFragmentTextContainer';
+    function locationForGlyphAtIndex(glyphIndex: culong): NSPoint; message 'locationForGlyphAtIndex:';
+    function notShownAttributeForGlyphAtIndex(glyphIndex: culong): Boolean; message 'notShownAttributeForGlyphAtIndex:';
+    function drawsOutsideLineFragmentForGlyphAtIndex(glyphIndex: culong): Boolean; message 'drawsOutsideLineFragmentForGlyphAtIndex:';
+    function attachmentSizeForGlyphAtIndex(glyphIndex: culong): NSSize; message 'attachmentSizeForGlyphAtIndex:';
+    procedure setLayoutRect_forTextBlock_glyphRange(rect: NSRect; block: NSTextBlock; glyphRange: NSRange); message 'setLayoutRect:forTextBlock:glyphRange:';
+    procedure setBoundsRect_forTextBlock_glyphRange(rect: NSRect; block: NSTextBlock; glyphRange: NSRange); message 'setBoundsRect:forTextBlock:glyphRange:';
+    function layoutRectForTextBlock_glyphRange(block: NSTextBlock; glyphRange: NSRange): NSRect; message 'layoutRectForTextBlock:glyphRange:';
+    function boundsRectForTextBlock_glyphRange(block: NSTextBlock; glyphRange: NSRange): NSRect; message 'boundsRectForTextBlock:glyphRange:';
+    function layoutRectForTextBlock_atIndex_effectiveRange(block: NSTextBlock; glyphIndex: culong; effectiveGlyphRange: NSRangePointer): NSRect; message 'layoutRectForTextBlock:atIndex:effectiveRange:';
+    function boundsRectForTextBlock_atIndex_effectiveRange(block: NSTextBlock; glyphIndex: culong; effectiveGlyphRange: NSRangePointer): NSRect; message 'boundsRectForTextBlock:atIndex:effectiveRange:';
+    function glyphRangeForCharacterRange_actualCharacterRange(charRange: NSRange; actualCharRange: NSRangePointer): NSRange; message 'glyphRangeForCharacterRange:actualCharacterRange:';
+    function characterRangeForGlyphRange_actualGlyphRange(glyphRange: NSRange; actualGlyphRange: NSRangePointer): NSRange; message 'characterRangeForGlyphRange:actualGlyphRange:';
+    function glyphRangeForTextContainer(container: NSTextContainer): NSRange; message 'glyphRangeForTextContainer:';
+    function rangeOfNominallySpacedGlyphsContainingIndex(glyphIndex: culong): NSRange; message 'rangeOfNominallySpacedGlyphsContainingIndex:';
+    function rectArrayForCharacterRange_withinSelectedCharacterRange_inTextContainer_rectCount(charRange: NSRange; selCharRange: NSRange; container: NSTextContainer; var rectCount: culong): NSRectArray; message 'rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount:';
+    function rectArrayForGlyphRange_withinSelectedGlyphRange_inTextContainer_rectCount(glyphRange: NSRange; selGlyphRange: NSRange; container: NSTextContainer; var rectCount: culong): NSRectArray; message 'rectArrayForGlyphRange:withinSelectedGlyphRange:inTextContainer:rectCount:';
+    function boundingRectForGlyphRange_inTextContainer(glyphRange: NSRange; container: NSTextContainer): NSRect; message 'boundingRectForGlyphRange:inTextContainer:';
+    function glyphRangeForBoundingRect_inTextContainer(bounds: NSRect; container: NSTextContainer): NSRange; message 'glyphRangeForBoundingRect:inTextContainer:';
+    function glyphRangeForBoundingRectWithoutAdditionalLayout_inTextContainer(bounds: NSRect; container: NSTextContainer): NSRange; message 'glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:';
+    function glyphIndexForPoint_inTextContainer_fractionOfDistanceThroughGlyph(point: NSPoint; container: NSTextContainer; var partialFraction: CGFloat): culong; message 'glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:';
+    function glyphIndexForPoint_inTextContainer(point: NSPoint; container: NSTextContainer): culong; message 'glyphIndexForPoint:inTextContainer:';
+    function fractionOfDistanceThroughGlyphForPoint_inTextContainer(point: NSPoint; container: NSTextContainer): CGFloat; message 'fractionOfDistanceThroughGlyphForPoint:inTextContainer:';
+    function getLineFragmentInsertionPointsForCharacterAtIndex_alternatePositions_inDisplayOrder_positions_characterIndexes(charIndex: culong; aFlag: Boolean; dFlag: Boolean; var positions: CGFloat; var charIndexes: culong): culong; message 'getLineFragmentInsertionPointsForCharacterAtIndex:alternatePositions:inDisplayOrder:positions:characterIndexes:';
+    function temporaryAttributesAtCharacterIndex_effectiveRange(charIndex: culong; effectiveCharRange: NSRangePointer): NSDictionary; message 'temporaryAttributesAtCharacterIndex:effectiveRange:';
+    procedure setTemporaryAttributes_forCharacterRange(attrs: NSDictionary; charRange: NSRange); message 'setTemporaryAttributes:forCharacterRange:';
+    procedure addTemporaryAttributes_forCharacterRange(attrs: NSDictionary; charRange: NSRange); message 'addTemporaryAttributes:forCharacterRange:';
+    procedure removeTemporaryAttribute_forCharacterRange(attrName: NSString; charRange: NSRange); message 'removeTemporaryAttribute:forCharacterRange:';
+    function temporaryAttribute_atCharacterIndex_effectiveRange(attrName: NSString; location: culong; range: NSRangePointer): id; message 'temporaryAttribute:atCharacterIndex:effectiveRange:';
+    function temporaryAttribute_atCharacterIndex_longestEffectiveRange_inRange(attrName: NSString; location: culong; range: NSRangePointer; rangeLimit: NSRange): id; message 'temporaryAttribute:atCharacterIndex:longestEffectiveRange:inRange:';
+    function temporaryAttributesAtCharacterIndex_longestEffectiveRange_inRange(location: culong; range: NSRangePointer; rangeLimit: NSRange): NSDictionary; message 'temporaryAttributesAtCharacterIndex:longestEffectiveRange:inRange:';
+    procedure addTemporaryAttribute_value_forCharacterRange(attrName: NSString; value: id; charRange: NSRange); message 'addTemporaryAttribute:value:forCharacterRange:';
+    function substituteFontForFont(originalFont: NSFont): NSFont; message 'substituteFontForFont:';
+    function defaultLineHeightForFont(theFont: NSFont): CGFloat; message 'defaultLineHeightForFont:';
+    function defaultBaselineOffsetForFont(theFont: NSFont): CGFloat; message 'defaultBaselineOffsetForFont:';
+    function usesFontLeading: Boolean; message 'usesFontLeading';
+    procedure setUsesFontLeading(flag: Boolean); message 'setUsesFontLeading:';
+
+    { Category: NSTextViewSupport }
+    function rulerMarkersForTextView_paragraphStyle_ruler(view: NSTextView; style: NSParagraphStyle; ruler: NSRulerView): NSArray; message 'rulerMarkersForTextView:paragraphStyle:ruler:';
+    function rulerAccessoryViewForTextView_paragraphStyle_ruler_enabled(view: NSTextView; style: NSParagraphStyle; ruler: NSRulerView; isEnabled: Boolean): NSView; message 'rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:';
+    function layoutManagerOwnsFirstResponderInWindow(window: NSWindow): Boolean; message 'layoutManagerOwnsFirstResponderInWindow:';
+    function firstTextView: NSTextView; message 'firstTextView';
+    function textViewForBeginningOfSelection: NSTextView; message 'textViewForBeginningOfSelection';
+    procedure drawBackgroundForGlyphRange_atPoint(glyphsToShow: NSRange; origin: NSPoint); message 'drawBackgroundForGlyphRange:atPoint:';
+    procedure drawGlyphsForGlyphRange_atPoint(glyphsToShow: NSRange; origin: NSPoint); message 'drawGlyphsForGlyphRange:atPoint:';
+    procedure showPackedGlyphs_length_glyphRange_atPoint_font_color_printingAdjustment(glyphs: Pointer; glyphLen: culong; glyphRange: NSRange; point: NSPoint; font: NSFont; color: NSColor; printingAdjustment: NSSize); message 'showPackedGlyphs:length:glyphRange:atPoint:font:color:printingAdjustment:';
+    procedure showAttachmentCell_inRect_characterIndex(cell: NSCell; rect: NSRect; attachmentIndex: culong); message 'showAttachmentCell:inRect:characterIndex:';
+    procedure drawUnderlineForGlyphRange_underlineType_baselineOffset_lineFragmentRect_lineFragmentGlyphRange_containerOrigin(glyphRange: NSRange; underlineVal: clong; baselineOffset: CGFloat; lineRect: NSRect; lineGlyphRange: NSRange; containerOrigin: NSPoint); message 'drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:';
+    procedure underlineGlyphRange_underlineType_lineFragmentRect_lineFragmentGlyphRange_containerOrigin(glyphRange: NSRange; underlineVal: clong; lineRect: NSRect; lineGlyphRange: NSRange; containerOrigin: NSPoint); message 'underlineGlyphRange:underlineType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:';
+    procedure drawStrikethroughForGlyphRange_strikethroughType_baselineOffset_lineFragmentRect_lineFragmentGlyphRange_containerOrigin(glyphRange: NSRange; strikethroughVal: clong; baselineOffset: CGFloat; lineRect: NSRect; lineGlyphRange: NSRange; containerOrigin: NSPoint); message 'drawStrikethroughForGlyphRange:strikethroughType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:';
+    procedure strikethroughGlyphRange_strikethroughType_lineFragmentRect_lineFragmentGlyphRange_containerOrigin(glyphRange: NSRange; strikethroughVal: clong; lineRect: NSRect; lineGlyphRange: NSRange; containerOrigin: NSPoint); message 'strikethroughGlyphRange:strikethroughType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:';
+  end; external;
+
+{$endif}
+{$endif}

+ 75 - 0
packages/cocoaint/src/appkit/NSLevelIndicator.inc

@@ -0,0 +1,75 @@
+{ Parsed from Appkit.framework NSLevelIndicator.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSLEVELINDICATOR_PAS_H}
+{$define NSLEVELINDICATOR_PAS_H}
+type
+  NSLevelIndicatorPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSLEVELINDICATOR_PAS_T}
+{$define NSLEVELINDICATOR_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSLEVELINDICATOR_PAS_R}
+{$define NSLEVELINDICATOR_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSLEVELINDICATOR_PAS_F}
+{$define NSLEVELINDICATOR_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSLEVELINDICATOR_PAS_T}
+{$define NSLEVELINDICATOR_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSLevelIndicator = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSLEVELINDICATOR_PAS_C}
+{$define NSLEVELINDICATOR_PAS_C}
+
+{ NSLevelIndicator }
+  NSLevelIndicator = objcclass(NSControl)
+    
+  public
+    class function alloc: NSLevelIndicator; message 'alloc';
+
+    function minValue: double; message 'minValue';
+    procedure setMinValue(minValue_: double); message 'setMinValue:';
+    function maxValue: double; message 'maxValue';
+    procedure setMaxValue(maxValue_: double); message 'setMaxValue:';
+    function warningValue: double; message 'warningValue';
+    procedure setWarningValue(warningValue_: double); message 'setWarningValue:';
+    function criticalValue: double; message 'criticalValue';
+    procedure setCriticalValue(criticalValue_: double); message 'setCriticalValue:';
+    function tickMarkPosition: NSTickMarkPosition; message 'tickMarkPosition';
+    procedure setTickMarkPosition(position: NSTickMarkPosition); message 'setTickMarkPosition:';
+    function numberOfTickMarks: clong; message 'numberOfTickMarks';
+    procedure setNumberOfTickMarks(count: clong); message 'setNumberOfTickMarks:';
+    function numberOfMajorTickMarks: clong; message 'numberOfMajorTickMarks';
+    procedure setNumberOfMajorTickMarks(count: clong); message 'setNumberOfMajorTickMarks:';
+    function tickMarkValueAtIndex(index: clong): double; message 'tickMarkValueAtIndex:';
+    function rectOfTickMarkAtIndex(index: clong): NSRect; message 'rectOfTickMarkAtIndex:';
+  end; external;
+
+{$endif}
+{$endif}

+ 110 - 0
packages/cocoaint/src/appkit/NSLevelIndicatorCell.inc

@@ -0,0 +1,110 @@
+{ Parsed from Appkit.framework NSLevelIndicatorCell.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSLEVELINDICATORCELL_PAS_H}
+{$define NSLEVELINDICATORCELL_PAS_H}
+type
+  NSLevelIndicatorCellPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSLEVELINDICATORCELL_PAS_T}
+{$define NSLEVELINDICATORCELL_PAS_T}
+
+{ Constants }
+
+const
+  NSRelevancyLevelIndicatorStyle = 0;
+  NSContinuousCapacityLevelIndicatorStyle = 1;
+  NSDiscreteCapacityLevelIndicatorStyle = 2;
+  NSRatingLevelIndicatorStyle = 3;
+
+{ Types }
+type
+  NSLevelIndicatorStyle = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSLEVELINDICATORCELL_PAS_R}
+{$define NSLEVELINDICATORCELL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSLEVELINDICATORCELL_PAS_F}
+{$define NSLEVELINDICATORCELL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSLEVELINDICATORCELL_PAS_T}
+{$define NSLEVELINDICATORCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSLevelIndicatorCell = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSLEVELINDICATORCELL_PAS_C}
+{$define NSLEVELINDICATORCELL_PAS_C}
+
+{ NSLevelIndicatorCell }
+  NSLevelIndicatorCell = objcclass(NSActionCell)
+  private
+    __value: double;
+    __minValue: double;
+    __maxValue: double;
+    __warningValue: double;
+    __criticalValue: double;
+    __numberOfTickMarks: cint;
+    __numberOfMajorTickMarks: cint;
+    __liFlags: bitpacked record
+        indicatorStyle: 0..((1 shl 4)-1);
+        tickMarkPosition: 0..1;
+        selectable: 0..1;
+        reserved: 0..((1 shl 26)-1);
+      end;
+    __cellFrame: NSRect;
+    __reserved1: cint;
+    __reserved2: cint;
+    __reserved3: cint;
+    __reserved4: cint;
+    
+  public
+    class function alloc: NSLevelIndicatorCell; message 'alloc';
+
+    function initWithLevelIndicatorStyle(levelIndicatorStyle_: NSLevelIndicatorStyle): id; message 'initWithLevelIndicatorStyle:';
+    function levelIndicatorStyle: NSLevelIndicatorStyle; message 'levelIndicatorStyle';
+    procedure setLevelIndicatorStyle(levelIndicatorStyle_: NSLevelIndicatorStyle); message 'setLevelIndicatorStyle:';
+    function minValue: double; message 'minValue';
+    procedure setMinValue(minValue_: double); message 'setMinValue:';
+    function maxValue: double; message 'maxValue';
+    procedure setMaxValue(maxValue_: double); message 'setMaxValue:';
+    function warningValue: double; message 'warningValue';
+    procedure setWarningValue(warningValue_: double); message 'setWarningValue:';
+    function criticalValue: double; message 'criticalValue';
+    procedure setCriticalValue(criticalValue_: double); message 'setCriticalValue:';
+    procedure setTickMarkPosition(position: NSTickMarkPosition); message 'setTickMarkPosition:';
+    function tickMarkPosition: NSTickMarkPosition; message 'tickMarkPosition';
+    procedure setNumberOfTickMarks(count: clong); message 'setNumberOfTickMarks:';
+    function numberOfTickMarks: clong; message 'numberOfTickMarks';
+    procedure setNumberOfMajorTickMarks(count: clong); message 'setNumberOfMajorTickMarks:';
+    function numberOfMajorTickMarks: clong; message 'numberOfMajorTickMarks';
+    function rectOfTickMarkAtIndex(index: clong): NSRect; message 'rectOfTickMarkAtIndex:';
+    function tickMarkValueAtIndex(index: clong): double; message 'tickMarkValueAtIndex:';
+    procedure setImage(image_: NSImage); message 'setImage:';
+  end; external;
+
+{$endif}
+{$endif}

+ 256 - 0
packages/cocoaint/src/appkit/NSMatrix.inc

@@ -0,0 +1,256 @@
+{ Parsed from Appkit.framework NSMatrix.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSMATRIX_PAS_H}
+{$define NSMATRIX_PAS_H}
+type
+  NSMatrixPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSMATRIX_PAS_T}
+{$define NSMATRIX_PAS_T}
+
+{ Callbacks }
+type
+  NSMatrixCompare = function (param1: id; param2: id; param3: Pointer): NSInteger; cdecl;
+
+{ Constants }
+
+const
+  NSRadioModeMatrix = 0;
+  NSHighlightModeMatrix = 1;
+  NSListModeMatrix = 2;
+  NSTrackModeMatrix = 3;
+
+{ Types }
+type
+  NSMatrixMode = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSMATRIX_PAS_R}
+{$define NSMATRIX_PAS_R}
+
+{ Records }
+type
+  __MFlags = record
+{$ifdef fpc_big_endian}
+    highlightMode: cuint;
+    radioMode: cuint;
+    listMode: cuint;
+    allowEmptySel: cuint;
+    autoscroll: cuint;
+    selectionByRect: cuint;
+    drawsCellBackground: cuint;
+    drawsBackground: cuint;
+    autosizeCells: cuint;
+    drawingAncestor: cuint;
+    tabKeyTraversesCells: cuint;
+    tabKeyTraversesCellsExplicitlySet: cuint;
+    allowsIncrementalSearching: cuint;
+    currentlySelectingCell: cuint;
+    onlySetKeyCell: cuint;
+    changingSelectionWithKeyboard: cuint;
+    dontScroll: cuint;
+    refusesFirstResponder: cuint;
+    useSimpleTrackingMode: cuint;
+    checkForSimpleTrackingMode: cuint;
+    liveResizeImageCacheingEnabled: cuint;
+    hasCachedSubclassIsSafeForLiveResize: cuint;
+    subclassIsSafeForLiveResize: cuint;
+    tmpAllowNonVisibleCellsToBecomeFirstResponder: cuint;
+    needsRedrawBeforeFirstLiveResizeCache: cuint;
+    browserOptimizationsEnabled: cuint;
+    reservedMatrix: cuint;
+{$else}
+    reservedMatrix: cuint;
+    browserOptimizationsEnabled: cuint;
+    needsRedrawBeforeFirstLiveResizeCache: cuint;
+    tmpAllowNonVisibleCellsToBecomeFirstResponder: cuint;
+    subclassIsSafeForLiveResize: cuint;
+    hasCachedSubclassIsSafeForLiveResize: cuint;
+    liveResizeImageCacheingEnabled: cuint;
+    checkForSimpleTrackingMode: cuint;
+    useSimpleTrackingMode: cuint;
+    refusesFirstResponder: cuint;
+    dontScroll: cuint;
+    changingSelectionWithKeyboard: cuint;
+    onlySetKeyCell: cuint;
+    currentlySelectingCell: cuint;
+    allowsIncrementalSearching: cuint;
+    tabKeyTraversesCellsExplicitlySet: cuint;
+    tabKeyTraversesCells: cuint;
+    drawingAncestor: cuint;
+    autosizeCells: cuint;
+    drawsBackground: cuint;
+    drawsCellBackground: cuint;
+    selectionByRect: cuint;
+    autoscroll: cuint;
+    allowEmptySel: cuint;
+    listMode: cuint;
+    radioMode: cuint;
+    highlightMode: cuint;
+{$endif}
+  end;
+_MFlags = __MFlags;
+
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSMATRIX_PAS_F}
+{$define NSMATRIX_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSMATRIX_PAS_T}
+{$define NSMATRIX_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSMatrix = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSMATRIX_PAS_C}
+{$define NSMATRIX_PAS_C}
+
+{ NSMatrix }
+  NSMatrix = objcclass(NSControl, NSUserInterfaceValidationsProtocol)
+  private
+    __target: id;
+    __action: SEL;
+    __doubleAction: SEL;
+    __errorAction: SEL;
+    __delegate: id;
+    __selectedCell: id;
+    __selectedRow: clong;
+    __selectedCol: clong;
+    __numRows: clong;
+    __numCols: clong;
+    __cellSize: NSSize;
+    __intercell: NSSize;
+    __font: id;
+    __protoCell: id;
+    __cellClass: id;
+    __backgroundColor: NSColor;
+    __private: id;
+    __cells: NSMutableArray;
+    __mFlags: _MFlags;
+    
+  public
+    class function alloc: NSMatrix; message 'alloc';
+
+    function initWithFrame(frameRect: NSRect): id; message 'initWithFrame:';
+    function initWithFrame_mode_prototype_numberOfRows_numberOfColumns(frameRect: NSRect; aMode: NSMatrixMode; aCell: NSCell; rowsHigh: clong; colsWide: clong): id; message 'initWithFrame:mode:prototype:numberOfRows:numberOfColumns:';
+    function initWithFrame_mode_cellClass_numberOfRows_numberOfColumns(frameRect: NSRect; aMode: NSMatrixMode; factoryId: Pobjc_class; rowsHigh: clong; colsWide: clong): id; message 'initWithFrame:mode:cellClass:numberOfRows:numberOfColumns:';
+    procedure setCellClass(factoryId: Pobjc_class); message 'setCellClass:';
+    function cellClass: Pobjc_class; message 'cellClass';
+    function prototype: id; message 'prototype';
+    procedure setPrototype(aCell: NSCell); message 'setPrototype:';
+    function makeCellAtRow_column(row: clong; col: clong): NSCell; message 'makeCellAtRow:column:';
+    function mode: NSMatrixMode; message 'mode';
+    procedure setMode(aMode: NSMatrixMode); message 'setMode:';
+    procedure setAllowsEmptySelection(flag: Boolean); message 'setAllowsEmptySelection:';
+    function allowsEmptySelection: Boolean; message 'allowsEmptySelection';
+    procedure sendAction_to_forAllCells(aSelector: SEL; anObject: id; flag: Boolean); message 'sendAction:to:forAllCells:';
+    function cells: NSArray; message 'cells';
+    procedure sortUsingSelector(comparator: SEL); message 'sortUsingSelector:';
+    procedure sortUsingFunction_context(compare: NSMatrixCompare; context: Pointer); message 'sortUsingFunction:context:';
+    function selectedCell: id; message 'selectedCell';
+    function selectedCells: NSArray; message 'selectedCells';
+    function selectedRow: clong; message 'selectedRow';
+    function selectedColumn: clong; message 'selectedColumn';
+    procedure setSelectionByRect(flag: Boolean); message 'setSelectionByRect:';
+    function isSelectionByRect: Boolean; message 'isSelectionByRect';
+    procedure setSelectionFrom_to_anchor_highlight(startPos: clong; endPos: clong; anchorPos: clong; lit: Boolean); message 'setSelectionFrom:to:anchor:highlight:';
+    procedure deselectSelectedCell; message 'deselectSelectedCell';
+    procedure deselectAllCells; message 'deselectAllCells';
+    procedure selectCellAtRow_column(row: clong; col: clong); message 'selectCellAtRow:column:';
+    procedure selectAll(sender: id); message 'selectAll:';
+    function selectCellWithTag(anInt: clong): Boolean; message 'selectCellWithTag:';
+    function cellSize: NSSize; message 'cellSize';
+    procedure setCellSize(aSize: NSSize); message 'setCellSize:';
+    function intercellSpacing: NSSize; message 'intercellSpacing';
+    procedure setIntercellSpacing(aSize: NSSize); message 'setIntercellSpacing:';
+    procedure setScrollable(flag: Boolean); message 'setScrollable:';
+    procedure setBackgroundColor(color: NSColor); message 'setBackgroundColor:';
+    function backgroundColor: NSColor; message 'backgroundColor';
+    procedure setCellBackgroundColor(color: NSColor); message 'setCellBackgroundColor:';
+    function cellBackgroundColor: NSColor; message 'cellBackgroundColor';
+    procedure setDrawsCellBackground(flag: Boolean); message 'setDrawsCellBackground:';
+    function drawsCellBackground: Boolean; message 'drawsCellBackground';
+    procedure setDrawsBackground(flag: Boolean); message 'setDrawsBackground:';
+    function drawsBackground: Boolean; message 'drawsBackground';
+    procedure setState_atRow_column(value: clong; row: clong; col: clong); message 'setState:atRow:column:';
+    procedure getNumberOfRows_columns(var rowCount: clong; var colCount: clong); message 'getNumberOfRows:columns:';
+    function numberOfRows: clong; message 'numberOfRows';
+    function numberOfColumns: clong; message 'numberOfColumns';
+    function cellAtRow_column(row: clong; col: clong): id; message 'cellAtRow:column:';
+    function cellFrameAtRow_column(row: clong; col: clong): NSRect; message 'cellFrameAtRow:column:';
+    function getRow_column_ofCell(var row: clong; var col: clong; aCell: NSCell): Boolean; message 'getRow:column:ofCell:';
+    function getRow_column_forPoint(var row: clong; var col: clong; aPoint: NSPoint): Boolean; message 'getRow:column:forPoint:';
+    procedure renewRows_columns(newRows: clong; newCols: clong); message 'renewRows:columns:';
+    procedure putCell_atRow_column(newCell: NSCell; row: clong; col: clong); message 'putCell:atRow:column:';
+    procedure addRow; message 'addRow';
+    procedure addRowWithCells(newCells: NSArray); message 'addRowWithCells:';
+    procedure insertRow(row: clong); message 'insertRow:';
+    procedure insertRow_withCells(row: clong; newCells: NSArray); message 'insertRow:withCells:';
+    procedure removeRow(row: clong); message 'removeRow:';
+    procedure addColumn; message 'addColumn';
+    procedure addColumnWithCells(newCells: NSArray); message 'addColumnWithCells:';
+    procedure insertColumn(column: clong); message 'insertColumn:';
+    procedure insertColumn_withCells(column: clong; newCells: NSArray); message 'insertColumn:withCells:';
+    procedure removeColumn(col: clong); message 'removeColumn:';
+    function cellWithTag(anInt: clong): id; message 'cellWithTag:';
+    function doubleAction: SEL; message 'doubleAction';
+    procedure setDoubleAction(aSelector: SEL); message 'setDoubleAction:';
+    procedure setAutosizesCells(flag: Boolean); message 'setAutosizesCells:';
+    function autosizesCells: Boolean; message 'autosizesCells';
+    procedure sizeToCells; message 'sizeToCells';
+    procedure setValidateSize(flag: Boolean); message 'setValidateSize:';
+    procedure drawCellAtRow_column(row: clong; col: clong); message 'drawCellAtRow:column:';
+    procedure highlightCell_atRow_column(flag: Boolean; row: clong; col: clong); message 'highlightCell:atRow:column:';
+    procedure setAutoscroll(flag: Boolean); message 'setAutoscroll:';
+    function isAutoscroll: Boolean; message 'isAutoscroll';
+    procedure scrollCellToVisibleAtRow_column(row: clong; col: clong); message 'scrollCellToVisibleAtRow:column:';
+    function mouseDownFlags: clong; message 'mouseDownFlags';
+    procedure mouseDown(theEvent: NSEvent); message 'mouseDown:';
+    function performKeyEquivalent(theEvent: NSEvent): Boolean; message 'performKeyEquivalent:';
+    function sendAction: Boolean; message 'sendAction';
+    procedure sendDoubleAction; message 'sendDoubleAction';
+    function delegate: id; message 'delegate';
+    procedure setDelegate(anObject: id); message 'setDelegate:';
+    function textShouldBeginEditing(textObject: NSText): Boolean; message 'textShouldBeginEditing:';
+    function textShouldEndEditing(textObject: NSText): Boolean; message 'textShouldEndEditing:';
+    procedure textDidBeginEditing(notification: NSNotification); message 'textDidBeginEditing:';
+    procedure textDidEndEditing(notification: NSNotification); message 'textDidEndEditing:';
+    procedure textDidChange(notification: NSNotification); message 'textDidChange:';
+    procedure selectText(sender: id); message 'selectText:';
+    function selectTextAtRow_column(row: clong; col: clong): id; message 'selectTextAtRow:column:';
+    function acceptsFirstMouse(theEvent: NSEvent): Boolean; message 'acceptsFirstMouse:';
+    procedure resetCursorRects; message 'resetCursorRects';
+    procedure setToolTip_forCell(toolTipString: NSString; cell_: NSCell); message 'setToolTip:forCell:';
+    function toolTipForCell(cell_: NSCell): NSString; message 'toolTipForCell:';
+
+    { Category: NSKeyboardUI }
+    procedure setTabKeyTraversesCells(flag: Boolean); message 'setTabKeyTraversesCells:';
+    function tabKeyTraversesCells: Boolean; message 'tabKeyTraversesCells';
+    procedure setKeyCell(keyCell_: NSCell); message 'setKeyCell:';
+    function keyCell: id; message 'keyCell';
+  end; external;
+
+{$endif}
+{$endif}

+ 149 - 0
packages/cocoaint/src/appkit/NSMenu.inc

@@ -0,0 +1,149 @@
+{ Parsed from Appkit.framework NSMenu.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSMENU_PAS_H}
+{$define NSMENU_PAS_H}
+type
+  NSMenuPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSMENU_PAS_T}
+{$define NSMENU_PAS_T}
+
+{ CFString constants }
+var
+  NSMenuWillSendActionNotification: CFStringRef; external name '_NSMenuWillSendActionNotification';
+  NSMenuDidSendActionNotification: CFStringRef; external name '_NSMenuDidSendActionNotification';
+  NSMenuDidAddItemNotification: CFStringRef; external name '_NSMenuDidAddItemNotification';
+  NSMenuDidRemoveItemNotification: CFStringRef; external name '_NSMenuDidRemoveItemNotification';
+  NSMenuDidChangeItemNotification: CFStringRef; external name '_NSMenuDidChangeItemNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSMENU_PAS_R}
+{$define NSMENU_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSMENU_PAS_F}
+{$define NSMENU_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSMENU_PAS_T}
+{$define NSMENU_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSMenu = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSMENU_PAS_C}
+{$define NSMENU_PAS_C}
+
+{ NSMenu }
+  NSMenu = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol)
+  private
+    __supermenu: NSMenu;
+    __title: NSString;
+    __itemArray: id;
+    __menuImpl: id;
+    __mFlags: bitpacked record
+        noAutoenable: 0..1;
+        menuChangedMessagesDisabled: 0..1;
+        needsMenuChangedMessage: 0..1;
+        suppressAutoenable: 0..1;
+        disabled: 0..1;
+        ownedByPopUp: 0..1;
+        delegateNeedsUpdate: 0..1;
+        delegateUpdateItem: 0..1;
+        delegateHasKeyEquiv: 0..1;
+        delegateHasAltKeyEquiv: 0..1;
+        keyEquivalentMapIsDirty: 0..1;
+        excludeMarkColumn: 0..1;
+        isContextualMenu: 0..1;
+        RESERVED: 0..((1 shl 19)-1);
+        
+      end;
+    __name: NSString;
+    
+  public
+    class function alloc: NSMenu; message 'alloc';
+
+    class procedure setMenuZone(var aZone: NSZone); message 'setMenuZone:';
+    class function menuZone: NSZone; message 'menuZone';
+    class procedure popUpContextMenu_withEvent_forView(menu: NSMenu; event: NSEvent; view: NSView); message 'popUpContextMenu:withEvent:forView:';
+    class procedure popUpContextMenu_withEvent_forView_withFont(menu: NSMenu; event: NSEvent; view: NSView; font: NSFont); message 'popUpContextMenu:withEvent:forView:withFont:';
+    class procedure setMenuBarVisible(visible: Boolean); message 'setMenuBarVisible:';
+    class function menuBarVisible: Boolean; message 'menuBarVisible';
+    function initWithTitle(aTitle: NSString): id; message 'initWithTitle:';
+    procedure setTitle(aString: NSString); message 'setTitle:';
+    function title: NSString; message 'title';
+    procedure setSupermenu(supermenu_: NSMenu); message 'setSupermenu:';
+    function supermenu: NSMenu; message 'supermenu';
+    procedure insertItem_atIndex(newItem: NSMenuItem; index: clong); message 'insertItem:atIndex:';
+    procedure addItem(newItem: NSMenuItem); message 'addItem:';
+    function insertItemWithTitle_action_keyEquivalent_atIndex(aString: NSString; aSelector: SEL; charCode: NSString; index: clong): NSMenuItem; message 'insertItemWithTitle:action:keyEquivalent:atIndex:';
+    function addItemWithTitle_action_keyEquivalent(aString: NSString; aSelector: SEL; charCode: NSString): NSMenuItem; message 'addItemWithTitle:action:keyEquivalent:';
+    procedure removeItemAtIndex(index: clong); message 'removeItemAtIndex:';
+    procedure removeItem(item: NSMenuItem); message 'removeItem:';
+    procedure setSubmenu_forItem(aMenu: NSMenu; anItem: NSMenuItem); message 'setSubmenu:forItem:';
+    function itemArray: NSArray; message 'itemArray';
+    function numberOfItems: clong; message 'numberOfItems';
+    function indexOfItem(index: NSMenuItem): clong; message 'indexOfItem:';
+    function indexOfItemWithTitle(aTitle: NSString): clong; message 'indexOfItemWithTitle:';
+    function indexOfItemWithTag(aTag: clong): clong; message 'indexOfItemWithTag:';
+    function indexOfItemWithRepresentedObject(object_: id): clong; message 'indexOfItemWithRepresentedObject:';
+    function indexOfItemWithSubmenu(submenu: NSMenu): clong; message 'indexOfItemWithSubmenu:';
+    function indexOfItemWithTarget_andAction(target: id; actionSelector: SEL): clong; message 'indexOfItemWithTarget:andAction:';
+    function itemAtIndex(index: clong): NSMenuItem; message 'itemAtIndex:';
+    function itemWithTitle(aTitle: NSString): NSMenuItem; message 'itemWithTitle:';
+    function itemWithTag(tag: clong): NSMenuItem; message 'itemWithTag:';
+    procedure setAutoenablesItems(flag: Boolean); message 'setAutoenablesItems:';
+    function autoenablesItems: Boolean; message 'autoenablesItems';
+    function performKeyEquivalent(theEvent: NSEvent): Boolean; message 'performKeyEquivalent:';
+    procedure update; message 'update';
+    procedure setMenuChangedMessagesEnabled(flag: Boolean); message 'setMenuChangedMessagesEnabled:';
+    function menuChangedMessagesEnabled: Boolean; message 'menuChangedMessagesEnabled';
+    procedure itemChanged(item: NSMenuItem); message 'itemChanged:';
+    procedure helpRequested(eventPtr: NSEventPointer); message 'helpRequested:';
+    procedure setMenuRepresentation(menuRep: id); message 'setMenuRepresentation:';
+    function menuRepresentation: id; message 'menuRepresentation';
+    procedure setContextMenuRepresentation(menuRep: id); message 'setContextMenuRepresentation:';
+    function contextMenuRepresentation: id; message 'contextMenuRepresentation';
+    procedure setTearOffMenuRepresentation(menuRep: id); message 'setTearOffMenuRepresentation:';
+    function tearOffMenuRepresentation: id; message 'tearOffMenuRepresentation';
+    function isTornOff: Boolean; message 'isTornOff';
+    function attachedMenu: NSMenu; message 'attachedMenu';
+    function isAttached: Boolean; message 'isAttached';
+    procedure sizeToFit; message 'sizeToFit';
+    function locationForSubmenu(aSubmenu: NSMenu): NSPoint; message 'locationForSubmenu:';
+    procedure performActionForItemAtIndex(index: clong); message 'performActionForItemAtIndex:';
+    procedure setDelegate(anObject: id); message 'setDelegate:';
+    function delegate: id; message 'delegate';
+    function menuBarHeight: CGFloat; message 'menuBarHeight';
+    procedure cancelTracking; message 'cancelTracking';
+    function highlightedItem: NSMenuItem; message 'highlightedItem';
+    procedure setShowsStateColumn(showsState: Boolean); message 'setShowsStateColumn:';
+    function showsStateColumn: Boolean; message 'showsStateColumn';
+
+    { Category: NSSubmenuAction }
+    procedure submenuAction(sender: id); message 'submenuAction:';
+  end; external;
+
+{$endif}
+{$endif}

+ 140 - 0
packages/cocoaint/src/appkit/NSMenuItem.inc

@@ -0,0 +1,140 @@
+{ Parsed from Appkit.framework NSMenuItem.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:00 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSMENUITEM_PAS_H}
+{$define NSMENUITEM_PAS_H}
+type
+  NSMenuItemPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSMENUITEM_PAS_T}
+{$define NSMENUITEM_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSMENUITEM_PAS_R}
+{$define NSMENUITEM_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSMENUITEM_PAS_F}
+{$define NSMENUITEM_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSMENUITEM_PAS_T}
+{$define NSMENUITEM_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSMenuItem = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSMENUITEM_PAS_C}
+{$define NSMENUITEM_PAS_C}
+
+{ NSMenuItem }
+  NSMenuItem = objcclass(NSObject, NSCopyingProtocol, NSCodingProtocol, NSValidatedUserInterfaceItemProtocol)
+  private
+    __menu: NSMenu;
+    __title: NSString;
+    __keyEquivalent: NSString;
+    __keyEquivalentModifierMask: culong;
+    __mnemonicLocation: clong;
+    __state: clong;
+    __image: NSImage;
+    __onStateImage: NSImage;
+    __offStateImage: NSImage;
+    __mixedStateImage: NSImage;
+    __target: id;
+    __action: SEL;
+    __tag: clong;
+    __extraData: id;
+    __miFlags: bitpacked record
+        disabled: 0..1;
+        isSeparator: 0..1;
+        hidden: 0..1;
+        alternate: 0..1;
+        indent: 0..((1 shl 4)-1);
+        changed: 0..((1 shl 16)-1);
+        highlighted: 0..1;
+        limitedView: 0..1;
+        RESERVED: 0..((1 shl 6)-1);
+      end;
+    
+  public
+    class function alloc: NSMenuItem; message 'alloc';
+
+    class procedure setUsesUserKeyEquivalents(flag: Boolean); message 'setUsesUserKeyEquivalents:';
+    class function usesUserKeyEquivalents: Boolean; message 'usesUserKeyEquivalents';
+    class function separatorItem: NSMenuItem; message 'separatorItem';
+    function initWithTitle_action_keyEquivalent(aString: NSString; aSelector: SEL; charCode: NSString): id; message 'initWithTitle:action:keyEquivalent:';
+    procedure setMenu(menu_: NSMenu); message 'setMenu:';
+    function menu: NSMenu; message 'menu';
+    function hasSubmenu: Boolean; message 'hasSubmenu';
+    procedure setSubmenu(submenu_: NSMenu); message 'setSubmenu:';
+    function submenu: NSMenu; message 'submenu';
+    procedure setTitle(aString: NSString); message 'setTitle:';
+    function title: NSString; message 'title';
+    procedure setAttributedTitle(string_: NSAttributedString); message 'setAttributedTitle:';
+    function attributedTitle: NSAttributedString; message 'attributedTitle';
+    function isSeparatorItem: Boolean; message 'isSeparatorItem';
+    procedure setKeyEquivalent(aKeyEquivalent: NSString); message 'setKeyEquivalent:';
+    function keyEquivalent: NSString; message 'keyEquivalent';
+    procedure setKeyEquivalentModifierMask(mask: culong); message 'setKeyEquivalentModifierMask:';
+    function keyEquivalentModifierMask: culong; message 'keyEquivalentModifierMask';
+    function userKeyEquivalent: NSString; message 'userKeyEquivalent';
+    procedure setMnemonicLocation(location: culong); message 'setMnemonicLocation:';
+    function mnemonicLocation: culong; message 'mnemonicLocation';
+    function mnemonic: NSString; message 'mnemonic';
+    procedure setTitleWithMnemonic(stringWithAmpersand: NSString); message 'setTitleWithMnemonic:';
+    procedure setImage(menuImage: NSImage); message 'setImage:';
+    function image: NSImage; message 'image';
+    procedure setState(state_: clong); message 'setState:';
+    function state: clong; message 'state';
+    procedure setOnStateImage(image_: NSImage); message 'setOnStateImage:';
+    function onStateImage: NSImage; message 'onStateImage';
+    procedure setOffStateImage(image_: NSImage); message 'setOffStateImage:';
+    function offStateImage: NSImage; message 'offStateImage';
+    procedure setMixedStateImage(image_: NSImage); message 'setMixedStateImage:';
+    function mixedStateImage: NSImage; message 'mixedStateImage';
+    procedure setEnabled(flag: Boolean); message 'setEnabled:';
+    function isEnabled: Boolean; message 'isEnabled';
+    procedure setAlternate(isAlternate_: Boolean); message 'setAlternate:';
+    function isAlternate: Boolean; message 'isAlternate';
+    procedure setIndentationLevel(indentationLevel_: clong); message 'setIndentationLevel:';
+    function indentationLevel: clong; message 'indentationLevel';
+    procedure setTarget(anObject: id); message 'setTarget:';
+    function target: id; message 'target';
+    procedure setAction(aSelector: SEL); message 'setAction:';
+    function action: SEL; message 'action';
+    procedure setTag(anInt: clong); message 'setTag:';
+    function tag: clong; message 'tag';
+    procedure setRepresentedObject(anObject: id); message 'setRepresentedObject:';
+    function representedObject: id; message 'representedObject';
+    procedure setView(view_: NSView); message 'setView:';
+    function view: NSView; message 'view';
+    function isHighlighted: Boolean; message 'isHighlighted';
+    procedure setHidden(hidden: Boolean); message 'setHidden:';
+    function isHidden: Boolean; message 'isHidden';
+    function isHiddenOrHasHiddenAncestor: Boolean; message 'isHiddenOrHasHiddenAncestor';
+    procedure setToolTip(toolTip_: NSString); message 'setToolTip:';
+    function toolTip: NSString; message 'toolTip';
+  end; external;
+
+{$endif}
+{$endif}

+ 96 - 0
packages/cocoaint/src/appkit/NSMenuItemCell.inc

@@ -0,0 +1,96 @@
+{ Parsed from Appkit.framework NSMenuItemCell.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSMENUITEMCELL_PAS_H}
+{$define NSMENUITEMCELL_PAS_H}
+type
+  NSMenuItemCellPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSMENUITEMCELL_PAS_T}
+{$define NSMENUITEMCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSMENUITEMCELL_PAS_R}
+{$define NSMENUITEMCELL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSMENUITEMCELL_PAS_F}
+{$define NSMENUITEMCELL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSMENUITEMCELL_PAS_T}
+{$define NSMENUITEMCELL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSMenuItemCell = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSMENUITEMCELL_PAS_C}
+{$define NSMENUITEMCELL_PAS_C}
+
+{ NSMenuItemCell }
+  NSMenuItemCell = objcclass(NSButtonCell)
+  private
+    __extraData: id;
+    __stateImageSize: NSSize;
+    __imageSize: NSSize;
+    __titleSize: NSSize;
+    __keyEquivalentSize: NSSize;
+    __size: NSSize;
+    __micFlags: bitpacked record
+        needsSizing: 0..1;
+        reserved: 0..1;
+        needsDisplay: 0..1;
+        keyEquivGlyphWidth: 0..((1 shl 16)-1);
+        RESERVED_: 0..((1 shl 13)-1);
+      end;
+    
+  public
+    class function alloc: NSMenuItemCell; message 'alloc';
+
+    procedure setMenuItem(item: NSMenuItem); message 'setMenuItem:';
+    function menuItem: NSMenuItem; message 'menuItem';
+    procedure setMenuView(menuView_: NSMenuView); message 'setMenuView:';
+    function menuView: NSMenuView; message 'menuView';
+    procedure setNeedsSizing(flag: Boolean); message 'setNeedsSizing:';
+    function needsSizing: Boolean; message 'needsSizing';
+    procedure calcSize; message 'calcSize';
+    procedure setNeedsDisplay_(flag: Boolean); message 'setNeedsDisplay:';
+    function needsDisplay: Boolean; message 'needsDisplay';
+    function stateImageWidth: CGFloat; message 'stateImageWidth';
+    function imageWidth: CGFloat; message 'imageWidth';
+    function titleWidth: CGFloat; message 'titleWidth';
+    function keyEquivalentWidth: CGFloat; message 'keyEquivalentWidth';
+    function stateImageRectForBounds(cellFrame: NSRect): NSRect; message 'stateImageRectForBounds:';
+    function titleRectForBounds(cellFrame: NSRect): NSRect; message 'titleRectForBounds:';
+    function keyEquivalentRectForBounds(cellFrame: NSRect): NSRect; message 'keyEquivalentRectForBounds:';
+    procedure drawSeparatorItemWithFrame_inView(cellFrame: NSRect; controlView_: NSView); message 'drawSeparatorItemWithFrame:inView:';
+    procedure drawStateImageWithFrame_inView(cellFrame: NSRect; controlView_: NSView); message 'drawStateImageWithFrame:inView:';
+    procedure drawImageWithFrame_inView(cellFrame: NSRect; controlView_: NSView); message 'drawImageWithFrame:inView:';
+    procedure drawTitleWithFrame_inView(cellFrame: NSRect; controlView_: NSView); message 'drawTitleWithFrame:inView:';
+    procedure drawKeyEquivalentWithFrame_inView(cellFrame: NSRect; controlView_: NSView); message 'drawKeyEquivalentWithFrame:inView:';
+    procedure drawBorderAndBackgroundWithFrame_inView(cellFrame: NSRect; controlView_: NSView); message 'drawBorderAndBackgroundWithFrame:inView:';
+    function tag: clong; message 'tag';
+  end; external;
+
+{$endif}
+{$endif}

+ 134 - 0
packages/cocoaint/src/appkit/NSMenuView.inc

@@ -0,0 +1,134 @@
+{ Parsed from Appkit.framework NSMenuView.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSMENUVIEW_PAS_H}
+{$define NSMENUVIEW_PAS_H}
+type
+  NSMenuViewPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSMENUVIEW_PAS_T}
+{$define NSMENUVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSMENUVIEW_PAS_R}
+{$define NSMENUVIEW_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSMENUVIEW_PAS_F}
+{$define NSMENUVIEW_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSMENUVIEW_PAS_T}
+{$define NSMENUVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSMenuView = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSMENUVIEW_PAS_C}
+{$define NSMENUVIEW_PAS_C}
+
+{ NSMenuView }
+  NSMenuView = objcclass(NSView)
+  private
+    __menu: NSMenu;
+    __cells: NSMutableArray;
+    __stateImageWidth: CGFloat;
+    __imageAndTitleWidth: CGFloat;
+    __keyEquivalentWidth: CGFloat;
+    __extents: CGFloat;
+    __extentsCapacity: cuint;
+    __highlightedItemIndex: cint;
+    __submenuPopupTimer: Pointer;
+    __attachedMenuView: NSMenuView;
+    __scrollArrowHeight: CGFloat;
+    __maxWinHeight: CGFloat;
+    __font: NSFont;
+    __minSize: NSSize;
+    __horizontalEdgePad: CGFloat;
+    _trackingState: Pointer;
+    __scrollingView: id;
+    __mvFlags: bitpacked record
+        needsSizing: 0..1;
+        releasingWindow: 0..1;
+        isHorizontal: 0..1;
+        disableSizing: 0..1;
+        attachedSubmenuWhileMouseWasUp: 0..1;
+        needsToCreateCells: 0..1;
+        allowsTearOffs: 0..1;
+        isTearOff: 0..1;
+        keyEquivGlyphWidth: 0..((1 shl 16)-1);
+        disableResize: 0..1;
+        savedHODState: 0..1;
+        drawCenter: 0..1;
+        RESERVED: 0..((1 shl 5)-1);
+      end;
+    
+  public
+    class function alloc: NSMenuView; message 'alloc';
+
+    class function menuBarHeight: CGFloat; message 'menuBarHeight';
+    function initWithFrame(frame_: NSRect): id; message 'initWithFrame:';
+    function initAsTearOff: id; message 'initAsTearOff';
+    procedure setMenu(menu_: NSMenu); message 'setMenu:';
+    function menu: NSMenu; message 'menu';
+    procedure itemChanged(notification: NSNotification); message 'itemChanged:';
+    procedure itemAdded(notification: NSNotification); message 'itemAdded:';
+    procedure itemRemoved(notification: NSNotification); message 'itemRemoved:';
+    procedure update; message 'update';
+    procedure setHorizontal(flag: Boolean); message 'setHorizontal:';
+    function isHorizontal: Boolean; message 'isHorizontal';
+    procedure setFont(font_: NSFont); message 'setFont:';
+    function font: NSFont; message 'font';
+    function innerRect: NSRect; message 'innerRect';
+    function rectOfItemAtIndex(index: clong): NSRect; message 'rectOfItemAtIndex:';
+    function indexOfItemAtPoint(point: NSPoint): clong; message 'indexOfItemAtPoint:';
+    procedure setNeedsDisplayForItemAtIndex(index: clong); message 'setNeedsDisplayForItemAtIndex:';
+    procedure setHighlightedItemIndex(index: clong); message 'setHighlightedItemIndex:';
+    function highlightedItemIndex: clong; message 'highlightedItemIndex';
+    function stateImageOffset: CGFloat; message 'stateImageOffset';
+    function stateImageWidth: CGFloat; message 'stateImageWidth';
+    function imageAndTitleOffset: CGFloat; message 'imageAndTitleOffset';
+    function imageAndTitleWidth: CGFloat; message 'imageAndTitleWidth';
+    function keyEquivalentOffset: CGFloat; message 'keyEquivalentOffset';
+    function keyEquivalentWidth: CGFloat; message 'keyEquivalentWidth';
+    procedure setMenuItemCell_forItemAtIndex(cell: NSMenuItemCell; index: clong); message 'setMenuItemCell:forItemAtIndex:';
+    function menuItemCellForItemAtIndex(index: clong): NSMenuItemCell; message 'menuItemCellForItemAtIndex:';
+    function attachedMenuView: NSMenuView; message 'attachedMenuView';
+    procedure setNeedsSizing(flag: Boolean); message 'setNeedsSizing:';
+    function needsSizing: Boolean; message 'needsSizing';
+    procedure sizeToFit; message 'sizeToFit';
+    function attachedMenu: NSMenu; message 'attachedMenu';
+    function isAttached: Boolean; message 'isAttached';
+    function isTornOff: Boolean; message 'isTornOff';
+    function locationForSubmenu(aSubmenu: NSMenu): NSPoint; message 'locationForSubmenu:';
+    procedure setWindowFrameForAttachingToRect_onScreen_preferredEdge_popUpSelectedItem(screenRect: NSRect; screen: NSScreen; edge: NSRectEdge; selectedItemIndex: clong); message 'setWindowFrameForAttachingToRect:onScreen:preferredEdge:popUpSelectedItem:';
+    procedure detachSubmenu; message 'detachSubmenu';
+    procedure attachSubmenuForItemAtIndex(index: clong); message 'attachSubmenuForItemAtIndex:';
+    procedure performActionWithHighlightingForItemAtIndex(index: clong); message 'performActionWithHighlightingForItemAtIndex:';
+    function trackWithEvent(event: NSEvent): Boolean; message 'trackWithEvent:';
+    function horizontalEdgePadding: CGFloat; message 'horizontalEdgePadding';
+    procedure setHorizontalEdgePadding(pad: CGFloat); message 'setHorizontalEdgePadding:';
+  end; external;
+
+{$endif}
+{$endif}

+ 76 - 0
packages/cocoaint/src/appkit/NSMovie.inc

@@ -0,0 +1,76 @@
+{ Parsed from Appkit.framework NSMovie.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSMOVIE_PAS_H}
+{$define NSMOVIE_PAS_H}
+type
+  NSMoviePointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSMOVIE_PAS_T}
+{$define NSMOVIE_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSMOVIE_PAS_R}
+{$define NSMOVIE_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSMOVIE_PAS_F}
+{$define NSMOVIE_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSMOVIE_PAS_T}
+{$define NSMOVIE_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSMovie = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSMOVIE_PAS_C}
+{$define NSMOVIE_PAS_C}
+
+{ NSMovie }
+  NSMovie = objcclass(NSObject, NSCodingProtocol)
+  private
+    __movie: Pointer;
+    __url: NSURL;
+    __movieFlags: bitpacked record
+        dispose_: 0..1;
+        reserved: 0..((1 shl 31)-1);
+      end;
+    __reserved1: clong;
+    __reserved2: clong;
+    
+  public
+    class function alloc: NSMovie; message 'alloc';
+
+    function initWithMovie(movie: Pointer): id; message 'initWithMovie:';
+    function initWithURL_byReference(URL_: NSURL; byRef: Boolean): id; message 'initWithURL:byReference:';
+    function initWithPasteboard(pasteboard: NSPasteboard): id; message 'initWithPasteboard:';
+    function QTMovie: Pointer; message 'QTMovie';
+    function URL: NSURL; message 'URL';
+    class function movieUnfilteredFileTypes: NSArray; message 'movieUnfilteredFileTypes';
+    class function movieUnfilteredPasteboardTypes: NSArray; message 'movieUnfilteredPasteboardTypes';
+    class function canInitWithPasteboard(pasteboard: NSPasteboard): Boolean; message 'canInitWithPasteboard:';
+  end; external;
+
+{$endif}
+{$endif}

+ 128 - 0
packages/cocoaint/src/appkit/NSMovieView.inc

@@ -0,0 +1,128 @@
+{ Parsed from Appkit.framework NSMovieView.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSMOVIEVIEW_PAS_H}
+{$define NSMOVIEVIEW_PAS_H}
+type
+  NSMovieViewPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSMOVIEVIEW_PAS_T}
+{$define NSMOVIEVIEW_PAS_T}
+
+{ Constants }
+
+const
+  NSQTMovieNormalPlayback = 0;
+  NSQTMovieLoopingPlayback = 1;
+  NSQTMovieLoopingBackAndForthPlayback = 2;
+
+{ Types }
+type
+  NSQTMovieLoopMode = culong;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSMOVIEVIEW_PAS_R}
+{$define NSMOVIEVIEW_PAS_R}
+
+{ Records }
+type
+  __MVFlags = record
+    editable: cuint;
+    loopMode: NSQTMovieLoopMode;
+    playsEveryFrame: cuint;
+    playsSelectionOnly: cuint;
+    controllerVisible: cuint;
+    reserved: cuint;
+  end;
+_MVFlags = __MVFlags;
+
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSMOVIEVIEW_PAS_F}
+{$define NSMOVIEVIEW_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSMOVIEVIEW_PAS_T}
+{$define NSMOVIEVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSMovieView = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSMOVIEVIEW_PAS_C}
+{$define NSMOVIEVIEW_PAS_C}
+
+{ NSMovieView }
+  NSMovieView = objcclass(NSView, NSUserInterfaceValidationsProtocol)
+  private
+    __fMovie: NSMovie;
+    __fRate: single;
+    __fVolume: single;
+    __fFlags: _MVFlags;
+    __fAuxData: Pointer;
+    __fReserved1: culong;
+    __fReserved2: culong;
+    __fReserved3: culong;
+    
+  public
+    class function alloc: NSMovieView; message 'alloc';
+
+    procedure setMovie(movie_: NSMovie); message 'setMovie:';
+    function movie: NSMovie; message 'movie';
+    function movieController: Pointer; message 'movieController';
+    function movieRect: NSRect; message 'movieRect';
+    procedure start(sender: id); message 'start:';
+    procedure stop(sender: id); message 'stop:';
+    function isPlaying: Boolean; message 'isPlaying';
+    procedure gotoPosterFrame(sender: id); message 'gotoPosterFrame:';
+    procedure gotoBeginning(sender: id); message 'gotoBeginning:';
+    procedure gotoEnd(sender: id); message 'gotoEnd:';
+    procedure stepForward(sender: id); message 'stepForward:';
+    procedure stepBack(sender: id); message 'stepBack:';
+    procedure setRate(rate_: single); message 'setRate:';
+    function rate: single; message 'rate';
+    procedure setVolume(volume_: single); message 'setVolume:';
+    function volume: single; message 'volume';
+    procedure setMuted(mute: Boolean); message 'setMuted:';
+    function isMuted: Boolean; message 'isMuted';
+    procedure setLoopMode(mode: NSQTMovieLoopMode); message 'setLoopMode:';
+    function loopMode: NSQTMovieLoopMode; message 'loopMode';
+    procedure setPlaysSelectionOnly(flag: Boolean); message 'setPlaysSelectionOnly:';
+    function playsSelectionOnly: Boolean; message 'playsSelectionOnly';
+    procedure setPlaysEveryFrame(flag: Boolean); message 'setPlaysEveryFrame:';
+    function playsEveryFrame: Boolean; message 'playsEveryFrame';
+    procedure showController_adjustingSize(show: Boolean; adjustSize: Boolean); message 'showController:adjustingSize:';
+    function isControllerVisible: Boolean; message 'isControllerVisible';
+    procedure resizeWithMagnification(magnification: CGFloat); message 'resizeWithMagnification:';
+    function sizeForMagnification(magnification: CGFloat): NSSize; message 'sizeForMagnification:';
+    procedure setEditable(editable: Boolean); message 'setEditable:';
+    function isEditable: Boolean; message 'isEditable';
+    procedure cut(sender: id); message 'cut:';
+    procedure copy_(sender: id); message 'copy:';
+    procedure paste(sender: id); message 'paste:';
+    procedure delete(sender: id); message 'delete:';
+    procedure selectAll(sender: id); message 'selectAll:';
+    procedure clear(sender: id); message 'clear:';
+  end; external;
+
+{$endif}
+{$endif}

+ 31 - 0
packages/cocoaint/src/appkit/NSMoview.inc

@@ -0,0 +1,31 @@
+{ Parsed from Appkit.framework NSMoview.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Mon Sep 7 17:27:43 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSMOVIEW_PAS_T}
+{$define NSMOVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSMOVIEW_PAS_R}
+{$define NSMOVIEW_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSMOVIEW_PAS_F}
+{$define NSMOVIEW_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSMOVIEW_PAS_T}
+{$define NSMOVIEW_PAS_T}
+
+{$endif}
+{$endif}

+ 79 - 0
packages/cocoaint/src/appkit/NSNib.inc

@@ -0,0 +1,79 @@
+{ Parsed from Appkit.framework NSNib.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSNIB_PAS_H}
+{$define NSNIB_PAS_H}
+type
+  NSNibPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSNIB_PAS_T}
+{$define NSNIB_PAS_T}
+
+{ CFString constants }
+var
+  NSNibOwner: CFStringRef; external name '_NSNibOwner';
+  NSNibTopLevelObjects: CFStringRef; external name '_NSNibTopLevelObjects';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSNIB_PAS_R}
+{$define NSNIB_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSNIB_PAS_F}
+{$define NSNIB_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSNIB_PAS_T}
+{$define NSNIB_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSNib = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSNIB_PAS_C}
+{$define NSNIB_PAS_C}
+
+{ NSNib }
+  NSNib = objcclass(NSObject, NSCodingProtocol)
+  private
+    __data: NSData;
+    __images: NSArray;
+    __sounds: NSArray;
+    __bundle: NSBundle;
+    __flags: bitpacked record
+        _isKeyed: 0..1;
+        _reserved: 0..((1 shl 31)-1);
+      end;
+    _reserved1: id;
+    _reserved2: id;
+    
+  public
+    class function alloc: NSNib; message 'alloc';
+
+    function initWithContentsOfURL(nibFileURL: NSURL): id; message 'initWithContentsOfURL:';
+    function initWithNibNamed_bundle(nibName: NSString; bundle: NSBundle): id; message 'initWithNibNamed:bundle:';
+    function instantiateNibWithExternalNameTable(externalNameTable: NSDictionary): Boolean; message 'instantiateNibWithExternalNameTable:';
+    function instantiateNibWithOwner_topLevelObjects(owner: id; var topLevelObjects: NSArray): Boolean; message 'instantiateNibWithOwner:topLevelObjects:';
+  end; external;
+
+{$endif}
+{$endif}

+ 31 - 0
packages/cocoaint/src/appkit/NSNibLoading.inc

@@ -0,0 +1,31 @@
+{ Parsed from Appkit.framework NSNibLoading.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+
+{$ifdef TYPES}
+{$ifndef NSNIBLOADING_PAS_T}
+{$define NSNIBLOADING_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSNIBLOADING_PAS_R}
+{$define NSNIBLOADING_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSNIBLOADING_PAS_F}
+{$define NSNIBLOADING_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSNIBLOADING_PAS_T}
+{$define NSNIBLOADING_PAS_T}
+
+{$endif}
+{$endif}

+ 111 - 0
packages/cocoaint/src/appkit/NSObjectController.inc

@@ -0,0 +1,111 @@
+{ Parsed from Appkit.framework NSObjectController.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSOBJECTCONTROLLER_PAS_H}
+{$define NSOBJECTCONTROLLER_PAS_H}
+type
+  NSObjectControllerPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSOBJECTCONTROLLER_PAS_T}
+{$define NSOBJECTCONTROLLER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSOBJECTCONTROLLER_PAS_R}
+{$define NSOBJECTCONTROLLER_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSOBJECTCONTROLLER_PAS_F}
+{$define NSOBJECTCONTROLLER_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSOBJECTCONTROLLER_PAS_T}
+{$define NSOBJECTCONTROLLER_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSObjectController = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSOBJECTCONTROLLER_PAS_C}
+{$define NSOBJECTCONTROLLER_PAS_C}
+
+{ NSObjectController }
+  NSObjectController = objcclass(NSController)
+  private
+    __reserved3: Pointer;
+    __managedProxy: id;
+    __objectControllerFlags: bitpacked record
+        _editable: 0..1;
+        _automaticallyPreparesContent: 0..1;
+        _hasLoadedData: 0..1;
+        _explicitlyCannotAdd: 0..1;
+        _explicitlyCannotRemove: 0..1;
+        _isUsingManagedProxy: 0..1;
+        _hasFetched: 0..1;
+        _batches: 0..1;
+        _reservedObjectController: 0..((1 shl 24)-1);
+      end;
+    __objectClassName: NSString;
+    __objectClass: Pobjc_class;
+    __contentObjectArray: NSArray;
+    __content: id;
+    __objectHandler: id;
+    
+  public
+    class function alloc: NSObjectController; message 'alloc';
+
+    function initWithContent(content_: id): id; message 'initWithContent:';
+    procedure setContent(content_: id); message 'setContent:';
+    function content: id; message 'content';
+    function selection: id; message 'selection';
+    function selectedObjects: NSArray; message 'selectedObjects';
+    procedure setAutomaticallyPreparesContent(flag: Boolean); message 'setAutomaticallyPreparesContent:';
+    function automaticallyPreparesContent: Boolean; message 'automaticallyPreparesContent';
+    procedure prepareContent; message 'prepareContent';
+    procedure setObjectClass(objectClass_: Pobjc_class); message 'setObjectClass:';
+    function objectClass: Pobjc_class; message 'objectClass';
+    function newObject: id; message 'newObject';
+    procedure addObject(object_: id); message 'addObject:';
+    procedure removeObject(object_: id); message 'removeObject:';
+    procedure setEditable(flag: Boolean); message 'setEditable:';
+    function isEditable: Boolean; message 'isEditable';
+    procedure add(sender: id); message 'add:';
+    function canAdd: Boolean; message 'canAdd';
+    procedure remove(sender: id); message 'remove:';
+    function canRemove: Boolean; message 'canRemove';
+    function validateUserInterfaceItem(item: id): Boolean; message 'validateUserInterfaceItem:';
+
+    { Category: NSManagedController }
+    function managedObjectContext: NSManagedObjectContext; message 'managedObjectContext';
+    procedure setManagedObjectContext(var managedObjectContext_: NSManagedObjectContext); message 'setManagedObjectContext:';
+    function entityName: NSString; message 'entityName';
+    procedure setEntityName(entityName_: NSString); message 'setEntityName:';
+    function fetchPredicate: NSPredicate; message 'fetchPredicate';
+    procedure setFetchPredicate(predicate: NSPredicate); message 'setFetchPredicate:';
+    function fetchWithRequest_merge_error(var fetchRequest: NSFetchRequest; merge: Boolean; var error: NSError): Boolean; message 'fetchWithRequest:merge:error:';
+    procedure fetch(sender: id); message 'fetch:';
+    procedure setUsesLazyFetching(enabled: Boolean); message 'setUsesLazyFetching:';
+    function usesLazyFetching: Boolean; message 'usesLazyFetching';
+    function defaultFetchRequest: NSFetchRequest; message 'defaultFetchRequest';
+  end; external;
+
+{$endif}
+{$endif}

+ 187 - 0
packages/cocoaint/src/appkit/NSOpenGL.inc

@@ -0,0 +1,187 @@
+{ Parsed from Appkit.framework NSOpenGL.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSOPENGL_PAS_H}
+{$define NSOPENGL_PAS_H}
+type
+  NSOpenGLPixelFormatPointer = Pointer;
+  NSOpenGLPixelBufferPointer = Pointer;
+  NSOpenGLContextPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSOPENGL_PAS_T}
+{$define NSOPENGL_PAS_T}
+
+{ Defines }
+const
+  NSOPENGL_CURRENT_VERSION = 1;
+
+{ Sets }
+
+type
+  NSOpenGLGlobalOption = (NSOpenGLGOFormatCacheSize = 501, NSOpenGLGOClearFormatCache = 502, NSOpenGLGORetainRenderers = 503, NSOpenGLGOResetLibrary = 504);
+
+type
+  NSOpenGLContextParameter = (NSOpenGLCPSwapRectangle = 200, NSOpenGLCPSwapRectangleEnable = 201, NSOpenGLCPRasterizationEnable = 221, NSOpenGLCPSwapInterval = 222, NSOpenGLCPSurfaceOrder = 235, NSOpenGLCPSurfaceOpacity = 236, NSOpenGLCPStateValidation = 301);
+
+{ Constants }
+
+const
+  NSOpenGLPFAAllRenderers = 1;
+  NSOpenGLPFADoubleBuffer = 5;
+  NSOpenGLPFAStereo = 6;
+  NSOpenGLPFAAuxBuffers = 7;
+  NSOpenGLPFAColorSize = 8;
+  NSOpenGLPFAAlphaSize = 11;
+  NSOpenGLPFADepthSize = 12;
+  NSOpenGLPFAStencilSize = 13;
+  NSOpenGLPFAAccumSize = 14;
+  NSOpenGLPFAMinimumPolicy = 51;
+  NSOpenGLPFAMaximumPolicy = 52;
+  NSOpenGLPFAOffScreen = 53;
+  NSOpenGLPFAFullScreen = 54;
+  NSOpenGLPFASampleBuffers = 55;
+  NSOpenGLPFASamples = 56;
+  NSOpenGLPFAAuxDepthStencil = 57;
+  NSOpenGLPFAColorFloat = 58;
+  NSOpenGLPFAMultisample = 59;
+  NSOpenGLPFASupersample = 60;
+  NSOpenGLPFASampleAlpha = 61;
+  NSOpenGLPFARendererID = 70;
+  NSOpenGLPFASingleRenderer = 71;
+  NSOpenGLPFANoRecovery = 72;
+  NSOpenGLPFAAccelerated = 73;
+  NSOpenGLPFAClosestPolicy = 74;
+  NSOpenGLPFARobust = 75;
+  NSOpenGLPFABackingStore = 76;
+  NSOpenGLPFAMPSafe = 78;
+  NSOpenGLPFAWindow = 80;
+  NSOpenGLPFAMultiScreen = 81;
+  NSOpenGLPFACompliant = 83;
+  NSOpenGLPFAScreenMask = 84;
+  NSOpenGLPFAPixelBuffer = 90;
+  NSOpenGLPFAAllowOfflineRenderers = 96;
+  NSOpenGLPFAVirtualScreenCount = 128;
+
+{ Types }
+type
+  NSOpenGLPixelFormatAttribute = cardinal;
+  _CGLPixelFormatObject = Pointer;
+  NSOpenGLPixelFormatAuxiliary = _CGLPixelFormatObject;
+  _CGLContextObject = Pointer;
+  NSOpenGLContextAuxiliary = _CGLContextObject;
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSOPENGL_PAS_R}
+{$define NSOPENGL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSOPENGL_PAS_F}
+{$define NSOPENGL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSOPENGL_PAS_T}
+{$define NSOPENGL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSOpenGLPixelFormat = objcclass;
+  NSOpenGLPixelBuffer = objcclass;
+  NSOpenGLContext = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSOPENGL_PAS_C}
+{$define NSOPENGL_PAS_C}
+
+{ NSOpenGLPixelFormat }
+  NSOpenGLPixelFormat = objcclass(NSObject, NSCodingProtocol)
+  private
+    __pixelFormatAuxiliary: NSOpenGLPixelFormatAuxiliary;
+    __pixelAttributes: NSData;
+    __reserved1: clong;
+    __reserved2: clong;
+    __reserved3: clong;
+    
+  public
+    class function alloc: NSOpenGLPixelFormat; message 'alloc';
+
+    function initWithAttributes(var attribs: NSOpenGLPixelFormatAttribute): id; message 'initWithAttributes:';
+    function initWithData(attribs: NSData): id; message 'initWithData:';
+    function attributes: NSData; message 'attributes';
+    procedure setAttributes(attribs: NSData); message 'setAttributes:';
+    procedure getValues_forAttribute_forVirtualScreen(var vals: GLint; attrib: NSOpenGLPixelFormatAttribute; screen: GLint); message 'getValues:forAttribute:forVirtualScreen:';
+    function numberOfVirtualScreens: GLint; message 'numberOfVirtualScreens';
+    function CGLPixelFormatObj: Pointer; message 'CGLPixelFormatObj';
+  end; external;
+
+{ NSOpenGLPixelBuffer }
+  NSOpenGLPixelBuffer = objcclass(NSObject)
+  private
+    __pixelBufferAuxiliary: _CGLPBufferObject;
+    __reserved1: Pointer;
+    __reserved2: Pointer;
+    
+  public
+    class function alloc: NSOpenGLPixelBuffer; message 'alloc';
+
+    function initWithTextureTarget_textureInternalFormat_textureMaxMipMapLevel_pixelsWide_pixelsHigh(target: GLenum; format: GLenum; maxLevel: GLint; pixelsWide_: GLsizei; pixelsHigh_: GLsizei): id; message 'initWithTextureTarget:textureInternalFormat:textureMaxMipMapLevel:pixelsWide:pixelsHigh:';
+    function pixelsWide: GLsizei; message 'pixelsWide';
+    function pixelsHigh: GLsizei; message 'pixelsHigh';
+    function textureTarget: GLenum; message 'textureTarget';
+    function textureInternalFormat: GLenum; message 'textureInternalFormat';
+    function textureMaxMipMapLevel: GLint; message 'textureMaxMipMapLevel';
+  end; external;
+
+{ NSOpenGLContext }
+  NSOpenGLContext = objcclass(NSObject)
+  private
+    __view: NSView;
+    __contextAuxiliary: NSOpenGLContextAuxiliary;
+    
+  public
+    class function alloc: NSOpenGLContext; message 'alloc';
+
+    function initWithFormat_shareContext(format: NSOpenGLPixelFormat; share: NSOpenGLContext): id; message 'initWithFormat:shareContext:';
+    procedure setView(view_: NSView); message 'setView:';
+    function view: NSView; message 'view';
+    procedure setFullScreen; message 'setFullScreen';
+    procedure setOffScreen_width_height_rowbytes(baseaddr: Pointer; width: GLsizei; height: GLsizei; rowbytes: GLint); message 'setOffScreen:width:height:rowbytes:';
+    procedure clearDrawable; message 'clearDrawable';
+    procedure update; message 'update';
+    procedure flushBuffer; message 'flushBuffer';
+    procedure makeCurrentContext; message 'makeCurrentContext';
+    class procedure clearCurrentContext; message 'clearCurrentContext';
+    class function currentContext: NSOpenGLContext; message 'currentContext';
+    procedure copyAttributesFromContext_withMask(context: NSOpenGLContext; mask: GLbitfield); message 'copyAttributesFromContext:withMask:';
+    procedure setValues_forParameter(var vals: GLint; param: NSOpenGLContextParameter); message 'setValues:forParameter:';
+    procedure getValues_forParameter(var vals: GLint; param: NSOpenGLContextParameter); message 'getValues:forParameter:';
+    procedure setCurrentVirtualScreen(screen: GLint); message 'setCurrentVirtualScreen:';
+    function currentVirtualScreen: GLint; message 'currentVirtualScreen';
+    procedure createTexture_fromView_internalFormat(target: GLenum; view_: NSView; format: GLenum); message 'createTexture:fromView:internalFormat:';
+    function CGLContextObj: Pointer; message 'CGLContextObj';
+    procedure setPixelBuffer_cubeMapFace_mipMapLevel_currentVirtualScreen(pixelBuffer_: NSOpenGLPixelBuffer; face: GLenum; level: GLint; screen: GLint); message 'setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:';
+    function pixelBuffer: NSOpenGLPixelBuffer; message 'pixelBuffer';
+    function pixelBufferCubeMapFace: GLenum; message 'pixelBufferCubeMapFace';
+    function pixelBufferMipMapLevel: GLint; message 'pixelBufferMipMapLevel';
+    procedure setTextureImageToPixelBuffer_colorBuffer(pixelBuffer_: NSOpenGLPixelBuffer; source: GLenum); message 'setTextureImageToPixelBuffer:colorBuffer:';
+  end; external;
+
+{$endif}
+{$endif}

+ 75 - 0
packages/cocoaint/src/appkit/NSOpenGLView.inc

@@ -0,0 +1,75 @@
+{ Parsed from Appkit.framework NSOpenGLView.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSOPENGLVIEW_PAS_H}
+{$define NSOPENGLVIEW_PAS_H}
+type
+  NSOpenGLViewPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSOPENGLVIEW_PAS_T}
+{$define NSOPENGLVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSOPENGLVIEW_PAS_R}
+{$define NSOPENGLVIEW_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSOPENGLVIEW_PAS_F}
+{$define NSOPENGLVIEW_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSOPENGLVIEW_PAS_T}
+{$define NSOPENGLVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSOpenGLView = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSOPENGLVIEW_PAS_C}
+{$define NSOPENGLVIEW_PAS_C}
+
+{ NSOpenGLView }
+  NSOpenGLView = objcclass(NSView)
+  private
+    __openGLContext: NSOpenGLContext;
+    __pixelFormat: NSOpenGLPixelFormat;
+    __reserved1: clong;
+    __reserved2: clong;
+    __reserved3: clong;
+    
+  public
+    class function alloc: NSOpenGLView; message 'alloc';
+
+    class function defaultPixelFormat: NSOpenGLPixelFormat; message 'defaultPixelFormat';
+    function initWithFrame_pixelFormat(frameRect: NSRect; format: NSOpenGLPixelFormat): id; message 'initWithFrame:pixelFormat:';
+    procedure setOpenGLContext(context: NSOpenGLContext); message 'setOpenGLContext:';
+    function openGLContext: NSOpenGLContext; message 'openGLContext';
+    procedure clearGLContext; message 'clearGLContext';
+    procedure update; message 'update';
+    procedure reshape; message 'reshape';
+    procedure setPixelFormat(pixelFormat_: NSOpenGLPixelFormat); message 'setPixelFormat:';
+    function pixelFormat: NSOpenGLPixelFormat; message 'pixelFormat';
+    procedure prepareOpenGL; message 'prepareOpenGL';
+  end; external;
+
+{$endif}
+{$endif}

+ 79 - 0
packages/cocoaint/src/appkit/NSOpenPanel.inc

@@ -0,0 +1,79 @@
+{ Parsed from Appkit.framework NSOpenPanel.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSOPENPANEL_PAS_H}
+{$define NSOPENPANEL_PAS_H}
+type
+  NSOpenPanelPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSOPENPANEL_PAS_T}
+{$define NSOPENPANEL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSOPENPANEL_PAS_R}
+{$define NSOPENPANEL_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSOPENPANEL_PAS_F}
+{$define NSOPENPANEL_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSOPENPANEL_PAS_T}
+{$define NSOPENPANEL_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSOpenPanel = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSOPENPANEL_PAS_C}
+{$define NSOPENPANEL_PAS_C}
+
+{ NSOpenPanel }
+  NSOpenPanel = objcclass(NSSavePanel)
+  private
+    __reservedOpenPanel: char;
+    __privateOpenPanel: Pointer;
+    
+  public
+    class function alloc: NSOpenPanel; message 'alloc';
+
+    class function openPanel: NSOpenPanel; message 'openPanel';
+    function URLs: NSArray; message 'URLs';
+    function filenames: NSArray; message 'filenames';
+    function resolvesAliases: Boolean; message 'resolvesAliases';
+    procedure setResolvesAliases(flag: Boolean); message 'setResolvesAliases:';
+    function canChooseDirectories: Boolean; message 'canChooseDirectories';
+    procedure setCanChooseDirectories(flag: Boolean); message 'setCanChooseDirectories:';
+    function allowsMultipleSelection: Boolean; message 'allowsMultipleSelection';
+    procedure setAllowsMultipleSelection(flag: Boolean); message 'setAllowsMultipleSelection:';
+    function canChooseFiles: Boolean; message 'canChooseFiles';
+    procedure setCanChooseFiles(flag: Boolean); message 'setCanChooseFiles:';
+
+    { Category: NSOpenPanelRuntime }
+    procedure beginSheetForDirectory_file_types_modalForWindow_modalDelegate_didEndSelector_contextInfo(path: NSString; name: NSString; fileTypes: NSArray; docWindow: NSWindow; delegate_: id; didEndSelector: SEL; contextInfo: Pointer); message 'beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector:contextInfo:';
+    procedure beginForDirectory_file_types_modelessDelegate_didEndSelector_contextInfo(path: NSString; name: NSString; fileTypes: NSArray; delegate_: id; didEndSelector: SEL; contextInfo: Pointer); message 'beginForDirectory:file:types:modelessDelegate:didEndSelector:contextInfo:';
+    function runModalForDirectory_file_types(path: NSString; name: NSString; fileTypes: NSArray): clong; message 'runModalForDirectory:file:types:';
+    function runModalForTypes(fileTypes: NSArray): clong; message 'runModalForTypes:';
+  end; external;
+
+{$endif}
+{$endif}

+ 173 - 0
packages/cocoaint/src/appkit/NSOutlineView.inc

@@ -0,0 +1,173 @@
+{ Parsed from Appkit.framework NSOutlineView.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:01 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSOUTLINEVIEW_PAS_H}
+{$define NSOUTLINEVIEW_PAS_H}
+type
+  NSOutlineViewPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSOUTLINEVIEW_PAS_T}
+{$define NSOUTLINEVIEW_PAS_T}
+
+{ CFString constants }
+var
+  NSOutlineViewSelectionDidChangeNotification: CFStringRef; external name '_NSOutlineViewSelectionDidChangeNotification';
+  NSOutlineViewColumnDidMoveNotification: CFStringRef; external name '_NSOutlineViewColumnDidMoveNotification';
+  NSOutlineViewColumnDidResizeNotification: CFStringRef; external name '_NSOutlineViewColumnDidResizeNotification';
+  NSOutlineViewSelectionIsChangingNotification: CFStringRef; external name '_NSOutlineViewSelectionIsChangingNotification';
+  NSOutlineViewItemWillExpandNotification: CFStringRef; external name '_NSOutlineViewItemWillExpandNotification';
+  NSOutlineViewItemDidExpandNotification: CFStringRef; external name '_NSOutlineViewItemDidExpandNotification';
+  NSOutlineViewItemWillCollapseNotification: CFStringRef; external name '_NSOutlineViewItemWillCollapseNotification';
+  NSOutlineViewItemDidCollapseNotification: CFStringRef; external name '_NSOutlineViewItemDidCollapseNotification';
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSOUTLINEVIEW_PAS_R}
+{$define NSOUTLINEVIEW_PAS_R}
+
+{ Records }
+type
+  __OvFlags = record
+{$ifdef fpc_big_endian}
+    delegateWillDisplayCell: cuint;
+    delegateShouldEditTableColumn: cuint;
+    delegateShouldSelectItem: cuint;
+    delegateShouldSelectTableColumn: cuint;
+    delegateSelectionShouldChangeInOutlineView: cuint;
+    delegateShouldCollapseItem: cuint;
+    delegateShouldExpandItem: cuint;
+    autoresizesOutlineColumn: cuint;
+    autoSaveExpandItems: cuint;
+    enableExpandNotifications: cuint;
+    delegateWillDisplayOutlineCell: cuint;
+    removeChildInProgress: cuint;
+    selectionAdjustmentDisabled: cuint;
+    autoExpandFlashState: cuint;
+    compatCollapseForceClearsExpandState: cuint;
+    delegateHeightOfRowByItem: cuint;
+    delayRowEntryFreeDisabled: cuint;
+    numberOfRowsDataExpandEntered: cuint;
+    validDataSourceMethods: cuint;
+    reloadingData: cuint;
+    _reserved: cuint;
+{$else}
+    _reserved: cuint;
+    reloadingData: cuint;
+    validDataSourceMethods: cuint;
+    numberOfRowsDataExpandEntered: cuint;
+    delayRowEntryFreeDisabled: cuint;
+    delegateHeightOfRowByItem: cuint;
+    compatCollapseForceClearsExpandState: cuint;
+    autoExpandFlashState: cuint;
+    selectionAdjustmentDisabled: cuint;
+    removeChildInProgress: cuint;
+    delegateWillDisplayOutlineCell: cuint;
+    enableExpandNotifications: cuint;
+    autoSaveExpandItems: cuint;
+    autoresizesOutlineColumn: cuint;
+    delegateShouldExpandItem: cuint;
+    delegateShouldCollapseItem: cuint;
+    delegateSelectionShouldChangeInOutlineView: cuint;
+    delegateShouldSelectTableColumn: cuint;
+    delegateShouldSelectItem: cuint;
+    delegateShouldEditTableColumn: cuint;
+    delegateWillDisplayCell: cuint;
+{$endif}
+  end;
+_OVFlags = __OvFlags;
+
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSOUTLINEVIEW_PAS_F}
+{$define NSOUTLINEVIEW_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSOUTLINEVIEW_PAS_T}
+{$define NSOUTLINEVIEW_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSOutlineView = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSOUTLINEVIEW_PAS_C}
+{$define NSOUTLINEVIEW_PAS_C}
+
+{ NSOutlineView }
+  NSOutlineView = objcclass(NSTableView)
+  private
+    __numberOfRows: clong;
+    __rowEntryTree: __NSOVRowEntry;
+    __itemToEntryMap: CFMutableDictionaryRef;
+    __unused2: clong;
+    __unused3: clong;
+    __unused1: clong;
+    __outlineTableColumn: NSTableColumn;
+    __initedRows: Boolean;
+    __indentationMarkerInCell: Boolean;
+    __indentationPerLevel: clong;
+    __outlineCell: NSButtonCell;
+    __trackingOutlineFrame: NSRect;
+    __tracker: NSMouseTracker;
+    __unused4: id;
+    __ovFlags: _OVFlags;
+    __ovLock: id;
+    __indentArray: clong;
+    __originalWidth: clong;
+    __expandSet: id;
+    __expandSetToExpandItemsInto: id;
+    __indentArraySize: clong;
+    __trackingOutlineCell: NSButtonCell;
+    __trackingRow: clong;
+    __ovReserved: id;
+    
+  public
+    class function alloc: NSOutlineView; message 'alloc';
+
+    procedure setOutlineTableColumn(outlineTableColumn_: NSTableColumn); message 'setOutlineTableColumn:';
+    function outlineTableColumn: NSTableColumn; message 'outlineTableColumn';
+    function isExpandable(item: id): Boolean; message 'isExpandable:';
+    procedure expandItem_expandChildren(item: id; expandChildren: Boolean); message 'expandItem:expandChildren:';
+    procedure expandItem(item: id); message 'expandItem:';
+    procedure collapseItem_collapseChildren(item: id; collapseChildren: Boolean); message 'collapseItem:collapseChildren:';
+    procedure collapseItem(item: id); message 'collapseItem:';
+    procedure reloadItem_reloadChildren(item: id; reloadChildren: Boolean); message 'reloadItem:reloadChildren:';
+    procedure reloadItem(item: id); message 'reloadItem:';
+    function parentForItem(item: id): id; message 'parentForItem:';
+    function itemAtRow(row: clong): id; message 'itemAtRow:';
+    function rowForItem(item: id): clong; message 'rowForItem:';
+    function levelForItem(item: id): clong; message 'levelForItem:';
+    function levelForRow(row: clong): clong; message 'levelForRow:';
+    function isItemExpanded(item: id): Boolean; message 'isItemExpanded:';
+    procedure setIndentationPerLevel(indentationPerLevel_: CGFloat); message 'setIndentationPerLevel:';
+    function indentationPerLevel: CGFloat; message 'indentationPerLevel';
+    procedure setIndentationMarkerFollowsCell(drawInCell: Boolean); message 'setIndentationMarkerFollowsCell:';
+    function indentationMarkerFollowsCell: Boolean; message 'indentationMarkerFollowsCell';
+    procedure setAutoresizesOutlineColumn(resize: Boolean); message 'setAutoresizesOutlineColumn:';
+    function autoresizesOutlineColumn: Boolean; message 'autoresizesOutlineColumn';
+    function frameOfOutlineCellAtRow(row: clong): NSRect; message 'frameOfOutlineCellAtRow:';
+    procedure setDropItem_dropChildIndex(item: id; index: clong); message 'setDropItem:dropChildIndex:';
+    function shouldCollapseAutoExpandedItemsForDeposited(deposited: Boolean): Boolean; message 'shouldCollapseAutoExpandedItemsForDeposited:';
+    function autosaveExpandedItems: Boolean; message 'autosaveExpandedItems';
+    procedure setAutosaveExpandedItems(save: Boolean); message 'setAutosaveExpandedItems:';
+  end; external;
+
+{$endif}
+{$endif}

+ 71 - 0
packages/cocoaint/src/appkit/NSPDFImageRep.inc

@@ -0,0 +1,71 @@
+{ Parsed from Appkit.framework NSPDFImageRep.h }
+{ Version FrameworkParser: 1.3. PasCocoa 0.3, Objective-P 0.2 - Tue Sep 8 15:31:02 ICT 2009 }
+
+{$ifdef HEADER}
+{$ifndef NSPDFIMAGEREP_PAS_H}
+{$define NSPDFIMAGEREP_PAS_H}
+type
+  NSPDFImageRepPointer = Pointer;
+
+{$endif}
+{$endif}
+
+{$ifdef TYPES}
+{$ifndef NSPDFIMAGEREP_PAS_T}
+{$define NSPDFIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef RECORDS}
+{$ifndef NSPDFIMAGEREP_PAS_R}
+{$define NSPDFIMAGEREP_PAS_R}
+
+{$endif}
+{$endif}
+
+{$ifdef FUNCTIONS}
+{$ifndef NSPDFIMAGEREP_PAS_F}
+{$define NSPDFIMAGEREP_PAS_F}
+
+{$endif}
+{$endif}
+
+{$ifdef EXTERNAL_SYMBOLS}
+{$ifndef NSPDFIMAGEREP_PAS_T}
+{$define NSPDFIMAGEREP_PAS_T}
+
+{$endif}
+{$endif}
+
+{$ifdef FORWARD}
+  NSPDFImageRep = objcclass;
+
+{$endif}
+
+{$ifdef CLASSES}
+{$ifndef NSPDFIMAGEREP_PAS_C}
+{$define NSPDFIMAGEREP_PAS_C}
+
+{ NSPDFImageRep }
+  NSPDFImageRep = objcclass(NSImageRep)
+  private
+    __pdfData: NSData;
+    __reserved1: cint;
+    __reserved2: cint;
+    __private: id;
+    
+  public
+    class function alloc: NSPDFImageRep; message 'alloc';
+
+    class function imageRepWithData(pdfData: NSData): id; message 'imageRepWithData:';
+    function initWithData(pdfData: NSData): id; message 'initWithData:';
+    function PDFRepresentation: NSData; message 'PDFRepresentation';
+    function bounds: NSRect; message 'bounds';
+    procedure setCurrentPage(page: clong); message 'setCurrentPage:';
+    function currentPage: clong; message 'currentPage';
+    function pageCount: clong; message 'pageCount';
+  end; external;
+
+{$endif}
+{$endif}

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott