On Feb 11, 2020, at 09:00 , Gabriel Zachmann via Cocoa-dev
wrote:
>
> I have a question regarding the proper handling of paths under Catalina,
> some of which go through the Container, some don't.
>
> More specifically, I get the Pictures folder using this line of code:
>
> dir_to_scan = [NSH
I used to be able to catch keystrokes in my screensaver under Mojave
by defining my own methods -keyDown: and/or -processKey:
This does not work any more under Catalina, it seems.
My screensaver gets killed (stopped) right away.
Not even
-(void)stopAnimation
is called any more!
Does anyone
Great! Thanks a lot.
(Just for the record: it's called sortUsingSelector: )
Best regards, Gabriel
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at c
> On Feb 11, 2020, at 4:59 AM, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> First of all, what are the advantages/disadvantages of either method?
Sort descriptors are data; selectors are [references to] code. So a sort
descriptor lets you configure the sorting without having to write any cust
I have a question regarding the proper handling of paths under Catalina,
some of which go through the Container, some don't.
More specifically, I get the Pictures folder using this line of code:
dir_to_scan = [NSHomeDirectory() stringByAppendingPathComponent: @"Pictures/"]
This gives me a path
Gabriel,
> On Feb 11, 2020, at 10:36, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> I have some trivial questions regarding sorting a simple array of strings.
>
> I used to use this code:
>
>NSSortDescriptor *sd = [[NSSortDescriptor alloc] initWithKey: nil
> ascending: YES];//TODO: raus
I have a device with an MFI chip in it, I have my project set up with the
supported external accessory protocol strings, and I want to pull up the
MFI device picker just to prove to myself that my app can see my device.
This code runs, prints to the console, but I get a strange error.
if btManage
I have some trivial questions regarding sorting a simple array of strings.
I used to use this code:
NSSortDescriptor *sd = [[NSSortDescriptor alloc] initWithKey: nil
ascending: YES];//TODO: raus
[imagefiles_ sortUsingDescriptors: @[sd] ];
where imagefiles_ is an NSMutableArray* .
Now,
XCode used to be able to launch SystemPreferences under Mojave.
In the active scheme used for building, under Run / Info / Executable, I have
SystemPreferences.app selected. "Launch" is set to "automatically".
Now, after Xcode has (successfully) built my screensaver, I get this error
message: