Updated the Area drawRect: adding error message to look like the ones that come out of the new class system.
This commit is contained in:
parent
7ea493873c
commit
8c109a0ae9
|
@ -75,7 +75,7 @@ func mkAreaClass() error {
|
||||||
// addAreaViewDrawMethod() is in bleh_darwin.m
|
// addAreaViewDrawMethod() is in bleh_darwin.m
|
||||||
ok := C.addAreaViewDrawMethod(class)
|
ok := C.addAreaViewDrawMethod(class)
|
||||||
if ok != C.BOOL(C.YES) {
|
if ok != C.BOOL(C.YES) {
|
||||||
return fmt.Errorf("error overriding Area drawRect: method; reason unknown")
|
return fmt.Errorf("unable to add selector drawRect: to class %s (needed for actually drawing Areas; reason unknown)", __goArea)
|
||||||
}
|
}
|
||||||
_goArea = id
|
_goArea = id
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue