MrBee
(Mr Bee)
1
Hi all,
It took me a few hours to find out why Process is unknown on Linux while it's available on macOS/iOS. Turned out, it's still called Task. Why is that? Is there anything like this on Swift Standard Library and Foundation for Linux?
Thank you.
Regards,
–Mr Bee
Looks like that renaming didn’t get updated correctly on swift-corelibs-foundation. I filed - [SR-3279] NSTask was incorrectly renamed to Task instead of Process · Issue #3912 · apple/swift-corelibs-foundation · GitHub
···
On Nov 26, 2016, at 9:42 PM, Mr Bee via swift-users <swift-users@swift.org> wrote:
Hi all,
It took me a few hours to find out why Process is unknown on Linux while it's available on macOS/iOS. Turned out, it's still called Task. Why is that? Is there anything like this on Swift Standard Library and Foundation for Linux?
Thank you.
Regards,
–Mr Bee
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users
xBACP
3
Mr Bee,
My best guest is that it is NSTask on MacOS because the class contains some Mac-specific stuff, enough to justify the distinction.
···
On Nov 27, 2016, at 12:42 AM, Mr Bee via swift-users <swift-users@swift.org<mailto:swift-users@swift.org>> wrote:
Hi all,
It took me a few hours to find out why Process is unknown on Linux while it's available on macOS/iOS. Turned out, it's still called Task. Why is that? Is there anything like this on Swift Standard Library and Foundation for Linux?
Thank you.
Regards,
–Mr Bee
_______________________________________________
swift-users mailing list
swift-users@swift.org<mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users
MrBee
(Mr Bee)
4
Thank you.
It also seems wrong on the (online) documentation. NSTask is available on objective C, but when I choose Swift, it shows the Process reference (though the content is actually similar since Process is actually NSTask).
–Mr Bee
Pada Min, 27 Nov 2016 pada 23:31, Philippe Hausler<phausler@apple.com> menulis: Looks like that renaming didn’t get updated correctly on swift-corelibs-foundation. I filed - [SR-3279] NSTask was incorrectly renamed to Task instead of Process · Issue #3912 · apple/swift-corelibs-foundation · GitHub
···
On Nov 26, 2016, at 9:42 PM, Mr Bee via swift-users <swift-users@swift.org> wrote:
Hi all,
It took me a few hours to find out why Process is unknown on Linux while it's available on macOS/iOS. Turned out, it's still called Task. Why is that? Is there anything like this on Swift Standard Library and Foundation for Linux?
Thank you.
Regards,
–Mr Bee
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users