Search results

  1. iconara

    Why? Why? [ ] Why? Why not . ???

    all obj-c coders are mad, including myself. I do like the []-syntax, even though I agree that it is a bit clumsier.
  2. iconara

    /Users not mounting

    all this is very nice. I, too, want to mount a separate drive as /Users/theo. It is the second partition of my first IDE-HD, how do I find out which /dev/disk#s# it is? theo
  3. iconara

    GUI-less Cocoa

    I want to commit a heresy. I want to create a GUI-less Cocoa application. I have heard rumors about what one must do to make this work. CocoaDevCentral tells me that I can't really make use of Foundation, but must rely on CoreFoundation, which seems not as sexy. I have however gotten the code...
  4. iconara

    Terminal script for sudo command?

    checkout the man pages of sudo and su (type "man sudo" or "man su" in a terminal), they might get you into the right track. I dunno, but there should be a way of sending the password along with the command. seems reasonable. theo
  5. iconara

    memory management revisited

    ghoser>> that was exactly the answer I had in mid. thanks. rharder>> well, no. +alloc is like retain (it increases the retain count by one), but the object is no good without an -init... so you always see these two together. theo
  6. iconara

    memory management revisited

    no I think you've got it all wrong rharder... I belive that you mixed up the two, the -initWithString (accompanied by a +alloc) creates a new object which one does not have to retain to make it stick around, it will do so until you release it. The +stringWithString however is autoreleased...
  7. iconara

    memory management revisited

    <tt> NSString *str; str = [[NSString alloc] initWithString:@"string"]; str = [[NSString alloc] initWithString:@"string again"]; [str release]; </tt> Does this create a memory leak? Should the variable <tt>str</tt> have been released beetween the allocations? I Think it...
  8. iconara

    dropping files on apps

    I assume that in ObjC (as opposed to Java) that would be -(BOOL) applicationOpenFile:(NSApplication *)file fileName:(NSString *)filename am I correct?
  9. iconara

    RE: 2 MacWorld Java Contradictions...

    There is only one thing that counts: 100% Pure Java. There is no other way. If you use Java, then use pure Java. That is the whole point of it. Let's not do it like M$, let's not make Java into something that it shouldn't be. Let's keep to the original thought. Yes, it's a bit reactionary, but...
  10. iconara

    Working with strings in Obj-C and Cocoa

    well hidden in the documentation one can find that the NSRange returned from -rangeOfString: will have NSNotFound as as the value of the location variable, meaning: if( [aString rangeOfString:@"anotherstring"].location != NSNotFound ) { NSLog( @"astring contained anotherstring" ); }...
  11. iconara

    dropping files on apps

    I want to be able to drop a file onto my cocoa-app and get a event telling me theUserDroppedAFileOrFolderOnThisApp:(id)sender how? theo
  12. iconara

    Working with strings in Obj-C and Cocoa

    that is a good idea, Ghoser, thanks. haven't thought of that.
  13. iconara

    Working with strings in Obj-C and Cocoa

    another thing about NSString-ops: if one sends the message rangeOfString:@"a string" to a string, and that string does not contain "a string", what does the message return? I don't get consistent values... I have gotten 2675009 (just making it up, I think it's the max value of an integer) and...
  14. iconara

    What Kind of App are you working on?

    iconara is working on this: - a nice wrapper for gnu wget - a port of the mp3 encoder blade theo
  15. iconara

    Working with strings in Obj-C and Cocoa

    tie>> when one resorts to solutions like that, I think one should doubt that one is doing is the right thing. calling a command-line process just to handle strings is not very compatible nor is it fast. it's just about the slowest thing there is. objective-c's string support isn't that bad...
  16. iconara

    help with strings

    dunno if you want an answer to this now, it was two months ago and you have probably figured it out already. but for others, like me, who browse these forums in search of information, here is the answer to the question: <tt> // assume we have a NSTextField called "field" NSString *str =...
  17. iconara

    Working with strings in Obj-C and Cocoa

    Coming from Java, Obj-C/Cocoa seems to lack good support for working with strings, is this true or am I missing something? What I want to do is assemble this input: <blockquote> <tt> 2620<br> 0K .......... .......... ..<br> ........ .......... ...<br> ....... 77%<br> @ 6.9<br> 8...
  18. iconara

    multiple inheritance

    obj-c does not support multiple inheritance, regardless of what C++ supports. the two languages has only one thing in common: C, and C is not even an object oriented language. obj-c supports, however, protocols which are much as interfaces in Java. for those who do not speak Java, interfaces...
  19. iconara

    Oh, say, can you 'C'?

    one thing you're all missing is that ASP is not a language whilst PHP is. Microsoft actually did something intelligent... ASP is a platform. giving you the possibility to write your web scripts in VB, JavaScript (ehm, JScript, sorry) or even Perl (with some module I think). Save for the...
Back
Top