Post

Replies

Boosts

Views

Activity

Comment on Importing Unknown UTTypes at Runtime
Hi, thanks for the reply! I have been referencing that video (love the cat using an iPad!), but I don't think it covers my use case. In my actual code, I have been using the failable initializer and falling back to importedAs when it was nil. Unfortunately, there are a lot of types on NSPasteboard that I need to acknowledge exist (my app is a clipboard inspector), but are invalid (like com.apple.is-remote-clipboard, com.apple.iWork.pasteboardState.applicationName-Pages, com.apple.notes.richtext, etc..). That said, I may need to create a separate type that is backed by UTType info if available, with default values otherwise 🤔
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’21
Comment on Importing Unknown UTTypes at Runtime
Hi, thanks for the reply! I have been referencing that video (love the cat using an iPad!), but I don't think it covers my use case. In my actual code, I have been using the failable initializer and falling back to importedAs when it was nil. Unfortunately, there are a lot of types on NSPasteboard that I need to acknowledge exist (my app is a clipboard inspector), but are invalid (like com.apple.is-remote-clipboard, com.apple.iWork.pasteboardState.applicationName-Pages, com.apple.notes.richtext, etc..). That said, I may need to create a separate type that is backed by UTType info if available, with default values otherwise 🤔
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jun ’21
Comment on SwiftUI crash when using wheel style Picker in form in form
Replacing Form with List worked for me. Thank you for posting!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21