Subscribe ( )

iPhone Programming Tutorials



You must be logged in to post Login Register


Now stuck on something else….. :-(

User Post

11:59 am
November 19, 2008



posts 5


This is the main problem for me with the Objective-C syntax…

I'm not sure if I'm being slow or not just understanding the syntax at all.

There seems to be very little in the way of sample code in the developers help files and there is little else on the web.

In the second part of the lesson 1B of the Stanford files, there is a bit about processes. I've used the sample code to get the process name;

“NSString *processName = [[NSProcessInfo processInfo] processName];”

Problem is, I cannot work out how to get the process ID, here is the developer notes;

Returns the identifier of the process.

- (int)processIdentifier

Return Value
Process ID of the process.

How do I use this and what should the syntax be? I'm pretty much stumped by it… Embarassed



About the iCodeBlog forum

Currently Online:

6 Guests

Maximum Online: 25


Groups: 2

Forums: 6

Topics: 215

Posts: 617


There are 434 members

There are 1 guests

Brandon has made 87 posts

Top Posters:

bobcubsfan - 52

crazyiez - 30

VertigoSol - 26

Uhu - 17

AdeC - 17

Administrator: Brandon | Moderators: VertigoSol

© - Version 3.1.4 (Build 357)