I am aware of Regex, but it's not the same as direct file pattern globbing. And for my case, I need to support older macOS versions (11+), but Regex is only available on macOS 13+.
Ah, yes. This is the second time I fell into the same pit. The last time was years ago... Just hate this design by Apple, why a tight loop cannot have ARC automatically?
Ah, English is not my native language. And any legal documentation is cryptic to me, I can never understand them, even if they are written in my native language.
I am on Appkit, it seems NSScrollView does not have onChange event, and I cannot find any properties/notifications that can tell me the current scroll position. That's odd.
The info in the language reference does not explain what's the difference.
It seems when used in file level private is same as fileprivate:
class SandBoxVC: NSViewController {
override func viewDidLoad() {
super.viewDidLoad()
print(aaaa, bbbb) // no compiler error here
}
}
fileprivate let aaaa = 1234
private let bbbb = "bbbb"
I almost believe this is an oversight bug in Swift compiler - private should not be used in file level.
Yes, this is just what I want. I wanted the experts to confirm that private and fileprivate at file level work the same way.
BTW, I am quite familiar with private modifier inside enum/class/struct definitions.
I am aware of Regex, but it's not the same as direct file pattern globbing. And for my case, I need to support older macOS versions (11+), but Regex is only available on macOS 13+.
Ah, yes. This is the second time I fell into the same pit. The last time was years ago... Just hate this design by Apple, why a tight loop cannot have ARC automatically?
Ah, English is not my native language. And any legal documentation is cryptic to me, I can never understand them, even if they are written in my native language.
I am on Appkit, it seems NSScrollView does not have onChange event, and I cannot find any properties/notifications that can tell me the current scroll position. That's odd.
The info in the language reference does not explain what's the difference.
It seems when used in file level private is same as fileprivate:
class SandBoxVC: NSViewController {
override func viewDidLoad() {
super.viewDidLoad()
print(aaaa, bbbb) // no compiler error here
}
}
fileprivate let aaaa = 1234
private let bbbb = "bbbb"
I almost believe this is an oversight bug in Swift compiler - private should not be used in file level.
Yes, this is just what I want. I wanted the experts to confirm that private and fileprivate at file level work the same way.
BTW, I am quite familiar with private modifier inside enum/class/struct definitions.