Some error message and TODO changes related to the previous commit.
This commit is contained in:
parent
0709351fed
commit
859c240a21
1
todo.md
1
todo.md
|
@ -26,7 +26,6 @@ important things:
|
||||||
- ui.Go() should exit when the main() you pass in exits
|
- ui.Go() should exit when the main() you pass in exits
|
||||||
- because the main event loop is not called if initialization fails, it is presently impossible for MsgBoxError() to work if UI initialization fails; this basically means we cannot allow initializiation to fail on Mac OS X if we want to be able to report UI init failures to the user with one
|
- because the main event loop is not called if initialization fails, it is presently impossible for MsgBoxError() to work if UI initialization fails; this basically means we cannot allow initializiation to fail on Mac OS X if we want to be able to report UI init failures to the user with one
|
||||||
- Cocoa coordinates have (0,0) at the bottom left: need to fix this somehow
|
- Cocoa coordinates have (0,0) at the bottom left: need to fix this somehow
|
||||||
- Cocoa windows cannot be live-resized
|
|
||||||
- there's no GTK+ error handling whatsoever; we need to figure out how it works
|
- there's no GTK+ error handling whatsoever; we need to figure out how it works
|
||||||
- make sure GTK+ documentation point differences don't matter
|
- make sure GTK+ documentation point differences don't matter
|
||||||
- button sizes and LineEdit sizes on Windows seem too big; Comboboxes have margins
|
- button sizes and LineEdit sizes on Windows seem too big; Comboboxes have margins
|
||||||
|
|
|
@ -75,9 +75,10 @@ func initCocoa() (NSApp C.id, err error) {
|
||||||
r := C.objc_msgSend_int(NSApp, _setActivationPolicy,
|
r := C.objc_msgSend_int(NSApp, _setActivationPolicy,
|
||||||
0) // NSApplicationActivationPolicyRegular
|
0) // NSApplicationActivationPolicyRegular
|
||||||
if C.BOOL(uintptr(unsafe.Pointer(r))) != C.BOOL(C.YES) {
|
if C.BOOL(uintptr(unsafe.Pointer(r))) != C.BOOL(C.YES) {
|
||||||
err = fmt.Errorf("error setting NSApplication activation policy (basically identifies our program as a separate program; needed for several things, such as Dock icon, menu, window resizing, etc.) (unknown reason)")
|
err = fmt.Errorf("error setting NSApplication activation policy (basically identifies our program as a separate program; needed for several things, such as Dock icon, application menu, window resizing, etc.) (unknown reason)")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// TODO we need to call [NSApp activateIgnoringOtherApps:YES] here when we are ready to have the program become active (for now I won't)
|
||||||
err = mkAppDelegate()
|
err = mkAppDelegate()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue