Search results

  1. A

    problems with wxPython2.4.2.4 on OSX 10.3

    Pacifist There are also a handful of CLI tools included with the system that allow you to do this, such as bom and pax.
  2. A

    Calling class methods

    [self trialClassMethod_n]; FWIW, class methods are declared starting with +. What you have there is an instance method...
  3. A

    help with applescript

    Oh, it is possible. But we're just too lazy to do it for you, and we are gonna keep telling you that the simplest solution is to create a second user for your sister.
  4. A

    Persistent data

    The most straightforward way is to use the NSUserDefaults class for Cocoa, or the CFPreferences API for Carbon... http://developer.apple.com/documentation/Cocoa/Conceptual/UserDefaults/index.html http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFPreferences/index.html
  5. A

    OS X Stack Size

    If you declare a global char[1024768] in your code, you'll end up tacking an extra megabyte onto your application size. Sure, it'll compress well, but that's about it.
  6. A

    String class for g++ under OSX?

    For Project Builder, your file extension should be .cpp or .cp if you use C++ features in that file.
  7. A

    OS X Stack Size

    The default stack size is 512k on OS X. You're trying to allocate four megabytes on the stack. Try allocating your array on the heap as such: int * array = malloc(sizeof(int) * 1048576); //important stuff goes here free(array);
  8. A

    Basic networking in C

    http://www.ecst.csuchico.edu/~beej/guide/net/html/
  9. A

    stand alone C compiler

    You might want to recheck that. I've never noticed any slowdown on any computer on which I've installed the tools that can be directly attributed to the tools merely having been installed. Are you sure the problem isn't somewhere else? You also might want to try defragmenting/optimizing...
  10. A

    libpcap problems

    You need superuser privileges in order to use libpcap or tcpdump. This means you'll have to run your program (and tcpdump) using sudo. I suppose another solution is to muck with the permissions on /dev/bpf, but I wouldn't recommend it.
  11. A

    Cocoa OpenGL...HELP!

    From what little OpenGL I remember, you'd have to enclose your call to glVertex between glBegin and glEnd: glBegin(GL_POINTS); glColor3f(1.0,1.0,1.0); glVertex2f(50,50); glEnd(); The glBegin() tells OpenGL what kind of things you want to draw using your glVertex()es. Among...
  12. A

    Javafun

    also, why?
  13. A

    Inspecting a "Carbon" application

    http://www.datarescue.com/
  14. A

    RB emailer

    Here is the mailto: URL documentation. Just construct a mailto: URL, and pass it off to whatever RB has as the system URL handler... http://www.faqs.org/rfcs/rfc2368.html
  15. A

    Cocoa Color picker pref

    I found it by running fs_usage to watch filesystem activity, then messing around with a color picker to see what files get changed, and then examining each file for color-related stuff. The file didn't actually get touched until I created a new Terminal window, however...
  16. A

    Cocoa Color picker pref

    The file you're looking for is ~/Library/Preferences/.GlobalPreferences.plist More specifically, the key within that preference file pertaining to the colors is NSColorSwatchData, and you can transplant that from one file to the other if you don't want to muck up stuff like your double-click...
  17. A

    BSD libs on Mac OS X

    Just for the record, a symbol is formed by prefixing a C function with an underscore. So yes, the symbol _ftime corresponds to the C function ftime. I checked, and the documentation on ftime IS inconsistent - libcompat isn't on OS X. So, uh, for all of you who need ftime, it's in libcrypto. =O
  18. A

    WinApp() equivalent in MacOSX/0

    You'd have to add an extra build phase to copy the shell script to the right place, but yeah. You can put any valid executable in an app, including a #! equipped shell script.
  19. A

    WinApp() equivalent in MacOSX/0

    To make a double-clickable, faceless app, just make an ordinary Cocoa application in Project Builder, then remove its main.m file, and add in your own source files for your console app. The resulting app will be double-clickable, won't show up in the dock, and won't open Terminal. If you want...
  20. A

    BSD libs on Mac OS X

    From the ftime(3) manpage: You'll have to link in libcompat.
Back
Top