Post

Replies

Boosts

Views

Activity

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 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 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 Does a parent record in CloudKit have to be in the same CKDatabase as a child record?
I don't think it's possible to save a record in one database and another record in a different database at the same time, so the parent record and the child record I mention in my post would have be saved in different lines of code. I think. I don't think it is possible to save two records in two different databases using CKModifyRecordsOperation. I don't know if there is a way at all.
Aug ’22
Reply to Hit Breakpoint running Playground
Has anything changed about this? I'm actually in Playground, not Playground in Xcode, and I am able to set breakpoints in a file in the Source folder, but code execution doesn't stop at the breakpoints. I know the code runs to those points, because there are print statements that print into the debug area that are placed between those breakpoints.
Oct ’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 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 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 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 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 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 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 a parent record in CloudKit have to be in the same CKDatabase as a child record?
I don't think it's possible to save a record in one database and another record in a different database at the same time, so the parent record and the child record I mention in my post would have be saved in different lines of code. I think. I don't think it is possible to save two records in two different databases using CKModifyRecordsOperation. I don't know if there is a way at all.
Replies
Boosts
Views
Activity
Aug ’22
Reply to How do I avoid nested closures or clauses?
No. Do you have a source of information about that that you particularly like more than other sources?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to How to make a phone call with a button
Anyone figure out how to bypass the action sheet? Is that possible? @eskimo @ilovecats516
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to AppIntents do not work with Shortcuts from lockscreen
Did you ever work this problem out? What's the solution?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to How do I get my iOS app to run code when something specific in a message in Messages happens?
Yeah. That works. I'm hoping to be able to call attention to the message in a more obvious way to the person receiving the message. He could put the sender in the contact and set emergency override on.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Xcode 8 error when start MyPlayground. How to fix it?
Since the error says, 'The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.', where do I type "thread return -x"? The debug area doesn't let my type in it in Playground as it does in Xcode.
Replies
Boosts
Views
Activity
Oct ’22
Reply to Playground crash: AttributeGraph precondition failure: setting value during update
Does anyone have an answer to this question? Also, since the error says, 'The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.', where do I type "thread return -x"? The debug area doesn't let my type in it in Playground as it does in Xcode.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to Hit Breakpoint running Playground
Has anything changed about this? I'm actually in Playground, not Playground in Xcode, and I am able to set breakpoints in a file in the Source folder, but code execution doesn't stop at the breakpoints. I know the code runs to those points, because there are print statements that print into the debug area that are placed between those breakpoints.
Replies
Boosts
Views
Activity
Oct ’22