Search results

  1. A

    BSD libs on Mac OS X

    I'm quite sure that both of those libraries are part of libc on OS X. Thus, you don't need to link in any extra libraries to use sockets or NSL. You could either modify the makefiles so they do not require those libraries, or create dummy libraries only so that the linker finds them.
  2. A

    execute a script by clicking

    Naming the script with .command will cause it to be opened up in Terminal. If your shell script is called MyScript: Create a folder called MyScript.app. In it create a folder called Contents. In that create a folder called MacOS. In that, place MyScript. Make sure MyScript has execute...
  3. A

    Carbon: execute terminal program from Carbon App

    If by Carbon you mean procedural C: int myPipe[2]; int err, child_pid; err = pipe(&myPipe); //creates the pipe - data written to myPipe[1] can be read from myPipe[0] child_pid = fork(); if(child_pid == 0) { err = dup2(myPipe[1], 1); //set myprogram's standard output to the...
  4. A

    deleting an volume that's not reconised

    When you boot from a CD, the operating system still needs a portion of disk space somewhere to store temporary files. It won't store them on your hard drive, because that would be rude. Instead, it creates a "ram disk", which is a portion of your main RAM which acts as a hard drive. That is...
  5. A

    add hint track

    Ah, sorry. You also need to add Quicktime.framework for those symbols. And no, this will not run on linux machines - Carbon.framework and Quicktime.framework are only available on OS X.
  6. A

    add hint track

    You need to link to the Carbon framework. You can do this by adding Carbon.framework to your project in Project Builder, or appending -framework Carbon to your linking command.
  7. A

    changing ownership

    It would be in your best interest, then, to learn about shell scripting. Here's an example, for bash, which should do what you need: #!/bin/bash for i in `ls /Users` do chown -R $i /Users/$i done Stick that in a file, chmod +x it, and run it.
  8. A

    Some sort of alias

    It certainly does not. It would make a symbolic link "home", which points to whatever your home folder was at the time you ran ln -s. One solution would be creating an Applescript or other program which created an alias like that, and adding the program to each user's Login Items. Another...
  9. A

    changing ownership

    Many programs don't need the overhead of forking another process just to alter ownership. However, I just read your purpose which I had missed a few posts ago, and chmod -R is indeed the way to go. You can use either UID:GID or username:groupname to specify an owner.
  10. A

    changing ownership

    You can use getpwnam() to look up a struct passwd * by name. -_-;;;;
  11. A

    using frameworks from bundles (why cannot that be done?)

    This is pretty much theory, but I believe you could build the SDL_image framework with an installation path which reflects the framework's location relative to the program which loaded the bundle: @executable_path/../Plugins/MySDLPlugin.plugin/Contents/Frameworks/ I'll come back and test...
  12. A

    changing ownership

    Yes. Okay, I'll tell you what it is. It is chmod(): http://www.osxfaq.com/man/2/chown.ws If you don't have it already, you'll need to get the UID of the user you want to give ownership to. You can do this with the getpwent() family of functions...
  13. A

    Help needed

    From the page you just linked: Just download the one from Apple and you're good to go.
  14. A

    Konfabulator Woes

    I'm no Konfabulator expert...in fact, I have never touched the damn thing! However, I can see that after every call to getVal(), fill.width will be reduced to some fraction of its previous value. Its previous value, not its maximum. I suggest doing something like storing fill.width's initial...
  15. A

    NSBezierPath & stray 320 ?? :S

    A stray is something that doesn't belong where it is. I guess the compiler decided that since \320 wasn't code, it was in the wrong place. I think Obj-C works the way C++ used to: Obj-C constructs are first preprocessed into C, then C is compiled. A bug probably caused some bogus...
  16. A

    A lame question from a newbie

    http://www.apple.com/applescript/release_notes/181OSX.html The gestalt selectors are listed here: http://developer.apple.com/documentation/Carbon/Reference/Gestalt_Manager/
  17. A

    libpcap and OS X?

    Yes. The -l flag is passed to gcc (and indirectly, the linker 'ld') indicating that it should link in a library. When the linker encounters -l, it takes the following characters and uses them to construct filenames to search for the library as. It does this by prepending 'lib' and appending...
  18. A

    yet another beginner

    You need to #include iostream (forum eats angle brackets) in order to use cout. What are you including now?
  19. A

    Configure samba "computer description"

    Edit your /etc/smb.conf so that it contains a line like this one after [global] server string = This Computer's Description If you put %v in the description, it will be replaced with the Samba version number. Likewise, %h will be replaced by the server's hostname(in your case, supermac).
  20. A

    stupid question about Mac OS X and python

    Well, that would be your python program. Mine is /usr/bin/python, use 'where python' in tcsh or 'type python' in bash to find out where yours is. In fact, if you set your script file up right with #!/usr/bin/python as the first line, with execute permissions (chmod u+x script.py), you can just...
Back
Top