|
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
·
|
|
Re: 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
·
|
|
Re: iOS: selectable but not editable text
Is this a new project or one in which you already developed a lot of code? I get the impression it is new because your preceding post concerns an existing UIKit app that you want to port to Mac using
Is this a new project or one in which you already developed a lot of code? I get the impression it is new because your preceding post concerns an existing UIKit app that you want to port to Mac using
|
By
Bob Stern
·
#1444
·
|
|
iOS: selectable but not editable text
NSTextField can set both isSelectable (true) and isEditable (false). So far so good.
But how to do this in iOS?
I have a textField which is output only (editing makes no sense at all) but the user
NSTextField can set both isSelectable (true) and isEditable (false). So far so good.
But how to do this in iOS?
I have a textField which is output only (editing makes no sense at all) but the user
|
By
Gerriet M. Denkmann
·
#1443
·
|
|
Catalyst UIButton Title
iOS 15.4, macOS 12.3
When UserInterfaceIdiom = pad then UiButton.titleLabel is UILabel with UILabel.text = button title. Ok.
But with UserInterfaceIdiom = mac the UiButton.titleLabel is a
iOS 15.4, macOS 12.3
When UserInterfaceIdiom = pad then UiButton.titleLabel is UILabel with UILabel.text = button title. Ok.
But with UserInterfaceIdiom = mac the UiButton.titleLabel is a
|
By
Gerriet M. Denkmann
·
#1442
·
|
|
Re: how to set allowedClasses for UIStateRestorationKeyedUnarchiver
replacing in:
override func decodeRestorableState(with coder: NSCoder)
all:
languageFilter = coder.decodeObject(forKey: "languageFilter”)
with:
languageFilter = coder.decodeObject(of:
replacing in:
override func decodeRestorableState(with coder: NSCoder)
all:
languageFilter = coder.decodeObject(forKey: "languageFilter”)
with:
languageFilter = coder.decodeObject(of:
|
By
Gerriet M. Denkmann
·
#1441
·
|
|
Re: how to set allowedClasses for UIStateRestorationKeyedUnarchiver
Have you tried using secure [de]coding?
https://developer.apple.com/documentation/foundation/nssecurecoding
https://developer.apple.com/documentation/foundation/nscoder/2292944-decodeobject#
-ben
Have you tried using secure [de]coding?
https://developer.apple.com/documentation/foundation/nssecurecoding
https://developer.apple.com/documentation/foundation/nscoder/2292944-decodeobject#
-ben
|
By
Ben Kennedy
·
#1440
·
|
|
TableView behavior in a SplitViewController
Xcode 13.2.1, Simulator running iOS15.2 with 13.0 as a deployment target, UIKit.
I have a pretty standard configuration running an iPad in Simulator — SplitView master contains a TableView,
Xcode 13.2.1, Simulator running iOS15.2 with 13.0 as a deployment target, UIKit.
I have a pretty standard configuration running an iPad in Simulator — SplitView master contains a TableView,
|
By
Rick Aurbach
·
#1439
·
|
|
how to set allowedClasses for UIStateRestorationKeyedUnarchiver
class ViewController: UIViewController
{
override func decodeRestorableState(with coder: NSCoder)
{
NSLog("\(#function) will super; coder \(coder); allowedClasses \(String(describing:
class ViewController: UIViewController
{
override func decodeRestorableState(with coder: NSCoder)
{
NSLog("\(#function) will super; coder \(coder); allowedClasses \(String(describing:
|
By
Gerriet M. Denkmann
·
#1438
·
|