|
Re: Show splash screen before finished launching?
I come here looking for a simple solution, and you try to make me THINK? That’s hardly fair. :-)
I managed to move some work onto a different thread, and fix a place where my main thread was
I come here looking for a simple solution, and you try to make me THINK? That’s hardly fair. :-)
I managed to move some work onto a different thread, and fix a place where my main thread was
|
By
James Walker
·
#687
·
|
|
Re: Show splash screen before finished launching?
Coming at this from the other side, why does it take enough seconds to get from willFinishLaunching to didFinishLaunching that you care? If you can reduce that time a bit, maybe you don’t have to
Coming at this from the other side, why does it take enough seconds to get from willFinishLaunching to didFinishLaunching that you care? If you can reduce that time a bit, maybe you don’t have to
|
By
Quincey Morris
·
#686
·
|
|
Re: Show splash screen before finished launching?
I wondered about that myself, and logged out the values of [NSRunloop currentRunLoop] and [NSRunloop mainRunLoop]. They showed the same non-nil value.
I wondered about that myself, and logged out the values of [NSRunloop currentRunLoop] and [NSRunloop mainRunLoop]. They showed the same non-nil value.
|
By
James Walker
·
#685
·
|
|
Re: Show splash screen before finished launching?
Hmph - now that you mention it, there's no current runloop at that point - the app is still launching. So [NSRunloop currentRunLoop] is probably returning nil. You could grabbing mainRunLoop and
Hmph - now that you mention it, there's no current runloop at that point - the app is still launching. So [NSRunloop currentRunLoop] is probably returning nil. You could grabbing mainRunLoop and
|
By
Jon Gotow
·
#684
·
|
|
Re: Show splash screen before finished launching?
Tried that, no change.
By
James Walker
·
#683
·
|
|
Re: Show splash screen before finished launching?
Try putting this after your orderFront call:
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]];
The runloop basically has to do at least one iteration before the
Try putting this after your orderFront call:
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]];
The runloop basically has to do at least one iteration before the
|
By
Jon Gotow
·
#682
·
|
|
Re: dispatch_get_current_queue
Yes, I noticed just after I sent it but it might be helpful to someone else. I apologize to the group for the hasty post.
--
Frederick "Rick" Bartram
bartramf@...
PGP key id: 0x4193BED2 key server:
Yes, I noticed just after I sent it but it might be helpful to someone else. I apologize to the group for the hasty post.
--
Frederick "Rick" Bartram
bartramf@...
PGP key id: 0x4193BED2 key server:
|
By
bartramf@...
·
#681
·
|
|
Show splash screen before finished launching?
I’m trying to show a splash screen in applicationWillFInishLaunching:, but it doesn’t actually appear until applicationDidFinishLaunching: seconds later. I’ve done all I can think of to make it
I’m trying to show a splash screen in applicationWillFInishLaunching:, but it doesn’t actually appear until applicationDidFinishLaunching: seconds later. I’ve done all I can think of to make it
|
By
James Walker
·
#680
·
|
|
Mojave Privileged Helper Tool - full disk access?
Hi Folks,
I have an app with a privileged helper tool which needs full disk access in 10.14 Mojave.
The privileged helper tool is (as you'd expect) a binary rather than an app bundle, so it's not
Hi Folks,
I have an app with a privileged helper tool which needs full disk access in 10.14 Mojave.
The privileged helper tool is (as you'd expect) a binary rather than an app bundle, so it's not
|
By
Mark Allan
·
#679
·
|
|
Re: dispatch_get_current_queue
That may be Swift-only … it doesn't show up in the 10.14 SDK headers. (Gerriet is using Obj-C, as indicated by his code snippet.)
—Jens
That may be Swift-only … it doesn't show up in the 10.14 SDK headers. (Gerriet is using Obj-C, as indicated by his code snippet.)
—Jens
|
By
Jens Alfke
·
#678
·
|
|
Re: dispatch_get_current_queue
Take a look at `dispatchPrecondition` to test whether code is executing on a specific queue in a pattern like:
func foo() {
dispatchPrecondition(condition: .onQueue(mySpecialQueue))
...
}
Hope
Take a look at `dispatchPrecondition` to test whether code is executing on a specific queue in a pattern like:
func foo() {
dispatchPrecondition(condition: .onQueue(mySpecialQueue))
...
}
Hope
|
By
bartramf@...
·
#677
·
|
|
Re: dispatch_get_current_queue
Thanks a lot. Exactly what I was looking for.
(Also: The variant dispatch_assert_queue_debug() is compiled out when the preprocessor macro NDEBUG is defined.)
Kind regards,
Gerriet.
Thanks a lot. Exactly what I was looking for.
(Also: The variant dispatch_assert_queue_debug() is compiled out when the preprocessor macro NDEBUG is defined.)
Kind regards,
Gerriet.
|
By
Gerriet M. Denkmann
·
#676
·
|
|
Re: dispatch_get_current_queue
Comments in the header dispatch/queue.h suggest using dispatch_assert_queue instead.
Comments in the header dispatch/queue.h suggest using dispatch_assert_queue instead.
|
By
James Walker
·
#675
·
|
|
dispatch_get_current_queue
macOS 13.6
For debugging purposes I want to test that certain methods do run in the correct queue.
So:
dispatch_queue_t queue = dispatch_get_current_queue();
const char *label =
macOS 13.6
For debugging purposes I want to test that certain methods do run in the correct queue.
So:
dispatch_queue_t queue = dispatch_get_current_queue();
const char *label =
|
By
Gerriet M. Denkmann
·
#674
·
|
|
Re: How to get App Icon
Well, it does.
So if yours does not, rather than go round the houses trying to figure out how to “correct” for that, why not find out why yours isn’t doing what the rest of our apps does do?
Well, it does.
So if yours does not, rather than go round the houses trying to figure out how to “correct” for that, why not find out why yours isn’t doing what the rest of our apps does do?
|
By
Graham Cox
·
#673
·
|
|
Re: How to get App Icon
Sounds good to me. :)
By
Quincey Morris
·
#672
·
|
|
Re: How to get App Icon
Are you using an assets file (xcassets) for your app icon? If you make an icon asset in an xcassets file it should contain a slot for that icon at all sizes.
Are you using an assets file (xcassets) for your app icon? If you make an icon asset in an xcassets file it should contain a slot for that icon at all sizes.
|
By
Alex Zavatone
·
#671
·
|
|
Re: How to get App Icon
There also should be a special size for the small alert icon within your app’s icon xcassets file.
There also should be a special size for the small alert icon within your app’s icon xcassets file.
|
By
Alex Zavatone
·
#670
·
|
|
Re: How to get App Icon
I failed to find this. Probably missed something obvious.
But I stumbled upon:
NSRunningApplication *currentApplication = NSRunningApplication.currentApplication;
NSImage *myAppImage =
I failed to find this. Probably missed something obvious.
But I stumbled upon:
NSRunningApplication *currentApplication = NSRunningApplication.currentApplication;
NSImage *myAppImage =
|
By
Gerriet M. Denkmann
·
#669
·
|
|
Re: How to get App Icon
Yes it should. Also: the documentation says, it does. But sadly it does not.
Yes it should. Also: the documentation says, it does. But sadly it does not.
|
By
Gerriet M. Denkmann
·
#668
·
|