|
Interface Builder Strangeness
7 messages
Hi All I have made some changes in a nib file in my application. I deleted a box with some buttons etc in it and moved a few buttons around in a tab view. The nib saves fine - when I open the nib up o
Hi All I have made some changes in a nib file in my application. I deleted a box with some buttons etc in it and moved a few buttons around in a tab view. The nib saves fine - when I open the nib up o
|
By
Peter Hudson
·
|
|
Rust for Cocoa/XCode
3 messages
Hi All, Does anyone know if there is a version of Rust that works with XCode and/or Cocoa? All the Best Dave
Hi All, Does anyone know if there is a version of Rust that works with XCode and/or Cocoa? All the Best Dave
|
By
Dave
·
|
|
Retrieve all available Finder tags on Monterey and later
35 messages
I wonder if anyone has figured out a way to retrieve ALL available Finder tags on Monterey and later? On pre-Monterey systems, it was possible by reading this file: ~/Library/SyncedPreferences/com.app
I wonder if anyone has figured out a way to retrieve ALL available Finder tags on Monterey and later? On pre-Monterey systems, it was possible by reading this file: ~/Library/SyncedPreferences/com.app
|
By
Leo
·
|
|
SwiftUI AttributedString on Watch
3 messages
I have a Watch-App using SwiftUI. let fontSize = 40.0 struct WatchContentView: View { @State var timeAttributedStr = AttributedString("--") let timer = Timer.publish(every: 1, tolerance: 0.1, on: .mai
I have a Watch-App using SwiftUI. let fontSize = 40.0 struct WatchContentView: View { @State var timeAttributedStr = AttributedString("--") let timer = Timer.publish(every: 1, tolerance: 0.1, on: .mai
|
By
Gerriet M. Denkmann
·
|
|
Strange: Rosetta faster than M1
15 messages
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 emulating I
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 emulating I
|
By
Gerriet M. Denkmann
·
|
|
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 th
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 th
|
By
Rick Aurbach
·
|
|
Signin with Apple, the sample iOS Juice app
2 messages
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 up and
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 up and
|
By
Alex Zavatone
·
|
|
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
·
|