Add autorelease helpers.
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"gitlab.wow.st/gmp/nswrap/examples/app/ns"
|
||||
)
|
||||
|
||||
func nsmgr() {
|
||||
func app() {
|
||||
//Lock OS thread because Cocoa uses thread-local storage
|
||||
runtime.LockOSThread()
|
||||
a := ns.NSApplicationSharedApplication()
|
||||
@@ -50,7 +50,7 @@ func nsmgr() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
go nsmgr()
|
||||
go ns.Autorelease(app)
|
||||
select { }
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@ inputfiles:
|
||||
- /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h
|
||||
|
||||
classes:
|
||||
- NSArray"
|
||||
- NSAutoreleasePool
|
||||
- NSArray
|
||||
- NSMutableArray
|
||||
- NSDictionary
|
||||
- NSEnumerator
|
||||
|
||||
Reference in New Issue
Block a user