#iosdev
#iosdev
Here's what my delegate class declaration looks like:
Here's what my delegate class declaration looks like:
```swift
@MainActor
@Observable
final class ATProtoOAuthService: NSObject, ASWebAuthenticationPresentationContextProviding {
```
```swift
@MainActor
@Observable
final class ATProtoOAuthService: NSObject, ASWebAuthenticationPresentationContextProviding {
```
I'm not sure how to fix this error.
Speaker has to inherit from NSObject because it has to act as a delegate to AVSpeechSynthesizer.
But if it inherits from NSObject, then the compiler complains that its properties are mutable (which of course they must be).
I'm not sure how to fix this error.
Speaker has to inherit from NSObject because it has to act as a delegate to AVSpeechSynthesizer.
But if it inherits from NSObject, then the compiler complains that its properties are mutable (which of course they must be).
I'm looking at NSItemProvider a.t.m. to get UIImages from the photo picker. Nothing's sendable. All samples include dispatch groups, and dispatching the unpacked result […]
I'm looking at NSItemProvider a.t.m. to get UIImages from the photo picker. Nothing's sendable. All samples include dispatch groups, and dispatching the unpacked result […]
I realize I've always reached for NSObject subclasses to represent my immutable data types, no matter how primitive, and now I wonder if I've missed out.
I realize I've always reached for NSObject subclasses to represent my immutable data types, no matter how primitive, and now I wonder if I've missed out.
Nil: don't know. I have never encountered it in production apps. I know it exists.
NULL: Is C pointer value of 0.
NSNull: A subclass of NSObject that represents the value of nothing inside an NSArray.
Nil: don't know. I have never encountered it in production apps. I know it exists.
NULL: Is C pointer value of 0.
NSNull: A subclass of NSObject that represents the value of nothing inside an NSArray.
#swift #concurrency #AVFoundation
#swift #concurrency #AVFoundation
@protocol PSPDFDocumentCreation
- (instancetype)initWithThing:(NSThing)thing;
@end
@interface PSPDFDocument: NSObject
@end
Thanks Kostiantyn Herasimov for pointing this out.
@protocol PSPDFDocumentCreation
- (instancetype)initWithThing:(NSThing)thing;
@end
@interface PSPDFDocument: NSObject
@end
Thanks Kostiantyn Herasimov for pointing this out.
#swift #concurrency #avfoundation
#swift #concurrency #avfoundation
@interface LCKTumblr : NSObject.
Worlds colliding.
@interface LCKTumblr : NSObject.
Worlds colliding.
Given the WCSession API function
```swift
func sendMessage(
_ message: [String : Any],
replyHandler: (([String : Any]) -> Void)?,
errorHandler: ((any Error) -> Void)? = nil
)
```
I expected this to work.
```swift
_@MainActor
final class Something: NSObject […]
Given the WCSession API function
```swift
func sendMessage(
_ message: [String : Any],
replyHandler: (([String : Any]) -> Void)?,
errorHandler: ((any Error) -> Void)? = nil
)
```
I expected this to work.
```swift
_@MainActor
final class Something: NSObject […]
A teammate shared this screenshot from the GitHub email notification of my review of their PR. I was talking about changing `value as Double as NSObject` to use `NSNumber(value: value)` instead.
A teammate shared this screenshot from the GitHub email notification of my review of their PR. I was talking about changing `value as Double as NSObject` to use `NSNumber(value: value)` instead.
(NSObject) protocol はどんなクラスのインスタンスでもキャストまでは成功してしまう😂 Script Object ベースのクラスはプロトコルに準拠できないのでこれが必要なのね。
(NSObject) protocol はどんなクラスのインスタンスでもキャストまでは成功してしまう😂 Script Object ベースのクラスはプロトコルに準拠できないのでこれが必要なのね。
@objc
(NSObject) ってなんで必要なんだっけと思ってと調べ直してみたけど、ここが最もやばく肝になる部分ね
@objc
(NSObject) ってなんで必要なんだっけと思ってと調べ直してみたけど、ここが最もやばく肝になる部分ね
#epsteinweb #efta02360155
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661
#epsteinweb #efta02360155
https://epsteinweb.org
Available in the iOS app store now!
https://apps.apple.com/us/app/epstein-web/id6758880661