|
Rust for Cocoa/XCode
There’s only one ‘version’ of Rust I know of, i.e. the official one. By “works with Xcode” do you mean “does Xcode have a Rust compiler?” ⟶ No. If you want to work with Rust on a Mac, you’ll need to i
There’s only one ‘version’ of Rust I know of, i.e. the official one. By “works with Xcode” do you mean “does Xcode have a Rust compiler?” ⟶ No. If you want to work with Rust on a Mac, you’ll need to i
|
By
Jens Alfke
· #1515
·
|
|
Retrieve all available Finder tags on Monterey and later
Maybe this is managed by Spotlight (i.e. Metadata.framework) now? Since it’s Spotlight that actually stores the tags. —Jens
Maybe this is managed by Spotlight (i.e. Metadata.framework) now? Since it’s Spotlight that actually stores the tags. —Jens
|
By
Jens Alfke
· #1481
·
|
|
iOS: selectable but not editable text
On iOS the idiomatic way to do this is not selecting the text, but a long-press gesture that brings up a context menu with a Copy item. —Jens
On iOS the idiomatic way to do this is not selecting the text, but a long-press gesture that brings up a context menu with a Copy item. —Jens
|
By
Jens Alfke
· #1445
·
|
|
Loading tiff files
That happens to me too. Or even better, while composing the email I write "could it be something about ____?", then go check on that possibility and find that indeed it was the problem. (A type of Rub
That happens to me too. Or even better, while composing the email I write "could it be something about ____?", then go check on that possibility and find that indeed it was the problem. (A type of Rub
|
By
Jens Alfke
· #1345
·
|
|
Loading tiff files
Oh? It says so right in the class overview. "The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the operati
Oh? It says so right in the class overview. "The NSImage class itself is capable of managing image data in a variety of formats. The specific list of formats is dependent on the version of the operati
|
By
Jens Alfke
· #1340
·
|
|
Loading tiff files
Sure. All the standard APIs that load images (FYI, you didn't specify a platform) handle TIFF. It used to be the standard image format on OpenStep, so support is still pretty ubiquitous. —Jens
Sure. All the standard APIs that load images (FYI, you didn't specify a platform) handle TIFF. It used to be the standard image format on OpenStep, so support is still pretty ubiquitous. —Jens
|
By
Jens Alfke
· #1335
·
|
|
folder entitlements EPERM
Isn't that just the normal behavior of the app sandbox? Sandboxed apps aren't allowed to access arbitrary areas of the filesystem, unless the user has implicitly given permission by navigating to a fi
Isn't that just the normal behavior of the app sandbox? Sandboxed apps aren't allowed to access arbitrary areas of the filesystem, unless the user has implicitly given permission by navigating to a fi
|
By
Jens Alfke
· #1327
·
|
|
iCloud question: CloudKit vs. NSFileManager
I would use NSFileManager. CloudKit is for storing a server-side database that supports queries, indexes and sharing … that's overkill for a simple settings file. Also, I believe if you use the NSFile
I would use NSFileManager. CloudKit is for storing a server-side database that supports queries, indexes and sharing … that's overkill for a simple settings file. Also, I believe if you use the NSFile
|
By
Jens Alfke
· #1304
·
|
|
bonjour broken in iOS 14
Oh, right! It's the "Access local network" permission. I've seen that pop up. The Info.plist key must be required only if you build the app against the iOS 14 SDK, right? Otherwise that would break ex
Oh, right! It's the "Access local network" permission. I've seen that pop up. The Info.plist key must be required only if you build the app against the iOS 14 SDK, right? Otherwise that would break ex
|
By
Jens Alfke
· #1300
·
|
|
bonjour broken in iOS 14
I'm guessing your network environment includes a DNS server that supports DNS updates (i.e. wide-area Bonjour) but you don't have the credentials to push updates to the DNS server. This error probably
I'm guessing your network environment includes a DNS server that supports DNS updates (i.e. wide-area Bonjour) but you don't have the credentials to push updates to the DNS server. This error probably
|
By
Jens Alfke
· #1298
·
|
|
Anyone using CloudKit?
I've made some progress on mocking by defining a protocol containing the CKDatabase methods I call; an empty extension to mark CKDatabase as implementing that protocol; and a mock class that implement
I've made some progress on mocking by defining a protocol containing the CKDatabase methods I call; an empty extension to mark CKDatabase as implementing that protocol; and a mock class that implement
|
By
Jens Alfke
· #1293
·
|
|
Anyone using CloudKit?
I've come up with a solution for this: I can't erase containers/databases, but I can erase a zone by sending a delete followed by a create. That's fine for my purposes because all my code so far opera
I've come up with a solution for this: I can't erase containers/databases, but I can erase a zone by sending a delete followed by a create. That's fine for my purposes because all my code so far opera
|
By
Jens Alfke
· #1290
·
|
|
Anyone using CloudKit?
Hey, is anyone here using CloudKit? I'm getting started with it and have issues. There's some content on Apple's dev forums, but frankly even the new improved forums have awful UX (why couldn't they h
Hey, is anyone here using CloudKit? I'm getting started with it and have issues. There's some content on Apple's dev forums, but frankly even the new improved forums have awful UX (why couldn't they h
|
By
Jens Alfke
· #1288
·
|
|
Anyone using CloudKit?
Hey, is anyone here using CloudKit? I'm getting started with it and have issues. There's some content on Apple's dev forums, but frankly even the new improved forums have awful UX (why couldn't they h
Hey, is anyone here using CloudKit? I'm getting started with it and have issues. There's some content on Apple's dev forums, but frankly even the new improved forums have awful UX (why couldn't they h
|
By
Jens Alfke
· #1287
·
|
|
Data structures and user interaction conundrum
Sadly, this only postpones the problem — you run out of precision after a while. A 64-bit double only has about 52 bits of mantissa, meaning that some sequences of 52 reorders will cause a collision b
Sadly, this only postpones the problem — you run out of precision after a while. A 64-bit double only has about 52 bits of mantissa, meaning that some sequences of 52 reorders will cause a collision b
|
By
Jens Alfke
· #1277
·
|
|
[OT] AppleScript List
Why, there's an AppleScript list right here: https://apple-dev.groups.io/g/applescript —Jens
Why, there's an AppleScript list right here: https://apple-dev.groups.io/g/applescript —Jens
|
By
Jens Alfke
· #1228
·
|
|
String handling not working — am I going nuts?
You've also removed support for Unix line endings. Now it only supports Windows line endings; probably a bad idea. I'm mystified too, but IMHO enumerateLines is a better way to do it. —Jens
You've also removed support for Unix line endings. Now it only supports Windows line endings; probably a bad idea. I'm mystified too, but IMHO enumerateLines is a better way to do it. —Jens
|
By
Jens Alfke
· #1221
·
|
|
String handling not working — am I going nuts?
Doesn't Swift's String class have higher-level methods to break a string by lines? NSString certainly did. —Jens
Doesn't Swift's String class have higher-level methods to break a string by lines? NSString certainly did. —Jens
|
By
Jens Alfke
· #1217
·
|
|
How to present a web view while supporting 10.9?
You'll need two code paths, one that instantiates and runs a WebView, the other that instantiates and runs a WKWebView. Their APIs and functionality are not identical, so it's not just a question of "
You'll need two code paths, one that instantiates and runs a WebView, the other that instantiates and runs a WKWebView. Their APIs and functionality are not identical, so it's not just a question of "
|
By
Jens Alfke
· #1184
·
|
|
Swizzle class property?
Shouldn't that be "if (!didAddMethod)" ? —Jens
Shouldn't that be "if (!didAddMethod)" ? —Jens
|
By
Jens Alfke
· #1031
·
|