Search results

  1. H

    HelloCocoa problem

    -lobc is just to include the Objective-C library. I imagine that apps written in obj-c need it to run :P -framework Cocoa will include the cocoa framework, which is probably also because cocoa applications need it to run. I only started learning Obj-C yesterday, but the above seems logical...
  2. H

    Can't empty trash on removable volume

    I have 250 files in the trash folder on my external firewire drive, but I can't get rid of them because they are all locked. My trash on my desktop might be empty, but when I plug in the external, it suddenly fills up with all the files in the external HDs trash. How do I...
  3. H

    Coercing timespec to time_t

    struct timespec timeNow, timeThen; double seconds = 0; (void) time(&timenow); (void) time(&timeThen); seconds = (double) (timeNow.tv_sec-timethen.tv_sec); printf("%0.0f\n", seconds); That is the way I'm assigning the two times, although in my code it is using the creation date from a...
  4. H

    Users folder in Mac OS X?

    Oh yes, that would probably work. Good idea zap :P I don't have time to test it out now, I just got back from a holiday and I'm leaving on another one in about 1 hour, but I'll try it out upon arrival home.
  5. H

    Coercing timespec to time_t

    Oops, well I feel slightly embarrassed about that now... That will be why there was no time_t entry in the man pages. Thanks for pointing that out rhg. Captain Code, why would it be that my app is still running fine? The reason I never was concerned by it is because my apps still work fine...
  6. H

    Good public folder to save temp logs?

    Yes I knew about the Unix funct, and normally I would have just used man to find if there was a C equivelant. I figured there was no C function because man said there was no entry. I just realised I was searching section 3, not 2, which is why it said there was no entry :p Sorry about that...
  7. H

    Good public folder to save temp logs?

    Another question, hopefully someone will know the answer to: I need a folder to save the real log in, one that is easy for everyone to access and all users will have read and write permissions to. I considered using /Documents, which looked ot be a public documents folder (just what I wanted)...
  8. H

    Good public folder to save temp logs?

    Thankyou very much btoneill. That completely cleared it up :)
  9. H

    Good public folder to save temp logs?

    I have a program that will continue to run even after you have logged out, and runs under all the users accounts. It needs to be able to access it's log at all times, so having the log saved in an admins prefs directory isnt going to work when you log in as a normal user, because it wont have...
  10. H

    Users folder in Mac OS X?

    No, fopen() takes the ~ literally, so it will try to go to the folder called ~ in the root dir. I am pretty confident my method works, but it could theoretically be broken by a crazy user. I'm re-writing that portion of code to make sure that it can't be broken. You would be surprised by...
  11. H

    C++: clrscr() and getch() ?

    Well, there is a getch() function on Mac OS X, just do a man on it. I imagine it will be the same as whatever you used on windows/linux/whatever. To clear the screen, use system("clear"); which will execute the unix clear command, and clear the current screen.
  12. H

    Users folder in Mac OS X?

    hazmat, I tried that as well. I'm using fopen() to get the file, so I can't imagine it will evaluate paths the same way as OS X. I would imagine I need to use exact paths. I probably also need to read the man page :P
  13. H

    Users folder in Mac OS X?

    Well, obviously it will be by default, but my question is if it *can* be changed. zap, I tried using "-<insert name here>/Library/Preferences" to get at it, and it didn't work. Any other ideas?
  14. H

    Users folder in Mac OS X?

    Well, the stock standard users folder on OS X 10.1 and 10.2 is called Users and is located in the root dir of the boot volume. My question is if 10.3 changes this, and also if it is possible (as a root, admin or normal user) to change this. The reason being is that I want to get the users...
  15. H

    Coercing timespec to time_t

    In a project I'm currently working on, I stat a file and use time functions. The stat structure requires that I use timespec structs for my time related file statistics, but I also need to use the current date to find out how long ago the file was created. I can use the function time(struct...
  16. H

    How to make programs run at shutdown?

    Oh thanks floris, I had seen the Loginhooks before but had then been told that there was no logout equivelant. Thanks for correcting me :)
  17. H

    See how tall you are in iPods!

    Whoa... 19.23 iPods. That seems awfully tall, considering I'm only a bit over 6 foot? Heh, I wonder what people will say when I reply "19 iPods" if they ask my height...
  18. H

    How to make programs run at shutdown?

    I have a command-line program I wrote in C that I need to be executed everytime the computer shuts down. On one of my friends computers there is a folder called rc (I think) in the /etc directory, and you can place programs in that and they will be executed at shutdown. Mac OS X however...
Back
Top