Re: Handling of paths through sandbox

2020-02-11 Thread Quincey Morris via Cocoa-dev
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 =

Catching keystrokes in my screensaver under Catalina

2020-02-11 Thread Gabriel Zachmann via Cocoa-dev
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

Re: Sorting an array

2020-02-11 Thread Gabriel Zachmann via Cocoa-dev
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

Re: Sorting an array

2020-02-11 Thread Jens Alfke via Cocoa-dev
> 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

Handling of paths through sandbox

2020-02-11 Thread Gabriel Zachmann via Cocoa-dev
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

Re: Sorting an array

2020-02-11 Thread Sandor Szatmari via Cocoa-dev
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

MFI Device Picker not displaying

2020-02-11 Thread Eric E. Dolecki via Cocoa-dev
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

Sorting an array

2020-02-11 Thread Gabriel Zachmann via Cocoa-dev
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 can't launch System Preferences any more

2020-02-11 Thread Gabriel Zachmann via Cocoa-dev
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: