Search results

  1. iconara

    indesign file endings

    I'm curious: what is the file ending of an indesign document? indesign doesn't seem to save files in the native indesign-format with file extensions on... could it be ".ind"? or would that be too simple? theo
  2. iconara

    Am i Mad?!: PowerPC Assembler

    I realise that this was posted long ago, but I wanted to answer anyway... according to my SE/CS-teachers, it's virtually impossible to write assembler for PPC as for any true RISC-processor, because of the minimal instruction set and the fact that the processor doesn't execute the...
  3. iconara

    java or objective c?

    some clarification of speculations above: 1) cocoa/java is not natively compiled. 2) GCC, the compiler that apples ships with the developer tools is completely free and has an extension for compiling java into native machine code called GCJ, see gcc.gnu.org/java. dunno how swing would...
  4. iconara

    Newbie request

    This is Java-hello-world: put this in a text file called HelloWorld.java: public class HelloWorld { public HelloWorld( ) { System.out.println("Hello World!"); } public static void main( String[] argv ) { new HelloWorld(); } } Then you use the terminal...
  5. iconara

    Easy HTTP downloading

    From www.cocoadev.com/index.pl?DownloadingFiles: NSURL *myURL = [NSURL URLWithString:@"http://www.apple.com/"]; NSData *urlContents = [myURL resourceDataUsingCache:YES]; if ([urlContents writeToFile:[@"~/Documents/applewebsite.html" stringByExpandingTildeInPath] atomically:YES]) {...
  6. iconara

    CoreFoundation => Foundation

    it's a pity having to answer one's own questions... this is the way to do it: CFDictionaryRef cfDict = CFDictionaryCreate(...); NSDictionary *nsDict = (NSDictionary *)cfDict; It's actally possible to cast one type to the other. This will result in a compiler warning, but one can...
  7. iconara

    CoreFoundation => Foundation

    I have a CFDictionaryRef and want to make a NSDictionary out of it. Any suggestions on how to do it? The manual way is a possibility, but I rather have a nice little method somewhere, like +dictionaryWithCFDictionayRef: ... both the CoreFoundation and Foundation documentation seems to avoid this...
  8. iconara

    Newbie request

    Why not start in the right end and learn a real language like Java? There are plenty of resources available, and you can use the language for just about anything, anywhere. Once you know Java, C/C++/Objective-C/Insert-your-language-here is no match. Another good language to start with is...
  9. iconara

    Some Java Questions

    This is what you want to do: file myprogram/window/Window.java: package myprogram.window; import myprogram.color; // "public" is important public class Window { // java code here } file myprogram/color/Color.java: package myprogram.color; import...
  10. iconara

    objective-c query

    well, I realize that (it was in my first post...), but I don't want to... it's ugly (in my opinion), it would be nicer to be able to do it in a similar fashion to java regards theo
  11. iconara

    I managed to lose access to my Administrator account...

    This has happened to me aswell. I have a G4/2x450, which as locked me out from my account twice after serious system crashes. the first time I had the root account enabled and everything was fine after a couple of foul words, the second time the root was not enabled and some more foul words were...
  12. iconara

    objective-c query

    1) Yes you misunderstood 2) No, the code compiles fine. A return-type of void is no problem if I don't return anything. Had I set the return type to id and still not explicitly returned something, self would be returned. 3) Tanks anyway =) The question is this: how can I have an...
  13. iconara

    objective-c query

    - (void) setName: (NSString *)newName { [name release]; name = [newName retain]; } ok, that's just fine, but what if i want to name my argument "name" instead of "newName". please rewrite the method if the first line looks like this: - (void) setName: (NSString *)name...
  14. iconara

    Search and replace string

    hi boys and girls: s/abc/bca/g of course that won't work in objc... maybe with the omniframeworks installed... i suggest the NSRange way described above, it's probably the easiest way. had it been perl though... s/abc/cba/ ! theo
  15. iconara

    Whant to learn how to program applications

    Check out http://developer.apple.com and, if you've installed the developer tools, the /Developer/Documentation/Cocoa (or Java or Carbon) folders on you HD. theo
  16. iconara

    Java and main thread error

    You want to have your classes inside a package so that you they live inside their own namespace. consider a company that develops a java-library with a class called Vector (let's call the company "Sun"). Then company b makes a mathematical library with a class called Vector. Company A's...
  17. iconara

    Java and main thread error

    this is the most common of all java problems: > java X Exception in thread "main" java.lang.NoClassDefFoundError: X that means that there is no class named X in the classpath. in turn, the last sentence means that you are not running your application the way you should. In java, one...
  18. iconara

    Computer language showdown!

    Yes, Perl is a good language to know. It's the mother of all ugly hacks. Another language that no one mentioned is Ruby, which is sort of Objective-Perl. It's interesting and worthwile learning. The same for Python. Python is a very good language in my opinion. Myself, I would like to...
  19. iconara

    JavaScript-Cocoa-application

    Ever since I started programming, I have loved the language JavaScript. It was one of the first languages that I learned and the one that I, besides Java, has used the most. With it's prototype-based inheritance and object-functions it's just the most flexible thing there is. I have just...
  20. iconara

    String manipulation in Cocoa

    at first I too thought that the cocoa-libraries did not have any useful string manipulating functions, but I changed my mind. they are not like java (which has good string manipulating functions in my opinion), to get over this I wrote a category (extension) to the NSString class to include the...
Back
Top