Search results

  1. iconara

    "switching" NSStrings

    there might be some way to do it, but I really encourage you not to try. the thing with switches is that they rely on equality, and that is fine with primitive data types (int, float, char, pointers). when it comes to objects, however, no two are equal (in the "==" sense), unless they are the...
  2. iconara

    How to do this?!

    This code is not tested, just written from memory, but it should do the trick: // this method is invoked whenever a button is pressed // not only when "9" is pressed - (IBAction)buttonPressed:(id)sender { // here we should determine which button was pressed // assume sender...
  3. iconara

    String manipulation in Cocoa

    exciting, four posts in 30 minutes... and you found the answer yourself. good work! =)
  4. iconara

    What Languages Do YOU Know?

    The programming languages family tree (not the one in Wired, but the original. Wired's was nicer, and had comments): http://perso.wanadoo.fr/levenez/lang/history.html I also found a site with a complete list of the major events in the history of programming languages...
  5. iconara

    What Languages Do YOU Know?

    Wired magazine had a nice article about programming languages in the latest issue, with a very nice chart over the most common and their relations. theo
  6. iconara

    new dev tools with 6c106 :)

    great... now apple will close this board down for posting NDA documents...
  7. iconara

    NULL meaning in MySQL

    I think you got it wrong c2 INT NULL is (most probably) the same as c2 INT DEFAULT NULL which means that the default value of the field should be NULL which is the same as c2 INT (since any field will, by default, be NULL if not explicitly given a value)...
  8. iconara

    NULL meaning in MySQL

    try the DESCRIBE function: > DESCRIBE toto; +-------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+---------+------+-----+---------+-------+ | c1 | int(11) | | | 0 | | | c2 | int(11) | YES | | NULL...
  9. iconara

    What Languages Do YOU Know?

    people on this board really have a problem with irony.
  10. iconara

    Java compile

    that is correct. you don't have to have the devtools installed to compile java, since the jdk (java developer kit) is installed in the base system. I suggest typing "javac" on the command line to get more information about how to compile (basically is just "javac ClassName.java" but there's a...
  11. iconara

    Where's the good UNIX ".cshrc" file gone?

    tcsh can be configured either by the ol' .cshrc or .tcshrc conf-files, or by placing a bunch of files in ~/Library/init/tcsh (I'm writing from memory here, not on my X-box now) called alias, environment, rc and stuff. Place the corresponding commands in them and it works just like .tcshrc, but...
  12. iconara

    Java classes

    try quoting the path: setenv CLASSPATH "~/Library/Java" shouldn't make a difference though... what error do you get? the line you use seems correct to me. try executing it directly in your shell and see if you get an error there, if not, then something else is wrong. which shell...
  13. iconara

    Java classes

    well, extensions take precedence over the CLASSPATH, but you shouldn't include jar-files in your extensions-directory in your classpath. x probably includes java.sql, you could test that easily like this (save code as SQLTest.java and fix any errors...): import java.sql; public class...
  14. iconara

    One more Question...

    Also check out RubyCocoa (a Ruby-ObjC bridge). theo/iconara
  15. iconara

    How do I program a screen saver for OS X?

    Search for screensaver or something similar on versiontracker.com, get those that are freeware and include sourcecode (there are some). The ScreenSaver.framework is what you are interested in. Also check out thistutorial at CocoaDevCentral. theo/iconara
  16. iconara

    What Languages Do YOU Know?

    ladavacm, do you know why the Y2K-scare was so big? No one knows how to reprogram the banks COBOL-systems anymore... So if your're in it for the big money, you learn COBOL to be able to remake those monsters in C. The thing with those languages you mentioned is that they are only around today...
  17. iconara

    Java classes

    Java is not like the others. Java depends on an environment variable called CLASSPATH, that variable tells the Java Virtual Machine (the thing that runs Java, invoked by the command "java" on the commandline) where all Java-classes are located. Classes can be separate .class-files in...
  18. iconara

    Cocoa and listing folder contents...

    check out NSDirectoryEnumerator in the documentation of Foundation and this article at CocoaDevCentral theo
  19. iconara

    Am i Mad?!: PowerPC Assembler

    well Altivec is not PPC. They are two separate beings (PPC is the CPU, Altivec is a slave/helper processor). You cannot write more efficient PPC assembler than GCC, but you can probably hack good Altivec assembler if you're into it. It's not just PPC assembler in particular, it's...
  20. iconara

    Hard disk not seen

    Linux uses ext2 filesystems, OSX uses HFS+. Linux cannot read HFS+, OSX cannot read ext2. Disk utility knows there's a HD where the Linux disk is, but not what's on it. theo
Back
Top