Comments (13)
Thanks :) Yes, I'm guessing it's that the application's activation policy has already been set (that's the only Cocoa startup routine that returns an error status); I'll look into it.
To make a valid .app bundle, do I just need to drop the binary in Contents/MacOS, or do I need to have some plist files as well?
from ui.
You need a plist. Here's some info I had some success with:
http://stackoverflow.com/questions/1596945/building-osx-app-bundle
from ui.
Can you please send me your plist or whole app bundle structure? I can't get a working bundle based on the given link. Thanks.
from ui.
Cheers.
On 23 June 2014 11:19, Pietro Gagliardi [email protected] wrote:
Can you please send me your plist or whole app bundle structure? I can't
get a working bundle based on the given link. Thanks.—
Reply to this email directly or view it on GitHub
#6 (comment).
Richard Warburton - MSc(Hons), PGDipSci, BE(Hons) -
http://richard.warburton.it/
+642-176-5837 - PO Box 56710, Dominion Road, Auckland 1446, New Zealand
from ui.
Actually better idea: can you try building the redo/ folder test binary (go test -c
) and seeing if that will work? (Don't close the issue if it does; I'm going to follow up with a patch to paply to see if it stops working.)
from ui.
Yeah, I'm currently hitting:
$ go get -u github.com/andlabs/ui
github.com/andlabs/ui
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x15672]
goroutine 16 [running]:
runtime.panic(0x1dae60, 0x31a9e4)
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
main.(_typeConv).Type(0x20837c2c0, 0x220837f5c0, 0x208414720, 0x1ecf,
0x208498c01)
/usr/local/go/src/cmd/cgo/gcc.go:1288 +0x1632
main.(_typeConv).Type(0x20837c2c0, 0x220837f550, 0x208414630, 0x1ecf, 0x1)
/usr/local/go/src/cmd/cgo/gcc.go:1189 +0x3dd6
main.(*typeConv).Type(0x20837c2c0, 0x220837f728, 0x208454600, 0x1ecf, 0x0)
Which may be related to https://code.google.com/p/go/issues/detail?id=8238
?
Happy to upgrade to tip, but the issue does not appear to be fixed.
Thoughts?
On 3 August 2014 04:49, Pietro Gagliardi [email protected] wrote:
Actually better idea: can you try building the redo/ folder test binary (go
test -c) and seeing if that will work? (Don't close the issue if it does;
I'm going to follow up with a patch to paply to see if it stops working.)—
Reply to this email directly or view it on GitHub
#6 (comment).
Richard Warburton - MSc(Hons), PGDipSci, BE(Hons) -
http://richard.warburton.it/
+642-176-5837 - PO Box 56710, Dominion Road, Auckland 1446, New Zealand
from ui.
that IS issue 8238, buh... do the "Try changing that line to do nothing if there is no entry in the typedef map and see what happens." Ian recommended there
this is a great breaking issue but the redo likely won't be finished for 1.3.1 I know that much so by that time it won't really be an issue anymore
from ui.
Ok, it works fine.
Cheers.
On 4 August 2014 16:22, Pietro Gagliardi [email protected] wrote:
that IS issue 8238, buh... do the "Try changing that line to do nothing if
there is no entry in the typedef map and see what happens." Ian recommended
therethis is a great breaking issue but the redo likely won't be finished for
1.3.1 I know that much so by that time it won't really be an issue anymore—
Reply to this email directly or view it on GitHub
#6 (comment).
Richard Warburton - MSc(Hons), PGDipSci, BE(Hons) -
http://richard.warburton.it/
+642-176-5837 - PO Box 56710, Dominion Road, Auckland 1446, New Zealand
from ui.
All right. Now does it break when you change
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
in uitask_darwin.m to
NSLog(@"current activation policy: %d", [NSApp activationPolicy]);
if ([NSApp setActivationPolicy:NSApplicationActivationPolicyRegular] == NO) {
NSLog(@"fail"); return NO;
}
NSLog(@"success");
? What does it print?
from ui.
It didn't break, window appeared, however:
5/08/14 11:21:14.890 test[49977]: fail
Cheers.
On 4 August 2014 19:09, Pietro Gagliardi [email protected] wrote:
All right. Now does it break when you change
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
in uitask_darwin.m to
NSLog(@"current activation policy: %d", [NSApp activationPolicy]); if ([NSApp setActivationPolicy:NSApplicationActivationPolicyRegular] == NO) { NSLog(@"fail"); return NO; } NSLog(@"success");
? What does it print?
—
Reply to this email directly or view it on GitHub
#6 (comment).
Richard Warburton - MSc(Hons), PGDipSci, BE(Hons) -
http://richard.warburton.it/
+642-176-5837 - PO Box 56710, Dominion Road, Auckland 1446, New Zealand
from ui.
What did the current activation policy line say?
What do you see if you runt he binary outside of the app bundle instead?
from ui.
5/08/14 11:21:14.890 test[49977]: current activation policy: 0
5/08/14 11:21:14.890 test[49977]: fail
For both inside and outside the app bundle.
On 5 August 2014 13:56, Pietro Gagliardi [email protected] wrote:
What did the current activation policy line say?
What do you see if you runt he binary outside of the app bundle instead?
—
Reply to this email directly or view it on GitHub
#6 (comment).
Richard Warburton - MSc(Hons), PGDipSci, BE(Hons) -
http://richard.warburton.it/
+642-176-5837 - PO Box 56710, Dominion Road, Auckland 1446, New Zealand
from ui.
Then I have absolutely no idea what's going on here. I'm going to assume NSApplication won't allow changing the activation policy to something else when the application is in an app bundle, even if the policy is the same! (0 is the regular activation policy indicating regular apps; this is what we want.)
I'll strip the error checking from the init code. It'll apply to the redo folder only for now.
Thanks again, and sorry for the delays/questions.
from ui.
Related Issues (20)
- 希望能加入菜单和居中功能,谢谢 HOT 5
- Twitching progress bar HOT 2
- use go module
- Can you create Window center func ? HOT 1
- 有2个问题需要帮助/Two questions ask for help HOT 3
- Add Linux/ARM64 support to ‘andlabs/ui’
- how to add a new row to a table?
- Open file dialog crashes HOT 1
- ld: library not found for -lstdc++ HOT 2
- How can we fix windows size ? HOT 2
- How to remove a row from table properly HOT 1
- Avoid cgo HOT 2
- Cross-compilation on Linux for Windows HOT 1
- System notification message
- Reopen a closed window
- Is this project still alive? HOT 2
- collect2.exe: error: ld returned 1 exit status
- Win10下gocv+andlabs/ui同时使用出现以下错误
- possible to use ui load a webview to load html/js/css or remote url as ui HOT 1
- 如何在ui中嵌入式一个浏览器窗口
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui.