Re: Catalina scroll view issues

2019-12-19 Thread Georg Seifert via Cocoa-dev
I read most of the discussion but maybe missed some parts so it might repeat something or miss the point altogether. How big is your view. I had a lot problems with a big view and layer backing. It will use tiled layers as a layer can only be a few thousand pixels tall. And when you do any che

Check if there are autosaved documents

2020-04-27 Thread Georg Seifert via Cocoa-dev
Hi, my app shows a welcome screen (that offers to open recent documents or to make a new). I like to not show it, when there are autosaved documents that open automatically. Now I open that window in applicationDidFinishLaunching: but that is called before the documents start to load. Is th

Re: Check if there are autosaved documents

2020-04-27 Thread Georg Seifert via Cocoa-dev
perfect. Thanks a lot. Georg > Am 27.04.2020 um 12:26 schrieb Allan Odgaard via Cocoa-dev > : > > On 27 Apr 2020, at 15:35, Georg Seifert via Cocoa-dev wrote: > >> Is there a method/callback that is called when all loading is done >> (including the loading of docu

Re: Concurrent loading of images ?

2020-05-09 Thread Georg Seifert via Cocoa-dev
Have you profiled this? The first thing I would to is run that in Instruments. Georg > Am 9. May 2020 um 14:44 schrieb Gabriel Zachmann via Cocoa-dev > : > > Again, thanks a lot for all the helpful hints. > > Before restructuring my code, I did a few timings, using a set of test images > ran

Re: Concurrent loading of images ?

2020-05-09 Thread Georg Seifert via Cocoa-dev
The last time I used layers to draw images it made a HUGE difference if the image was pixel perfect matching the size of the layer. If the image needed scaling, it was quite slow (I had really tiny images, but a lot of them). g > Am 9. May 2020 um 19:16 schrieb Steve Mills via Cocoa-dev > : >

Re: Finding memory leaks

2020-05-20 Thread Georg Seifert via Cocoa-dev
You need to check the backtrace where the leaking object was created. Sometimes it points to a line that has nothing to do with the leak, it is just triggering it. g > On 20.05.2020, at 16:03, Gabriel Zachmann via Cocoa-dev > wrote: > > I have a few stupid questions regarding (potential) mem

Re: Localization under Catalina

2020-05-27 Thread Georg Seifert via Cocoa-dev
I use the http://www.loc-suite.org for all my localisations. The original author is not there any more but I my versions should work: https://github.com/schriftgestalt/LocalizationSuite It is very good at keeping existing translations. Best Georg Seifert > Am 27.05.2020 um 19:30 schrieb Rob

Re: Localization under Catalina

2020-05-27 Thread Georg Seifert via Cocoa-dev
et of tools? It seems to be working (at > least launching) > > Eyal > > > >> On 27 May 2020, at 21:17, Georg Seifert via Cocoa-dev >> wrote: >> >> I use the http://www.loc-suite.org for all my localisations. The original >> author is not there

Re: Localization under Catalina

2020-05-27 Thread Georg Seifert via Cocoa-dev
wouldn’t be able to have any localisation without those tools. Georg > Am 27.05.2020 um 22:51 schrieb Georg Seifert via Cocoa-dev > : > > You find them in the releases section in the repo: > https://github.com/schriftgestalt/LocalizationSuite/releases > > Georg > &

Re: Status bar item icon is always black

2020-06-20 Thread Georg Seifert via Cocoa-dev
Why do you put the images in an asset catalog? I use PDFs a lot for icons, (in my case mostly as Template images). But I just drag them into a groups in Xcode and they are copied into the Resource folder. Then you can load them with -[NSBundle imageForResource:]. If you have @2x version, they ar