Post

Replies

Boosts

Views

Activity

Reply to Does synchronous mean that by definition it is run on and called from separate threads, or does it have to be that way because of the way things are?
Apple documentation says that Operations run synchronously. Why then does the code continue to run after an operation is added to a queue? Here is my code: let op = BlockOperation(block: { print("Done") }) let qu = OperationQueue() qu.addOperation(op) print("after!") Here is the debug results: after! Done
Jul ’22
Reply to What would happen if I add an index to a record type into production that wasn't there before in CloudKit?
Again I find this: The Development and Production Environments After you deploy the schema to the production environment, you can still modify the schema in the development environment but can’t delete record types and fields that were previously deployed. This still doesn't specifically tell me exactly what I want to know.
Jun ’22
Reply to What would happen if I add an index to a record type into production that wasn't there before in CloudKit?
I found the following here: Designing and Creating a CloudKit Database. Important During development, you can change your schema as much as you want, but once it’s deployed to production, you can’t delete any part of it. You can only make additive changes, such as adding a new field to a record type, or adding new record types. This still doesn't tell me if I can add or remove indices to record types after production. I would need less to remove indices than to add indices.
Jun ’22
Reply to [AXRuntimeCommon] AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:963
I should add that this error occurs only when I'm debugging with Xcode using a device rather than a simulator. When I use a device, I use CKSubscriptions on the sharedCloudDatabase, but not when I use a simulator. The error seems to occur right after I create a share using UICloudSharingController. The error message appear in the debug window right after print commands in the func cloudSharingControllerDidSaveShare(_ csc: UICloudSharingController) of UICloudSharingControllerDelegate.
Jun ’22
Reply to What word means to make something true if it is at first false?
The best I've come up with is "assure", "insure", and especially "constraint". "Force" is a good one too. I settled with . . . checkAndResave(_:completionHandler:) I was looking for a really accurate word to name a function that checks to see if a certain datum has been saved in a data store, then if it hasn't then I save it. So the word I'm looking for needs to reflect that I make sure it's there. Maybe "verify", but that still doesn't convey that I save the data if it's not there, just to check to be sure that it is there with the expectation that it is there. I take the presumption that I don't know whether it's there or not. That's fine. I'll settle with "checkAndResave". Thank you everyone. Maybe a word will pop up in the middle of the night while I'm half asleep.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’22
Reply to Deleting/Leaving a share
I found the following at Developer->Documentation->CloudKit->Shared Records. This must be Apple's prescribed method. To stop sharing, the share’s owner must delete the share or, for shared hierarchies, the root record. If a participant wants to leave the share, delete the share record from their shared database. Use UICloudSharingController or NSSharingService to allow a participant to stop participating. Or remove them from the share using the removeParticipant(_:) method, and then save the updated share to iCloud.
May ’22
Reply to When will type Error not cast to type NSError?
What is the purpose of this guard statement?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Does synchronous mean that by definition it is run on and called from separate threads, or does it have to be that way because of the way things are?
Apple documentation says that Operations run synchronously. Why then does the code continue to run after an operation is added to a queue? Here is my code: let op = BlockOperation(block: { print("Done") }) let qu = OperationQueue() qu.addOperation(op) print("after!") Here is the debug results: after! Done
Replies
Boosts
Views
Activity
Jul ’22
Reply to How do you calculate the keyboard height on an iPhone X?
Did you ever figure this out?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Where is the documentation for NSConcreteAttributedString?
Ok. I found the string instance property of the class. I would like to see documentation for that anyhow. Anyone know why it's not in Apple Developer Documentation?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to What would happen if I add an index to a record type into production that wasn't there before in CloudKit?
Again I find this: The Development and Production Environments After you deploy the schema to the production environment, you can still modify the schema in the development environment but can’t delete record types and fields that were previously deployed. This still doesn't specifically tell me exactly what I want to know.
Replies
Boosts
Views
Activity
Jun ’22
Reply to What would happen if I add an index to a record type into production that wasn't there before in CloudKit?
I found the following here: Designing and Creating a CloudKit Database. Important During development, you can change your schema as much as you want, but once it’s deployed to production, you can’t delete any part of it. You can only make additive changes, such as adding a new field to a record type, or adding new record types. This still doesn't tell me if I can add or remove indices to record types after production. I would need less to remove indices than to add indices.
Replies
Boosts
Views
Activity
Jun ’22
Reply to what can you use after the escape character "\"?
Looks like they're called "special characters" here: linkText. I thought there would be more of them.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to [AXRuntimeCommon] AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:963
I should add that this error occurs only when I'm debugging with Xcode using a device rather than a simulator. When I use a device, I use CKSubscriptions on the sharedCloudDatabase, but not when I use a simulator. The error seems to occur right after I create a share using UICloudSharingController. The error message appear in the debug window right after print commands in the func cloudSharingControllerDidSaveShare(_ csc: UICloudSharingController) of UICloudSharingControllerDelegate.
Replies
Boosts
Views
Activity
Jun ’22
Reply to How do I update CloudKit whenever there is a change in Contacts in iOS?
The best thing so far that I have found is found in this article Choosing Background Strategies for Your App under the heading Update Your App's Content. If anyone knows of a better way, I'd really like to know.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Scheduled, background process
I think there is a way now to schedule background processes.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Continuous Background Processing on Catalyst
Hi. I need to use continuous background process to receive notifications whenever there is a change in contact store. Have you found any way to continuously watch when something changes even when the app is not running -- I mean the app that needs to know when there are any changes?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to What is the new "Background Processing" Background Mode?
I want to know if there is a way to run a process even when my app isn't running. Is that possible?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to How do I update CloudKit whenever there is a change in Contacts in iOS?
What about using iCloud. Is there a way for my app to be able to know when iCloud is currently syncing? If my app sees that iCloud is currently syncing, it can run code to check the Contacts that CloudKit have records of. Is there a way to tell if there are Contacts that are syncing and which contacts are syncing?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to What word means to make something true if it is at first false?
The best I've come up with is "assure", "insure", and especially "constraint". "Force" is a good one too. I settled with . . . checkAndResave(_:completionHandler:) I was looking for a really accurate word to name a function that checks to see if a certain datum has been saved in a data store, then if it hasn't then I save it. So the word I'm looking for needs to reflect that I make sure it's there. Maybe "verify", but that still doesn't convey that I save the data if it's not there, just to check to be sure that it is there with the expectation that it is there. I take the presumption that I don't know whether it's there or not. That's fine. I'll settle with "checkAndResave". Thank you everyone. Maybe a word will pop up in the middle of the night while I'm half asleep.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to Deleting/Leaving a share
I found the following at Developer->Documentation->CloudKit->Shared Records. This must be Apple's prescribed method. To stop sharing, the share’s owner must delete the share or, for shared hierarchies, the root record. If a participant wants to leave the share, delete the share record from their shared database. Use UICloudSharingController or NSSharingService to allow a participant to stop participating. Or remove them from the share using the removeParticipant(_:) method, and then save the updated share to iCloud.
Replies
Boosts
Views
Activity
May ’22