{"action":"opened","issue":{"url":"https://api.github.com/repos/ochafik/JNAerator/issues/59","labels_url":"https://api.github.com/repos/ochafik/JNAerator/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/ochafik/JNAerator/issues/59/comments","events_url":"https://api.github.com/repos/ochafik/JNAerator/issues/59/events","html_url":"https://github.com/ochafik/JNAerator/issues/59","id":62647421,"number":59,"title":"Generating Objective-C bindings ignores headers","user":{"login":"ochafik","id":273860,"avatar_url":"https://avatars.githubusercontent.com/u/273860?v=3","gravatar_id":"","url":"https://api.github.com/users/ochafik","html_url":"https://github.com/ochafik","followers_url":"https://api.github.com/users/ochafik/followers","following_url":"https://api.github.com/users/ochafik/following{/other_user}","gists_url":"https://api.github.com/users/ochafik/gists{/gist_id}","starred_url":"https://api.github.com/users/ochafik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ochafik/subscriptions","organizations_url":"https://api.github.com/users/ochafik/orgs","repos_url":"https://api.github.com/users/ochafik/repos","events_url":"https://api.github.com/users/ochafik/events{/privacy}","received_events_url":"https://api.github.com/users/ochafik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ochafik/JNAerator/labels/JNAerator","name":"JNAerator","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T10:09:08Z","updated_at":"2015-03-18T10:09:08Z","closed_at":null,"body":"_From @jehrhardt on February 28, 2014 8:14_\n\nI tried the [example from the wiki](https://code.google.com/p/jnaerator/wiki/ObjectiveC) to generate AppKit bindings with JNAerator:\r\n\r\n```sh\r\njava -Xmx1000m -jar jnaerator.jar -mode Directory -framework Foundation -framework AppKit\r\n```\r\n\r\nBut the directory appkit contains only one class with the following content:\r\n\r\n```java\r\npackage appkit;\r\nimport org.bridj.BridJ;\r\nimport org.bridj.CRuntime;\r\nimport org.bridj.ann.Library;\r\nimport org.bridj.ann.Runtime;\r\n/**\r\n * Wrapper for library <b>AppKit</b><br>\r\n * This file was autogenerated by <a href=\"http://jnaerator.googlecode.com/\">JNAerator</a>,<br>\r\n * a tool written by <a href=\"http://ochafik.com/\">Olivier Chafik</a> that <a href=\"http://code.google.com/p/jnaerator/wiki/CreditsAndLicense\">uses a few opensource projects.</a>.<br>\r\n * For help, please visit <a href=\"http://nativelibs4java.googlecode.com/\">NativeLibs4Java</a> or <a href=\"http://bridj.googlecode.com/\">BridJ</a> .\r\n */\r\n@Library(\"AppKit\") \r\n@Runtime(CRuntime.class) \r\npublic class AppKitLibrary {\r\n\tstatic {\r\n\t\tBridJ.register();\r\n\t}\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSColor.h</i> */\r\n\tpublic static final double NSAppKitVersionNumberWithPatternColorLeakFix = (double)641.0;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSSearchFieldCell.h</i> */\r\n\tpublic static final int NSSearchFieldRecentsTitleMenuItemTag = (int)1000;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSSimpleHorizontalTypesetter.h</i> */\r\n\tpublic static final double NSBaselineNotSet = (double)-1.0;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSSimpleHorizontalTypesetter.h</i> */\r\n\tpublic static final int NumGlyphsToGetEachTime = (int)20;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSStatusBar.h</i> */\r\n\tpublic static final int NSVariableStatusItemLength = (int)(-1);\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSDockTile.h</i> */\r\n\tpublic static final double NSAppKitVersionNumberWithDockTilePlugInSupport = (double)1001.0;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_7_2 = (double)1138.23;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_7_4 = (double)1138.47;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_7_3 = (double)1138.32;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSSearchFieldCell.h</i> */\r\n\tpublic static final int NSSearchFieldNoRecentsMenuItemTag = (int)1003;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_5_3 = (double)949.33;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_5_2 = (double)949.27;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSBrowser.h</i> */\r\n\tpublic static final double NSAppKitVersionNumberWithContinuousScrollingBrowser = (double)680.0;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSSearchFieldCell.h</i> */\r\n\tpublic static final int NSSearchFieldRecentsMenuItemTag = (int)1001;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_4_3 = (double)824.23;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_4_1 = (double)824.1;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_4_7 = (double)824.41;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_4_4 = (double)824.33;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_3_9 = (double)743.36;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_3_5 = (double)743.24;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_3_7 = (double)743.33;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_3_2 = (double)743.14;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_3_3 = (double)743.2;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final double NSAppKitVersionNumber10_2_3 = (double)663.6;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final int NSAppKitVersionNumber10_0 = (int)577;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final int NSAppKitVersionNumber10_5 = (int)949;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final int NSAppKitVersionNumber10_6 = (int)1038;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final int NSAppKitVersionNumber10_7 = (int)1138;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final int NSAppKitVersionNumber10_8 = (int)1187;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final int NSAppKitVersionNumber10_1 = (int)620;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final int NSAppKitVersionNumber10_2 = (int)663;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final int NSAppKitVersionNumber10_3 = (int)743;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h</i> */\r\n\tpublic static final int NSAppKitVersionNumber10_4 = (int)824;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSTabView.h</i> */\r\n\tpublic static final double NSAppKitVersionNumberWithDirectionalTabs = (double)631.0;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSBrowser.h</i> */\r\n\tpublic static final double NSAppKitVersionNumberWithColumnResizingBrowser = (double)685.0;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSStatusBar.h</i> */\r\n\tpublic static final int NSSquareStatusItemLength = (int)(-2);\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSCursor.h</i> */\r\n\tpublic static final double NSAppKitVersionNumberWithCursorSizeSupport = (double)682.0;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h</i> */\r\n\tpublic static final double NSAppKitVersionNumberWithDeferredWindowDisplaySupport = (double)1019.0;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSSearchFieldCell.h</i> */\r\n\tpublic static final int NSSearchFieldClearRecentsMenuItemTag = (int)1002;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h</i> */\r\n\tpublic static final int NSOPENGL_CURRENT_VERSION = (int)1;\r\n\t/** <i>native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h</i> */\r\n\tpublic static final double NSAppKitVersionNumberWithCustomSheetPosition = (double)686.0;\r\n}\r\n```\r\n\r\nThe result looks incomplete, since no Java classes are generated for the Objective-C headers.\r\n\r\nI am using the [latest snapshot](https://code.google.com/p/jnaerator/downloads/detail?name=jnaerator-0.12-SNAPSHOT-20130727.jar) with Oracle's Java on Mac OS X 10.9.2:\r\n\r\n```sh\r\n➜ java -version\r\njava version \"1.7.0_51\"\r\nJava(TM) SE Runtime Environment (build 1.7.0_51-b13)\r\nJava HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)\r\n```\r\n\r\nAny idea, why this happens? I can also help fixing this.\n\n_Copied from original issue: ochafik/nativelibs4java#478_"}}