Profile Photo
Using an IBAction ...(_ sender: NSButton) getting the state to change a bool. However setting the state initially whilst populating a table gives oposite results ... @IBAction func addCheckValue(_ sender: NSButton) {… (Show more)
in Swift
Profile Photo
I have a weak var WindowController which will close outside a DispatchQueue but no way inside, calling main synchronously or async ?
in Swift
Profile Photo
My brain is fried from heat, not even sure how to pose the question.   I have a class that has a var let's say "var isRunning: Bool = false", within it's parent another class instance with the same var where I want it to be controlled from. If I link the two, initially it's reading the var but changing later has no affect.   Sorry, I know this… (Show more)
in Swift
Profile Photo
I've looked for a while and maybe it's my search parameters but can't find doing this with Swift (5). An example I've looked at I need to translate somehow ... https://searchcode.com/file/101621017/OpenEmu/OEFileManager.m   So far I've only managed to copy a file, let from_cchar = from.path.cString(using: .utf8)!… (Show more)
in Files and Storage
Profile Photo
Using copyfile's flags, I have an example in what I assume is C but no idea what it translates to in Swift ... "flags: Int32 = COPY_ALL" but want to append "flags |= COPY_MOVE" ?
in Swift
Profile Photo
I'm still not sure when to use [weak self] within closures I do use trailing closures probably more often than I should. This question though, would I need to use it in the case of an Array Filter ?
in Swift
Profile Photo
I found I need to use Aspect Fit but can't find it anywhere in the IB. Supposedly should be under the Attributes Inspector "Mode" but this doesn't exist. I set the constraints to "Superview" which is a Box an had to set scaling to none otherwise it doesn't fill, programatrically at runtime the image will change and no constant size but doing this… (Show more)
in Interface Builder
Profile Photo
So using let creates a strong reference, what about if let ?
in Swift
Profile Photo
Is it possible to have an NSAlert show & wait for the result within a DispatchQueue.Global.Async ? Since it needs to be done on the main thread.
in Swift
Profile Photo
Is there a Calendar View to use in a Storyboard or are they custom made ?
in Cocoa
Profile Photo
Trying to add constraints to items within subviews, mainly left view. If I set the constraints 0,0,0,0 filling the view, the trailing space keeps messing up to the right view. Anyone had this problem and know how to fix it ?
in Interface Builder
Load more items