Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ログインしているアカウントがローカル アカウントか OS X の Active Directory アカウントかを識別する方法はありますか? はいの場合、どうすればドメイン名を取得できますか?
私にとってはコード:
NSMutableString *userDataDirectory = [[NSMutableString alloc] initWithString:NSHomeDirectory()]; NSLog(@"%@", userDataDirectory);
プリント: /Users/jwlaughton
これはあなたが探しているものですか?