Content deleted Content added
m Removed deprecated parameters in {{Talk header}} that are now handled automatically (Task 30) |
→Xcode languages support: new section |
||
Line 31:
import Cocoa class ViewController: NSViewController { var numbers = [Int](1...25) var currentNumber: Int? @IBOutlet weak var numberLabel: NSTextField! @IBOutlet var gridButtons: [NSButton]! override func viewDidLoad() { super.viewDidLoad() generateGridNumbers() } func generateGridNumbers() { numbers.shuffle() for (index, button) in gridButtons.enumerated() { button.title = "\(numbers[index])" } } @IBAction func nextNumberButtonPressed(_ sender: NSButton) { if numbers.count > 0 { currentNumber = numbers.removeFirst() numberLabel.stringValue = "Number: \(currentNumber!)" checkWinner() } else { numberLabel.stringValue = "Game over" } } func checkWinner() { // Implement your logic to check if a player has won the game } } [[Special:Contributions/169.224.9.204|169.224.9.204]] ([[User talk:169.224.9.204|talk]]) 17:52, 4 November 2023 (UTC)
== Xcode languages support ==
I noticed the part where it talks about Xcode language support should be updated for the languages it supports today. Does it really have any tooling for Java or Ruby nowadays? And the extra languages that needed plugins probably aren’t supported anymore either. [[User:Balder16|Balder16]] ([[User talk:Balder16|talk]]) 02:25, 12 February 2025 (UTC)
|