Post

Replies

Boosts

Views

Activity

Comment on HELP! I don't understand Loops.
Additional comment as rule of thumb. You use for loop when you know in advance how many iterations: either because you write explicitly (0...9) or because the number is defined (for item in myArray). You use repeat … while or while when the number of iterations depend on condition that you don't know when you write code, such as while i < someValue where someValue is dynamic value that will change during code execution.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’21
Comment on How can I migrate Swift 3 applications to Swift 5 in 2021?
I tested on a project created with Swift2 ! And managed to update it directly in Xcode 13ß4 with the process I described in the link above. I had however a problem to open storyboard (kept spinning). I closed project, opened in Xcode 12. I was asked to select a device for IB. Did it, quit XCode12 and reopened in Xcode 13 without problem. I had also to recreate all IBActions connections which were visibly corrupted.
Aug ’21
Comment on No email notification for answers to own posts
Evolutions on the forum are pretty slow effectively. We waited for years to post images. As for the silence, remember there are tens of millions of FB. I imagine it's hard to reply to each individually. For checking answers to my own posts, I pinned the profile page - https://developer.apple.com/forums/profile/Nickkk - and so I can immediately see if there's a new answer.
Aug ’21
Comment on Could not cast value of type (0x10ca9be10) to 'NSString' (0x7fff86d8bbb0)
Thanks. Don't worry, we all have started as Swift beginners.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on How to save return value from function in swift ui and use it
Effectively, State var are for this: save state…
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on In UIKit, how do you present a confirmation dialog when the user is swiping to delete a table view cell?
That's true. But if the action is really (badly) destructive, a full fledged confirmation dialog may be useful (we know in some cases we do things mechanically).
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on Unable to Dequeue Registered CollectionViewCells
Is there a single collectionView (newsCollectionView) in your class ? Could you show the code for HeadlineNewsCollectionViewCell ? Interesting discussion here: https://stackoverflow.com/questions/17729582/uicollectionview-in-a-uicollectionviewcell
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on How to learn to use storyboard and Objective-C to develop iOS applications
szymczyk is right. These are 2 different things: learning XCode and Storyboards, which is quite independant of the language. And learning objective C. Do I guess well that you already know objC ? If so, use an Apple tutorial (App development with Swift for instance) but code everything in ObjC instead of Swift. That should be fairly easy.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on Earlier versions of Xcode not working
What I described is how to use RECENT versions of XCode, not old ones. What didn't work? I do this frequently when I need to work on an old project.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on Tables built by Xcode 13 beta don't work in macOS 10.12
Thanks for the feedback. Don't forget to close the thread.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on Need Help Transfer Data From Button
Where do you get the error ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on Emulate double leftclick on MacOS
I tried also, with 2 difference series of events, no avail. Just as if it lost the "memory" of the first click and just restarted a new activation cycle.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on HELP! I don't understand Loops.
Additional comment as rule of thumb. You use for loop when you know in advance how many iterations: either because you write explicitly (0...9) or because the number is defined (for item in myArray). You use repeat … while or while when the number of iterations depend on condition that you don't know when you write code, such as while i < someValue where someValue is dynamic value that will change during code execution.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21
Comment on Stop XCode IDE expropriating alternate MacOS Desktops
My question was probably not clear enough. What do you swipe to Desktop 2 ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’21
Comment on How can I migrate Swift 3 applications to Swift 5 in 2021?
I tested on a project created with Swift2 ! And managed to update it directly in Xcode 13ß4 with the process I described in the link above. I had however a problem to open storyboard (kept spinning). I closed project, opened in Xcode 12. I was asked to select a device for IB. Did it, quit XCode12 and reopened in Xcode 13 without problem. I had also to recreate all IBActions connections which were visibly corrupted.
Replies
Boosts
Views
Activity
Aug ’21
Comment on xcode download
You can also find on Apple site : https://developer.apple.com/download/all/. search for XCode
Replies
Boosts
Views
Activity
Aug ’21
Comment on No email notification for answers to own posts
Evolutions on the forum are pretty slow effectively. We waited for years to post images. As for the silence, remember there are tens of millions of FB. I imagine it's hard to reply to each individually. For checking answers to my own posts, I pinned the profile page - https://developer.apple.com/forums/profile/Nickkk - and so I can immediately see if there's a new answer.
Replies
Boosts
Views
Activity
Aug ’21
Comment on Unable to Dequeue Registered CollectionViewCells
What are the identifiers of those CollectionViews ? Check carefully in all your project for those identifiers, maybe you have some mess up somewhere.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’21