diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-04 19:14:03 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-04 19:14:03 -0400 |
| commit | dd4a7b9cbef10d5469aa6660286dcecfde9a6ad2 (patch) | |
| tree | 35f9aaa0aca71ac481b2411aa016b829f2ce941b /sysdata_darwin.go | |
| parent | 461b0cc023f7297e8cb77e0aa2707cf6e4494e87 (diff) | |
Removed objc_msgSend_rect_uint_uint_bool().
Diffstat (limited to 'sysdata_darwin.go')
| -rw-r--r-- | sysdata_darwin.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go index 427f2f1..ce23348 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -111,11 +111,11 @@ var classTypes = [nctypes]*classData{ // we have to specify a content rect to start; it will be overridden soon though win := objc_alloc(_NSWindow) - win = objc_msgSend_rect_uint_uint_bool(win, + win = C.objc_msgSend_rect_uint_uint_bool(win, _initWithContentRect, - 0, 0, 100, 100, - NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask, - 2, // NSBackingStoreBuffered - the only backing store method that Apple says we should use (the others are legacy) + C.int64_t(0), C.int64_t(0), C.int64_t(100), C.int64_t(100), + C.uintptr_t(NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask), + C.uintptr_t(2), // NSBackingStoreBuffered - the only backing store method that Apple says we should use (the others are legacy) C.BOOL(C.YES)) // defer creation of device until we show the window C.objc_msgSend_id(win, _setDelegate, appDelegate) // this is needed for Areas in the window to receive mouse move events |
