|
Re: Strange: Rosetta faster than M1
It's a bit unusual for emulated code to run faster, but not impossible.
Depending upon the operation, the order of execution could end up pre-loading values or accessing devices in such a way that the
It's a bit unusual for emulated code to run faster, but not impossible.
Depending upon the operation, the order of execution could end up pre-loading values or accessing devices in such a way that the
|
By
Glenn L. Austin
·
#1465
·
|
|
Re: Strange: Rosetta faster than M1
Perhaps something is cached from the first run? Do you get the same results if you reverse the order?
Tom
Perhaps something is cached from the first run? Do you get the same results if you reverse the order?
Tom
|
By
Tom Landrum
·
#1464
·
|
|
Re: Strange: Rosetta faster than M1
What is it doing? We would need to compare the tasks it’s doing so that we could estimate where any slowness would be.
Have you profiled it using Xcode’s profiler? Can you add log statements so
What is it doing? We would need to compare the tasks it’s doing so that we could estimate where any slowness would be.
Have you profiled it using Xcode’s profiler? Can you add log statements so
|
By
Alex Zavatone
·
#1463
·
|
|
Strange: Rosetta faster than M1
I have a simple C command line tool.
This takes 16 seconds when I run it in Xcode with “My Mac”.
But only 11 seconds when run with “My Mac (Rosetta)”
How can this be?
I always assumed that
I have a simple C command line tool.
This takes 16 seconds when I run it in Xcode with “My Mac”.
But only 11 seconds when run with “My Mac (Rosetta)”
How can this be?
I always assumed that
|
By
Gerriet M. Denkmann
·
#1462
·
|
|
Printing and MacCatalyst
My app implements a report-generation function which displays reports in a presented view controller. The view controller includes an Activity Button, which uses UIActivityViewController to present
My app implements a report-generation function which displays reports in a presented view controller. The view controller includes an Activity Button, which uses UIActivityViewController to present
|
By
Rick Aurbach
·
#1461
·
|
|
Re: Signin with Apple, the sample iOS Juice app
Apparently, later than iOS 13.x in the Simulator will not bring up 2FA and break Signin with Apple.
Fun times, fun times.
Cheers,
Alex Zavatone
Apparently, later than iOS 13.x in the Simulator will not bring up 2FA and break Signin with Apple.
Fun times, fun times.
Cheers,
Alex Zavatone
|
By
Alex Zavatone
·
#1460
·
|
|
Signin with Apple, the sample iOS Juice app
Hi. I’d like to share what I just played with this morning using Apple’s sample code and see if anyone is seeing the same things.
The sample app on iOS, Juice, is here and is pretty easy to get
Hi. I’d like to share what I just played with this morning using Apple’s sample code and see if anyone is seeing the same things.
The sample app on iOS, Juice, is here and is pretty easy to get
|
By
Alex Zavatone
·
#1459
·
|
|
Re: library not found: libclang_rt.tsan_osx_dynamic.dylib
Iff the Thread Sanitiser is enabled on the main app, then its HelperTool will contain lots of Xcode stuff.
The main app asks the HelperTool for its version, and if they don’t match, then a new
Iff the Thread Sanitiser is enabled on the main app, then its HelperTool will contain lots of Xcode stuff.
The main app asks the HelperTool for its version, and if they don’t match, then a new
|
By
Gerriet M. Denkmann
·
#1458
·
|
|
Re: library not found: libclang_rt.tsan_osx_dynamic.dylib
This is a wild guess, but are you building with Thread Sanitizer enabled? (The "tsan" in the missing library name suggests so.)
That the named clang version (13.0.0) seems not to match your toolchain
This is a wild guess, but are you building with Thread Sanitizer enabled? (The "tsan" in the missing library name suggests so.)
That the named clang version (13.0.0) seems not to match your toolchain
|
By
Ben Kennedy
·
#1457
·
|
|
library not found: libclang_rt.tsan_osx_dynamic.dylib
I have an macOS app, which uses a privileged helper tool: de.mdenkmann.SW-Helper
This helper tool crashes with (Console.app):
ASI found [dyld] (sensitive) 'Library not loaded:
I have an macOS app, which uses a privileged helper tool: de.mdenkmann.SW-Helper
This helper tool crashes with (Console.app):
ASI found [dyld] (sensitive) 'Library not loaded:
|
By
Gerriet M. Denkmann
·
#1456
·
|
|
Re: I just wanted a refresher - struts versus properties.
Properties can be structs just as much as they can be classes or other types.
Structs are value types, and classes are reference types. That's the biggest difference.
Does the model represent
Properties can be structs just as much as they can be classes or other types.
Structs are value types, and classes are reference types. That's the biggest difference.
Does the model represent
|
By
Ben Kennedy
·
#1455
·
|
|
I just wanted a refresher - struts versus properties.
We’ve all seen so many Swift references about when to use a struct as opposed to a class. But coming from Objective-C like lots of us, does anyone have any resources or guidelines for when and why
We’ve all seen so many Swift references about when to use a struct as opposed to a class. But coming from Objective-C like lots of us, does anyone have any resources or guidelines for when and why
|
By
Alex Zavatone
·
#1454
·
|
|
Clicking in SwiftUI - how to get size of ZStack
I have (macOS 12.3.1):
struct ContentView: View
{
var body: some View
{
GeometryReader
{ metrics in
VStack
{
... some HStacks ...
ZStack // Curves
{
...
I have (macOS 12.3.1):
struct ContentView: View
{
var body: some View
{
GeometryReader
{ metrics in
VStack
{
... some HStacks ...
ZStack // Curves
{
...
|
By
Gerriet M. Denkmann
·
#1453
·
|
|
Re: iOS: selectable but not editable text
That is exactly what I was missing when I started this project to years ago in macOS 10.15.4.
textSelection Availability macOS 12.0+
One minor problem:
HStack
{
Text(“One
That is exactly what I was missing when I started this project to years ago in macOS 10.15.4.
textSelection Availability macOS 12.0+
One minor problem:
HStack
{
Text(“One
|
By
Gerriet M. Denkmann
·
#1452
·
|
|
Re: iOS: selectable but not editable text
https://developer.apple.com/documentation/swiftui/view/textselection(_:)
https://developer.apple.com/documentation/swiftui/view/textselection(_:)
|
By
Quincey Morris
·
#1451
·
|
|
Re: iOS: selectable but not editable text
Can select and copy, but only the content of the invisible TextField, not the (visible) Text below.
Gerriet.
Can select and copy, but only the content of the invisible TextField, not the (visible) Text below.
Gerriet.
|
By
Gerriet M. Denkmann
·
#1450
·
|
|
Re: iOS: selectable but not editable text
So first I enabled isUserInteractionEnabled for my UILabel.
Then, In viewDidLoad() I added:
let interaction = UIContextMenuInteraction(delegate: self)
So first I enabled isUserInteractionEnabled for my UILabel.
Then, In viewDidLoad() I added:
let interaction = UIContextMenuInteraction(delegate: self)
|
By
Gerriet M. Denkmann
·
#1449
·
|
|
Re: iOS: selectable but not editable text
Here's an untested idea worth a quick experiment: In a ZStack, superimpose a TextField view with .opacity(0) over a Text view.
Bob Stern
Here's an untested idea worth a quick experiment: In a ZStack, superimpose a TextField view with .opacity(0) over a Text view.
Bob Stern
|
By
Bob Stern
·
#1448
·
|
|
Re: iOS: selectable but not editable text
I don’t know a perfect solution for allowing a user to select and copy static text in SwiftUI.
If you use a TextField instead of Text, the content will be selectable, but it also will be editable,
I don’t know a perfect solution for allowing a user to select and copy static text in SwiftUI.
If you use a TextField instead of Text, the content will be selectable, but it also will be editable,
|
By
Bob Stern
·
#1447
·
|
|
Re: iOS: selectable but not editable text
One project is just a toy to try Catalyst.
Another is a real project, which could be done via Catalyst (some minor problems)
A third is a real project, which could be not be done via Catalyst, because
One project is just a toy to try Catalyst.
Another is a real project, which could be done via Catalyst (some minor problems)
A third is a real project, which could be not be done via Catalyst, because
|
By
Gerriet M. Denkmann
·
#1446
·
|