Post

Replies

Boosts

Views

Activity

Reply to Toggling UITextView attributes for spellchecking, smart quotes, etc stops working
I have a pared down project I can post, however I found one thing, and I'm not sure if it's supposed to work this way or not. I'm guessing not. I'd expect this to work, and it does: Load the text view from storyboard. Editing is not active. Change the smartQuotesType (or any other attr). Activate editing. The correct setting of smartQuotesType is used. I'd expect this to work too, but it does not: Load the text view from storyboard. Editing is not active. Activate editing. Change the smartQuotesType (or any other attr). Typing will use the value it was set to prior to activating editing. I'd expect this to work in both cases, but only the first works: Load the text view from storyboard. Editing is not active. Change the smartQuotesType (or any other attr). Activate editing. The correct setting of smartQuotesType is used. Change the smartQuotesType (or any other attr). Typing will still use the value it was changed to prior to activating editing. If changing the attributes should work in all cases above, let me know and I'll post the project.
Topic: UI Frameworks SubTopic: UIKit
Apr ’25
Reply to Need advice for closing subwindows when closing main document window
It's also not clear how to call the selectors that are passed in to methods like: canCloseDocumentWithDelegate:(id)delegate shouldCloseSelector:(nullable SEL)shouldCloseSelector contextInfo:(nullable void *)contextInfo; shouldCloseWindowController:(NSWindowController *)windowController delegate:(nullable id)delegate shouldCloseSelector:(nullable SEL)shouldCloseSelector contextInfo:(nullable void *)contextInfo; I'd love to see actual working examples of those methods.
Topic: UI Frameworks SubTopic: AppKit Tags:
Mar ’24
Reply to NSUserDefaults for app group suite fails to write from keyboard extension
OMG, user error, but one that Apple could prevent. I revisited the docs for keyboard extensions and found it right in the first paragraph: Custom keyboards operate in a sandboxed environment running in an isolated process. This sandbox’s default configuration disallows access to the network and prevents writing to the containing app’s shared group containers (reading is permitted). Open access lets you do things like store keyboard configuration, perform more complex analysis on text the user typed, or provide advanced features that require server support. But Apple could help developers by mentioning RequestsOpenAccess in the error message instead of being somewhat cryptic about it.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’23