why NSTask is Process on Apple platforms but it's Task on Linux?


(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


(Philippe Hausler) #2

Looks like that renaming didn’t get updated correctly on swift-corelibs-foundation. I filed - https://bugs.swift.org/browse/SR-3279

···

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


#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


(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 - https://bugs.swift.org/browse/SR-3279

···

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