Post

Replies

Boosts

Views

Activity

Reply to NSTableView in view controller problem
``class pInfoViewController: NSViewController, NSTableViewDataSource, NSTableViewDelegate {     @IBOutlet var infoTable : NSTableView!     var artists = artistModel() @IBAction func tableViewDoubleAction(sender: AnyObject)   {         let r = infoTable.clickedRow            aPainterWindow = painterWindow(windowNibName: "painterWindow")                 aPainterWindow.setPainter(ID:artists.patienterNID(index:r))         aPainterWindow.showWindow(self)     }     @IBAction func painterClicked(sender : Any)   {         let r = infoTable.clickedRow                    let painterID = artists.patienterNID(index: r)         print("load paintings for painterID = (painterID).")           NotificationCenter.default.post(name: NSNotification.Name(rawValue: "loadPaintingsForPainter"), object: painterID )     }     func reloadDataAndTable()     {         artists.loadAllPainters()         self.infoTable.reloadData()     }     override func viewDidLoad()     {         super.viewDidLoad()         reloadDataAndTable()     }     func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView?     {         let cell = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: "Painter"), owner: self) as? NSTableCellView         cell?.textField?.stringValue = artists.itemN(index:row)         print("piv row=(row). value= (artists.itemN(index:row)).")         return cell     }         func numberOfRows(in aTableView: NSTableView) -> Int       {       return artists.nItems() } }.` `
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’22
Reply to Horizontal window/map on visionOS
Start with the basic volumetric app in Xcode. Look here for an example; https://stackoverflow.com/questions/78265212/how-to-display-3d-map-in-realitykit In that example the placed the view over a cylinder, but you can use a box like the example you linked to. You can add whatever you want to the sides of the box. This should get you started.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’24
Reply to NSTableView in view controller problem
``class pInfoViewController: NSViewController, NSTableViewDataSource, NSTableViewDelegate {     @IBOutlet var infoTable : NSTableView!     var artists = artistModel() @IBAction func tableViewDoubleAction(sender: AnyObject)   {         let r = infoTable.clickedRow            aPainterWindow = painterWindow(windowNibName: "painterWindow")                 aPainterWindow.setPainter(ID:artists.patienterNID(index:r))         aPainterWindow.showWindow(self)     }     @IBAction func painterClicked(sender : Any)   {         let r = infoTable.clickedRow                    let painterID = artists.patienterNID(index: r)         print("load paintings for painterID = (painterID).")           NotificationCenter.default.post(name: NSNotification.Name(rawValue: "loadPaintingsForPainter"), object: painterID )     }     func reloadDataAndTable()     {         artists.loadAllPainters()         self.infoTable.reloadData()     }     override func viewDidLoad()     {         super.viewDidLoad()         reloadDataAndTable()     }     func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView?     {         let cell = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: "Painter"), owner: self) as? NSTableCellView         cell?.textField?.stringValue = artists.itemN(index:row)         print("piv row=(row). value= (artists.itemN(index:row)).")         return cell     }         func numberOfRows(in aTableView: NSTableView) -> Int       {       return artists.nItems() } }.` `
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Xcode 9 beta storyboards and xibs all open as xml, not interface builder
Thanks! What a life saver. Here we are in Xcode 13.3 and this still happens. Pulled out some hair on this one.
Replies
Boosts
Views
Activity
Mar ’22
Reply to how to add entities to a volume or immersive view programmatically?
It seems that the answer is that you have to both add an entity and set the entities parent to make it visible; content.add(anchorEntity) anchorEntity.setParent(content) modelEntity.setParent(content)
Replies
Boosts
Views
Activity
Oct ’24
Reply to Horizontal window/map on visionOS
Start with the basic volumetric app in Xcode. Look here for an example; https://stackoverflow.com/questions/78265212/how-to-display-3d-map-in-realitykit In that example the placed the view over a cylinder, but you can use a box like the example you linked to. You can add whatever you want to the sides of the box. This should get you started.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to Guided Capture iOS analysis phase time?
Thanks. It gave up after about 30 hours and said try again!
Replies
Boosts
Views
Activity
Jan ’25
Reply to Apple Intelligence stuck on "preparing" for 6 days.
Still happening with 15.3.1. No betas either.
Replies
Boosts
Views
Activity
Feb ’25
Reply to how to convert mlmodel to reference object?
Thanks. I did, in fact, use object detection instead of tracking.
Replies
Boosts
Views
Activity
Feb ’25
Reply to Xcode autosave issue
This happens to me when my project is on an external disc and there is a problem with the disc. Remounting the disc will solve the problem, but Xcode will have to be force quit before you can go on.
Replies
Boosts
Views
Activity
Sep ’25