Removed objc_msgSend_rect_uint_uint_bool().

This commit is contained in:
Pietro Gagliardi 2014-04-04 19:14:03 -04:00
parent 461b0cc023
commit dd4a7b9cbe
4 changed files with 6 additions and 12 deletions

View File

@ -113,7 +113,7 @@ id objc_msgSend_rect_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int6
return objc_msgSend(obj, sel, OurRect(), b);
}
id _objc_msgSend_rect_uint_uint_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, uintptr_t b, uintptr_t c, BOOL d)
id objc_msgSend_rect_uint_uint_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, uintptr_t b, uintptr_t c, BOOL d)
{
return objc_msgSend(obj, sel, OurRect(), (NSUInteger) b, (NSUInteger) c, d);
}

View File

@ -65,9 +65,3 @@ func objc_msgSend_rect(obj C.id, sel C.SEL, x int, y int, w int, h int) C.id {
return C._objc_msgSend_rect(obj, sel,
C.int64_t(x), C.int64_t(y), C.int64_t(w), C.int64_t(h))
}
func objc_msgSend_rect_uint_uint_bool(obj C.id, sel C.SEL, x int, y int, w int, h int, b uintptr, c uintptr, d C.BOOL) C.id {
return C._objc_msgSend_rect_uint_uint_bool(obj, sel,
C.int64_t(x), C.int64_t(y), C.int64_t(w), C.int64_t(h),
C.uintptr_t(b), C.uintptr_t(c), d)
}

View File

@ -102,7 +102,7 @@ extern id objc_msgSend_point(id obj, SEL sel, int64_t x, int64_t y);
m3(id_id_id, id, id, id)
m3(sel_id_bool, SEL, id, BOOL)
extern id _objc_msgSend_rect_uint_uint_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, uintptr_t b, uintptr_t c, BOOL d);
extern id objc_msgSend_rect_uint_uint_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, uintptr_t b, uintptr_t c, BOOL d);
m4(id_sel_id_id, id, SEL, id, id)
m4(id_id_id_id, id, id, id, id)

View File

@ -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