Improve type handling for enums. Handle "__kindof" qualifiers.
Add examples/app. Allow VisibilityAttr "Hidden".
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"gitlab.wow.st/gmp/nswrap/examples/app/ns"
|
||||
)
|
||||
|
||||
func main() {
|
||||
a := ns.NSApplicationSharedApplication()
|
||||
a.SetActivationPolicy(ns.NSApplicationActivationPolicyRegular)
|
||||
//w := ns.NSWindowAlloc()
|
||||
w := ns.NSWindowAlloc().InitWithContentRect(
|
||||
ns.NSMakeRect(200,200,600,600),
|
||||
ns.NSWindowStyleMaskTitled,
|
||||
ns.NSBackingStoreBuffered,
|
||||
0,
|
||||
nil,
|
||||
)
|
||||
w.SetTitle(ns.NSStringWithGoString("Hi World"))
|
||||
w.MakeKeyAndOrderFront(w)
|
||||
a.Run()
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
InputFiles = [
|
||||
"/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h",
|
||||
"/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h",
|
||||
]
|
||||
Classes = [
|
||||
"NSArray",
|
||||
"NSMutableArray",
|
||||
"NSDictionary",
|
||||
"NSEnumerator",
|
||||
"NSSet",
|
||||
"NSDate",
|
||||
"NSTimeZone",
|
||||
"NSCalendar",
|
||||
"NSLocale",
|
||||
"NSCharacterSet",
|
||||
"NSString",
|
||||
"NSScanner",
|
||||
"NSFileManager",
|
||||
"NSApplication",
|
||||
"NSBundle",
|
||||
"NSApp",
|
||||
"NSWindow",
|
||||
"NSScreen",
|
||||
"NSEvent",
|
||||
"NSResponder",
|
||||
]
|
||||
Functions = [
|
||||
"NSApplicationMain",
|
||||
"NSMake.*",
|
||||
]
|
||||
Enums = [
|
||||
"CF.*",
|
||||
"NSApplication.*",
|
||||
"NSBackingStore.*",
|
||||
"NSWindowStyleMask.*",
|
||||
]
|
||||
Frameworks = [ "Foundation", "AppKit", "CoreGraphics" ]
|
||||
Pragma = [ 'clang diagnostic ignored "-Wformat-security"' ]
|
||||
VaArgs = 32
|
||||
Reference in New Issue
Block a user