 |
 |
Standard Library Documentation
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status:
Offline
|
|
Where can I find documentation for standard C/POSIX stuff in PB? I couldn't even get it to find printf for example.
What I really need is something equivalent to Thread.sleep(n) in java, which sleeps for n milliseconds before continuuing execution. I have tried all of Apple's online books but those are too verbose and not detailed enough.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2000
Status:
Offline
|
|
/usr/share/man/man3 is probably your best bet.
man 3 sleep and man 3 usleep should provide you with what you need. You might also be interested in man pthread.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2000
Status:
Offline
|
|
If you're working with Foundation, you should probably look at NSThread sleepUntilDate:.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status:
Offline
|
|
Originally posted by int69h:
/usr/share/man/man3 is probably your best bet.
man 3 sleep and man 3 usleep should provide you with what you need. You might also be interested in man pthread.
Thanks for the help. I didn't think to try man, and when I added different headers to my project I noticed that more results started to appear in the documentation viewer. sleep(int) did the trick.
My problem with the man pages is I don't have someplace to search for topics that I don't really know much about (as in this case), since I don't really have any good keywords to lookup.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2000
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Nov 2001
Location: State of Denial
Status:
Offline
|
|
Originally posted by absmiths:
Thanks for the help. I didn't think to try man, and when I added different headers to my project I noticed that more results started to appear in the documentation viewer. sleep(int) did the trick.
My problem with the man pages is I don't have someplace to search for topics that I don't really know much about (as in this case), since I don't really have any good keywords to lookup.
How about apropos?
|
|
[Wevah setPostCount:[Wevah postCount] + 1];
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status:
Offline
|
|
Originally posted by Wevah:
How about apropos?
Yet another unix tool that I knew nothing about. Although, ironically enough, it has no man page.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2000
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |