|
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
·
|
|
SplitViewController with 3 Columns - What am I missing?? 2 messages
Xcode 13ß1, deploying to iOS 15, UIKit using Storyboards. I have a tab bar controller which (for one of its tabs) contains a split view controller. The split view controller is configured in the story
Xcode 13ß1, deploying to iOS 15, UIKit using Storyboards. I have a tab bar controller which (for one of its tabs) contains a split view controller. The split view controller is configured in the story
|
By
Rick Aurbach
·
|
|
Adding multiple shadows to a UIView in either Objective-C or Swift 4 messages
Has any one of of us successfully done this? We’ve been trying to do this with CALayers for days now and it’s been monumentally unsuccessful. Either we get one shadow on one layer and no shadows on an
Has any one of of us successfully done this? We’ve been trying to do this with CALayers for days now and it’s been monumentally unsuccessful. Either we get one shadow on one layer and no shadows on an
|
By
Alex Zavatone
·
|
|
Network Server Shares
Did Apple kill access to /Network/Applications and /Network/Library shares published from macos server? Testing Mojave (yes this is old stuff) and I don’t see these shares that are published from out
Did Apple kill access to /Network/Applications and /Network/Library shares published from macos server? Testing Mojave (yes this is old stuff) and I don’t see these shares that are published from out
|
By
Sandor Szatmari
·
|
|
Exception not being caught in try statement 4 messages
Hi folks, Some users are reporting a crash that I can't reproduce, and in an attempt to gain additional diagnostics from a user, I wrapped the affected line in a try/catch block. For two users it reso
Hi folks, Some users are reporting a crash that I can't reproduce, and in an attempt to gain additional diagnostics from a user, I wrapped the affected line in a try/catch block. For two users it reso
|
By
Mark Allan
·
|
|
What is the best strategy for this? 6 messages
Problem: I am designing a collection view with overlapping cells. Each cell has an active area inside it (and the active areas of adjacent cells do not overlap). (More information about what I'm doing
Problem: I am designing a collection view with overlapping cells. Each cell has an active area inside it (and the active areas of adjacent cells do not overlap). (More information about what I'm doing
|
By
Rick Aurbach
·
|
|
Compiler error - method not found on object which conforms to protocol 8 messages
I have a server class which is abstracted to receive it’s final configuration from it’s data source. The idea is you instantiate the server set the data source and then start the server. During startu
I have a server class which is abstracted to receive it’s final configuration from it’s data source. The idea is you instantiate the server set the data source and then start the server. During startu
|
By
Sandor Szatmari
·
|
|
Trouble with NSTableViews in macOS 11.x 5 messages
The tableviews in one of our apps is behaving strangely when running on macOS 11.x. I have managed to reproduce thsi with a simple test app. Essentially, the issue occurs if if I build using the 11.x
The tableviews in one of our apps is behaving strangely when running on macOS 11.x. I have managed to reproduce thsi with a simple test app. Essentially, the issue occurs if if I build using the 11.x
|
By
Sak Wathanasin
·
|
|
Push Notification device token from APNS auth response. 2 messages
Sometimes we want to get the string value of the device token after requesting push auth from APNS in didRegisterForRemoteNotificationWithDeviceToken. Here’s how you can get that string value in Objec
Sometimes we want to get the string value of the device token after requesting push auth from APNS in didRegisterForRemoteNotificationWithDeviceToken. Here’s how you can get that string value in Objec
|
By
Alex Zavatone
·
|