Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

updated at

[cocoa] NSWorkspaceとは?

先日のAKIBA.swiftで、macOSでURLを開くAPIが以下なのだが、NSWorkspaceって何?となったので調べてみた。

let urlString = "http://www.bitz.co.jp/"
if let url = URL(string: urlString) {
    NSWorkspace.shared().open(url)
}

NSWorkspaceのWorkspaceは、macOSのFinderに相当する、NeXTSTEPのWorkspace Managerからきている。

openstepfilemanager2.png

macOSでは"workspace"サービスを提供するのがNSWorkspaceクラスで、Finderの操作の機能をて提供している。

関連情報
Cocoa Advent Calendar 2017

Cocoa勉強会 BUKURO.swift (connpass)

Cocoa勉強会 BUKURO.swift (ATND)

Cocoa勉強会 BUKURO.swift (Peatix)

【Cocoa練習帳】
http://www.bitz.co.jp/weblog/

http://ameblo.jp/bitz/(ミラー・サイト)

Qiita

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What are the problem?