UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

About the macOS forum

Forums > macOS

@twostraws  Site AdminHWS+

This forum is for general discussion, questions, and answers about macOS develoment. If you have questions about SwiftUI, you might find it better to ask on the SwiftUI forum instead.

5      

I have a little problem with the project one de "Hacking with MacOS" ; two problems indeed, but i've fixed th first. I have Catalina, and Xcode, and IB in Xcode, does'nt behave as expected. The tableview would'nt display, nothing to do, but with some "print(this), print(that)", i coul verify all was good. It was in IB just a little manip to make not hidden the tableView because the text in cells was'nt justified by default but it is mandatory a justification be marked, hidden text by default.

Now, the image says "I do'nt exist, you can't find me" and don't want to display. Same problem, many print are showing all is good, but nothing in the window ; an idea ?

Sorry for my very bad english ; i read much better i write.

4      

I have fixed my issue with this code for "imageSelected(name)", but I do'nt know why.

func imageSelected(name: String){ var nomen: String let path = Bundle.main.path(forResource: "images", ofType: "bundle")! + "/" nomen = path + name let image = NSImage(byReferencingFile: nomen) imageView.image = image }

4      

Hacking with Swift is sponsored by Essential Developer

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until April 28th.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.