IOS usage accumulation-nsprocessinfo class

Source: Internet
Author: User

 
+ (Nsprocessinfo *) processinfo // return the information of the current process-(nsarray *) Arguments // return the parameters of the current process in the form of an nsstring object array-(nsdictionary *) environment // return the dictionary of variables/value pairs to describe the current environment variables (such as path and home) and their values-(INT) processidentifier // return the process identifier, it is a unique number assigned to a process by the operating system. It is used to identify each running process-(nsstring *) processname // return the name of the currently running process-(nsstring *) globallyuniquestring // each time this method is called, different single-value strings are returned. You can use this string to generate a temporary Single-value File Name-(nsstring *) hostname // return the host system name (in the author's Mac OS X system, the returned Mac-m Ato-ipad.local)-(nsuinteger) operatingsystem // returns the number representing the Operating System (5 in the author's Mac OS X System)-(nsstring *) operatingsystemname // return the name of the Operating System (nsmachoperatingsystem is returned in the author's Mac OS X system. The value may be defined in nsprogressinfo. in the hfile)-(nsstring *) operatingsystemversionstring // return the current version of the operating system (the author returns version 10.7.5 (build 11g56) in Mac OS X)-(void) setprocessname :( nsstring *) Name // set the current process name to name. This method should be used with caution. There should be some assumptions about the process name (such as the user's default settings)


Nsprocessinfo

Reference

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.