Post

Replies

Boosts

Views

Activity

Reply to Cannot set a debug point, project breaks in assembler code.
@Claude31 Hi, thankyou for your reply. I set a breakpoint in applicationDidFinishLaunching: The launch process stops at line 23 (Thread 1) and after two clicks the project runs, but i still could not use debugging. I use macOS 11.2.1, Xcode 11.7 No external frameworks, the shown sample is untouched, except the change of the deployment target to 15.0 After upgrade to Big Sur I used 12.4, then 11.7
Feb ’21
Reply to Core Data : When is the point of no return with adding attributes ?
Yesterday I found in Application Support/CallHistoryDB: Multiline CallHistory.storedata CallHistory.storedata-shm CallHistory.storedata-wal BlockQuote I moved the folder to an external device and killed the original. I setup a new project StoreData, killed the StoreData.xcdatamodeld and replaced it with the model of my project. This works, but before a must Sandbox uncheck.
Feb ’21
Reply to how to implement a tableview.notification in Swift
I corrected the notification and got error : [center.addObserver: self, selector:#selector(rowSelectionDidChange(_:)), name:Notification.Name( selectionDidChangeNotification), object:nil] // error: Expected declaration rowSelectionDidChange(_:) do not belong to tableView, it is the function I want to use if(arrayController != nil){ var selected:[] as Any var arranged:[] as Any /* error : Consecutive statements on a line must be separated by ';' Insert ';' Expected element type Insert ' <#type#>' Expected expression */ selected: NSArray = [arrayController.selectedObjects]; arranged = [arrayController.arrangedObjects]; } } ` p.s. please give me a link of your communication rules .
Mar ’23
Reply to how to implement a tableview.notification in Swift
Hi Claude, it is Swift code, this project shall be the twin of my objective-c what must close because of deprecation of OpenGL. The first what I want is getting access to managedObjects, I send you the AppDelegate : import Cocoa import CoreData @main class AppDelegate: NSObject, NSApplicationDelegate { @IBOutlet weak var arrayController: NSArrayController! @IBOutlet weak var tableView: NSTableView! @objc var currentManagedObject: [NSManagedObject]; // error: func myPrint() { if(arrayController != nil){ print(arrayController!) }else { print("arrayController is NIL") } if(tableView != nil){ print(tableView!) }else { print("tableView is NIL") } } var center = [NotificationCenter.default] [center.addObserver: self, selector:#selector(rowSelectionDidChange(_:)), name:Notification.Name( selectionDidChangeNotification), object:nil] // error: Expected declaration @objc func rowSelectionDidChange(_ notification: Notification){ if(arrayController != nil){ var selected:[] as Any var arranged:[] as Any // error : /* Consecutive statements on a line must be separated by ';' Insert ';' Expected element type Insert ' <#type#>' Expected expression */ selected: NSArray = [arrayController.selectedObjects]; arranged = [arrayController.arrangedObjects]; if((selected.count) >= 0){ // ... } } } func applicationDidFinishLaunching(_ aNotification: Notification) {} func applicationWillTerminate(_ aNotification: Notification) {} func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { return true} } I hope it helps you to help me
Mar ’23