Search results

  1. A

    VERY grizzled OpenGL coders needed

    You shouldn't call loadGLTextures() in display(). Doing so causes the texture file to be needlessly reloaded over and over.
  2. A

    converting Windows ScreenSavers to Mac OS X screensavers

    The short answer: It's not worth the effort. The long answer: You need to learn the drawing and the screensaver API of both Windows and Mac OS X, and then either emulate the Windows API with ones you write yourself, or go through the source you have line-by-line and replace the Windows API...
  3. A

    Unicode conversion

    int x; NSString *str = @"Print this string vertically"; NSRange range; for (x = 0; x < [str length]; x++) { range = NSMakeRange(x,1); NSLog(@"%@",[str substringWithRange:range]); } When using NSLog or -[NSString stringWithFormat:], you...
  4. A

    Creating a splash screen

    Use CreateNewWindow with a windowClass of kPlainWindowClass, or create the window in Interface Builder with class "Plain".
  5. A

    newb mac programming question

    You can just add -L/usr/local/lib to your command-line to put it in the lib search path.
  6. A

    Drawing ImageCells in a NSView

    I assume you went through the work of stuffing an NSImage into each NSImageCell. Why not just draw each NSImage into that view like so: NSArray * imageArray; //put images in imageArray NSEnumerator * imageEnumerator = [imageArray objectEnumerator]; NSImage * img; [testView lockFocus]...
  7. A

    Mac boots into Darwin....help!!!

    Try entering this command: sudo /sbin/SystemStarter Normally, you have to hold down Command-Shift-S to boot in single-user mode. Inspect your /etc/rc and make sure it has SystemStarter -g ${VerboseFlag} ${SafeBoot} or similar near the end.
  8. A

    Start a GUI app as a daemon?

    Appending a & to a command line causes that command to be run in the background, returning control of the terminal to the shell rather than suspending the shell until the command terminates.
  9. A

    Take a look at this and explain to me what is going on...

    kernel_task is just a handy abstraction that top uses to represent the resources consumed by the Darwin kernel itself. It's not a process that shows up in ps. Generally, you don't need to worry about it. Also, on a multi-processor machine, a program could easily spend 3 hours on each...
  10. A

    Updating libtool on 10.1.5

    Those patches are in a format understood by the 'patch' tool. Copy the patch into a file, then invoke 'patch oldfile < patchfile' where oldfile is the file to be patched and patchfile is the file containing the patch.
  11. A

    iSync Window Style

    To implement this in Cocoa, use a NSWindow with the NSBorderlessWindowMask style mask, and have a custom NSView that you implement which draws the striped title bar.
  12. A

    Change the size of the Jaguar Find dialog...?

    Okay, you have to edit Finder.app/Contents/Resources/(desired language).lproj/Localized.rsrc using Metrowerks Powerplant Constructor. I'm not sure which versions will work, but I'm quite sure you wouldn't want to run any of the pre-OSX versions. Go to PPob resource 8000, which is the search...
  13. A

    shared memory in classic

    Sure you can. The old Mac OS didn't have protected memory, so in a way, all of it is shared.
  14. A

    Programming Practice

    http://www.topcoder.com/ At one point you could compete for cash prizes quite often, but now prizes are only given at tournaments. Requires Java.
  15. A

    Mac Winsock

    If you're willing to eschew OS 9 compatibility, you can just use the BSD socket APIs, which are very similar to winsock APIs.
Back
Top