Search results

  1. A

    Installing ncurse on Panther

    No, but you can man ncurses | lp to print the manual page....
  2. A

    API for updating bundle params?

    Read the info.plist into a CFDictionary, modify it, then write it out again. Documentation
  3. A

    Escape character in Sed

    Generally, put a \ in front of it.
  4. A

    Trouble with a regular expression : [^<>]

    Actually, [^<>] matches any line which contains any one character which is neither < or >. This is the vast majority of lines, excluding lines such as "<>" or "<<". If you want lines which contain neither character, you will have to match the lines which do contain either and throw them out...
  5. A

    Installing ncurse on Panther

    The -l option causes the linker to search for libraries in /usr/lib. If you specify -lmysql, it will look for /usr/lib/libmysql.a or /usr/lib/libmysql.dylib. If neither of these is present, you will need to install one of them. If the library is in a different path, /usr/share/pgsql/lib for...
  6. A

    Installing ncurse on Panther

    You need to specify the linker flag -lncurses: gcc -lncurses tt.c This causes gcc to find the library /usr/lib/libncurses.dylib and link it into your program, giving it access to all of those symbols.
  7. A

    Installing ncurse on Panther

    ncurses is already included with Panther. Are you having any problems using it?
  8. A

    C++ and XCode Question

    Double-click on your program's executable under "Executables", and under "Runtime", set the working directory to the project directory. By default, it is the build products directory.
  9. A

    distributive build and xcode

    Try downloading and building a big project like http://fire.sf.net. I don't think it activates if it decides it would take longer to transfer than to compile locally.
  10. A

    Web based IM

    Aim Express - Java applet-based AIM client. I think this is in the wrong forum.
  11. A

    Box object in IB?

    You don't need to drag a box out from the control palette. Just select your controls, since they are NOT covered by a box, and go Layout > Make Subviews of > Box. This creates a NEW box, enclosing your controls in it, and KEEPING the connections. I suggest you try it.
  12. A

    Box object in IB?

    Select your controls, and go Layout > Make subviews of > Box. After that, you can double-click the box to edit its contents.
  13. A

    Accessor methods in Obj-C

    You should always retain the new value before releasing the old one. Otherwise, you might run into the problem where the old value has the only reference to the new one, and releasing it causes both to disappear; check before change won't help here, but you should check anyway, as it does speed...
  14. A

    HelloCocoa problem

    Er.....did you #import <Cocoa/Cocoa.h> or <Foundation/Foundation.h> ?
  15. A

    HelloCocoa problem

    Well, you can run the command 'sudo fixprecomps' to recompile and bring the precompiled headers back up to date. This might take a while.
  16. A

    HelloCocoa problem

    -lfoo causes the linker to link in the shared library /usr/lib/libfoo.dylib or static archive /usr/lib/libfoo.a. The dylib takes precedence over the archive, and takes up far less space in the resulting executable. The library /usr/lib/libSystem.dylib is linked in automatically for C programs...
  17. A

    HelloCocoa problem

    The syntax is: cc main.m -lobjc -o prog1 If you intend to do more interesting things than subclass Object, you'll end up using the Cocoa framework: cc main.m -framework Cocoa -o prog1 And, uh, I wouldn't recommend subclassing Object anywhere beyond this mickey mouse program, as it...
  18. A

    MS Visual C++ project, what can open it?

    Post the URL to this SDK here and see if any of us want to port it.
  19. A

    Saving user preferences and files

    Or better yet, use dynamic allocation a la NSString. Then load your data using NSData. Unless using Cocoa is a problem, which is only if you're targeting Carbon or strictly UNIX.
  20. A

    Saving user preferences and files

    For one thing, you can't open the file with only write "w" access and then expect to use fread on it. Try "r+" mode. Other than that, I can't see how the code doesn't work.
Back
Top