diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-04 20:34:35 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-04 20:34:35 -0400 |
| commit | e35457b9684f23657e12832266bff477eb55a2ad (patch) | |
| tree | 2a16c213dd8d88ef4e0e14e481ceb4f2dcfdc80b /area_darwin.go | |
| parent | 5a5b486b6abd568d80150d36ed85746b445bf2fb (diff) | |
Removed objc_alloc(). This should be all of them. Now to redo how classes are handled...
Diffstat (limited to 'area_darwin.go')
| -rw-r--r-- | area_darwin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/area_darwin.go b/area_darwin.go index 36156e9..45675b9 100644 --- a/area_darwin.go +++ b/area_darwin.go @@ -277,7 +277,7 @@ func areaView_flagsChanged(self C.id, sel C.SEL, e C.id) { // TODO combine these with the listbox functions? func newAreaScrollView(area C.id) C.id { - scrollview := objc_alloc(_NSScrollView) + scrollview := C.objc_msgSend_noargs(_NSScrollView, _alloc) scrollview = initWithDummyFrame(scrollview) C.objc_msgSend_bool(scrollview, _setHasHorizontalScroller, C.BOOL(C.YES)) C.objc_msgSend_bool(scrollview, _setHasVerticalScroller, C.BOOL(C.YES)) @@ -291,7 +291,7 @@ func areaInScrollView(scrollview C.id) C.id { } func makeArea(parentWindow C.id, alternate bool) C.id { - area := objc_alloc(_goArea) + area := C.objc_msgSend_noargs(_goArea, _alloc) area = initWithDummyFrame(area) // TODO others? area = newAreaScrollView(area) |
