|
library not found: libclang_rt.tsan_osx_dynamic.dylib 3 messages
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: @rpath/libclang_rt.tsan_
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: @rpath/libclang_rt.tsan_
|
By
Gerriet M. Denkmann
·
|
|
I just wanted a refresher - struts versus properties. 2 messages
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 to
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 to
|
By
Alex Zavatone
·
|
|
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 { ... several Shapes with Path } .frame( maxHeight: m
I have (macOS 12.3.1): struct ContentView: View { var body: some View { GeometryReader { metrics in VStack { ... some HStacks ... ZStack // Curves { ... several Shapes with Path } .frame( maxHeight: m
|
By
Gerriet M. Denkmann
·
|
|
iOS: selectable but not editable text 10 messages
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 mig
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 mig
|
By
Gerriet M. Denkmann
·
|
|
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 UIButtonLabe
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 UIButtonLabe
|
By
Gerriet M. Denkmann
·
|
|
how to set allowedClasses for UIStateRestorationKeyedUnarchiver 3 messages
class ViewController: UIViewController { override func decodeRestorableState(with coder: NSCoder) { NSLog("\(#function) will super; coder \(coder); allowedClasses \(String(describing: coder.allowedCla
class ViewController: UIViewController { override func decodeRestorableState(with coder: NSCoder) { NSLog("\(#function) will super; coder \(coder); allowedClasses \(String(describing: coder.allowedCla
|
By
Gerriet M. Denkmann
·
|
|
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, secondary
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, secondary
|
By
Rick Aurbach
·
|
|
Verbose warning splurged to the log with Secure Coding (dearchiving) -- can they be serious? 9 messages
Hi all, I was working on some demo code investigating the use of secure archiving, since I guess we all have to adopt that if we can. I have a simple container class (a linked list) that I decided to
Hi all, I was working on some demo code investigating the use of secure archiving, since I guess we all have to adopt that if we can. I have a simple container class (a linked list) that I decided to
|
By
Graham Cox
·
|
|
UICollectionView with DiffableDataSource
Xcode 13.1, iOS 25 SDK I have a UICollectionView (with a custom UICollectionViewLayout) which I am updating with a DiffableDataSource. This CollectionView displays a particular data object (with a giv
Xcode 13.1, iOS 25 SDK I have a UICollectionView (with a custom UICollectionViewLayout) which I am updating with a DiffableDataSource. This CollectionView displays a particular data object (with a giv
|
By
Rick Aurbach
·
|
|
NSTextView: displaying "virtual" symbols?
[I'd sent this to cocoa-dev@..., but ISTR that list is deprecated. Resending here.] I am working on a document storage format that consists of logical zones that nest. You can think of them sort of li
[I'd sent this to cocoa-dev@..., but ISTR that list is deprecated. Resending here.] I am working on a document storage format that consists of logical zones that nest. You can think of them sort of li
|
By
David Young
·
|
|
Scanner oddity 2 messages
Anybody uses the Scanner class? I’m using an instance to extract some data from a string received from a web server. If I have a string that is “45\nBlah”, read the “45”, the scanner location is just
Anybody uses the Scanner class? I’m using an instance to extract some data from a string received from a web server. If I have a string that is “45\nBlah”, read the “45”, the scanner location is just
|
By
Laurent Daudelin
·
|
|
How to embed Swift Package executable into macOS app
I have a macOS app I’d like to embed an executable from a swift package. However, while I can add the swift package under the app target’s “Frameworks, Libraries, and Embedded Content” section, and ad
I have a macOS app I’d like to embed an executable from a swift package. However, while I can add the swift package under the app target’s “Frameworks, Libraries, and Embedded Content” section, and ad
|
By
Jim
·
|
|
Async/Await and Model Dialogs 2 messages
In a UIKit context, has anyone had experience/success in using async/await to synchronize a modal dialog with other logic? I've tried it a bit without success. I.e, given a presented dialog, I want to
In a UIKit context, has anyone had experience/success in using async/await to synchronize a modal dialog with other logic? I've tried it a bit without success. I.e, given a presented dialog, I want to
|
By
Rick Aurbach
·
|
|
Just a little sharing - it's nice when your product finally hits the market. 3 messages
My olden app has finally hit the market. https://www.macrumors.com/2021/09/01/apple-shares-us-states-adopting-wallet-ids/ It’s only taken 7 years since I worked on it. : ) Cheers to everyone else who
My olden app has finally hit the market. https://www.macrumors.com/2021/09/01/apple-shares-us-states-adopting-wallet-ids/ It’s only taken 7 years since I worked on it. : ) Cheers to everyone else who
|
By
Alex Zavatone
·
|
|
WKWebKit and iOS 13 in Xcode 12
Has anyone found a workaround for the crash of WKWebKit under the above configuration? Xcode reposts “Error acquiring assertion” trying to display any webpage. A workaround to prevent the screen from
Has anyone found a workaround for the crash of WKWebKit under the above configuration? Xcode reposts “Error acquiring assertion” trying to display any webpage. A workaround to prevent the screen from
|
By
Alex Zavatone
·
|
|
New syntax in Xcode 12.5. 5 messages
I just saw someone use this syntax in a project and haven’t see it before. It compiles in Xcode 12.5, but not in Xcode 12.4. Does anyone have any more details on it? let myVar = myVar != someValue ? r
I just saw someone use this syntax in a project and haven’t see it before. It compiles in Xcode 12.5, but not in Xcode 12.4. Does anyone have any more details on it? let myVar = myVar != someValue ? r
|
By
Alex Zavatone
·
|
|
Help with iOS 15-style UIButton? 13 messages
I am trying to construct a button using the new iOS15 button API. (Xcode 13ß3, UIKit & Storyboards) The button has a title (aligned .leading) and an image (aligned .trailing). The button has the follo
I am trying to construct a button using the new iOS15 button API. (Xcode 13ß3, UIKit & Storyboards) The button has a title (aligned .leading) and an image (aligned .trailing). The button has the follo
|
By
Rick Aurbach
·
|
|
CGContext always creating a black rect. 4 messages
Hi. I’m trying to draw a bezier shape in CGContext on a UIView in Swift with a transparent background and the background is always black. Nothing online helps. Any ideas? I’ve checked .isOpaque, backg
Hi. I’m trying to draw a bezier shape in CGContext on a UIView in Swift with a transparent background and the background is always black. Nothing online helps. Any ideas? I’ve checked .isOpaque, backg
|
By
Alex Zavatone
·
|
|
Layers and shadows. Is it possible to have a layer with a shadow and no background color? 9 messages
In my experiments, I noticed that if you simply create a layer for a view and attempt to add a shadow, nothing appears. Unless some color is applied to the border or the backgroundColor of the layer,
In my experiments, I noticed that if you simply create a layer for a view and attempt to add a shadow, nothing appears. Unless some color is applied to the border or the backgroundColor of the layer,
|
By
Alex Zavatone
·
|
|
Obtaining a bitmask or an alpha channel for a UIView.
Is anyone aware of a process to scan a UIView and obtain its alpha channel or bit mask used for compositing? I’m looking for this to create shadows in the shape of the contents of the non transparent
Is anyone aware of a process to scan a UIView and obtain its alpha channel or bit mask used for compositing? I’m looking for this to create shadows in the shape of the contents of the non transparent
|
By
Alex Zavatone
·
|