Search results

  1. G

    Project Builder Java Problem (NoClassDefFoundError)

    A breif description of what your code does please? Could u post the source for us to examine? The best way to debug errors is to use a lot of System.out.println("insertHandySaying"); inbetween specific lines of code where you think the problem is, run the code, and notice what the last print...
  2. G

    Putting integers into a mutable array?

    NSMutableArray is an array of objects, and integers aren't objects. You could make an instance of NSNumber with something like [NSNumber numberWithInt:5] HTH, F-bacher
  3. G

    memory management revisited

    The objective C code you originally posted does create a memory leak. The reason is that you make two references to NSString objects and only send a release message to one of them. str is just a reference to a single NSString instance. You send the release message to the second of the two...
  4. G

    Programing for Mac OS X

    Project Builder has auto completion. It's like F2 or F5 or something. I can't remember where I read it, but it's definetly in PB (man, every time I see "PB", I think Public Beta, not Project Builder.) F-bacher
  5. G

    Programing for Mac OS X

    Points of clarification: 1. Carbon is a native API!!! If I hear the aweful lie that carbon is not native one more time, I just might vomit. Apple intended them to run side by side. Now it's easier to right a good Cocoa app than a good Carbon app, but it is technically possible to right a...
  6. G

    dropping files on apps

    Looks right, but I'd check the NSApplication docs in the delegate section near the bottom to make sure. F-bacher
  7. G

    dropping files on apps

    In your application delegate, override this method: public boolean applicaiontOpenFile(NSApplication app, String fileName) HTH, F-bacher
  8. G

    Fun and useful open source project

    So, like a lot of other people, I need quick access to system information and other commands that I use on a regular basis. So what I put together was a little app that would hold different modules for displaying information or commands. It's called EZ Access, and it currently has modules that...
  9. G

    PowerText 1.0b3...

    First of all, what's a button called "Untitled" doing in the middle of your NSTextView? It looks... weird. Why is it a preferene button of all things? Additionally, there's a lot of inconsistantcies in the way the Style panel shows which buttons have been compressed. Bold and italic compress...
  10. G

    Working with strings in Obj-C and Cocoa

    Maybe you can check to see if the value is out of the range of your NSSTring object? I bet it always returns something out of range when it can't find an appropriate index. HTH, F-bacher
  11. G

    Joke

    How did Mac OS Rumors lose their domain name claim to mosr.com? That's got to suck... F-bacher
  12. G

    What Kind of App are you working on?

    Old projects (not working on anymore) myIP randomGuess These two were REALLY bad. Semi-old projects Tic-Tac-Toe Memory Primer Unscrambler xRPN Alarm Clock I really don't work on these anymore New projects Alarm Clock S.E. (my commercial baby ;)) Drop Compress Concorder Most...
  13. G

    "If", a string, and NSTextField in Cocoa

    Well, if you just go ahead and tell him, how is he/she ever going to learn? ;) F-bacher
  14. G

    How to Learn Cocoa

    Well, it kind of depends. The Cocoa API's are generally more geared towards helping you create a user interface, which requires you to be pretty good with object oriented design. That's not exclusivley true, but I think there are plenty of java API's for you to learn before learning the Cocoa...
  15. G

    Beta Testing Anyone?

    I remember doing that in ProDOS! That was back in the day. he labled the first line as "2", in which he printed the word "thank". After that line executes, the next line tells the program to go back to the line labeled "2" and as you can see, that means infinfetly many (or until you reach a...
  16. G

    Working with strings in Obj-C and Cocoa

    rangeOfCharacterFromSet: is what you want for indexOf(). substringWithRange: is what you want for substring(). They do the equivalent, although the name is some what misleading. HTH, F-bacher
  17. G

    help with strings

    From what I understand (and my memory management is as bad as yours, I'm sure), you don't need to send a retain message to [field stringValue] or send a release message to str because stringValue returns an autoreleased object. If you had created an NSString object via an alloc and an init...
  18. G

    "If", a string, and NSTextField in Cocoa

    I think u need to do some more wonk on your own. If you've installed the developer CD, all the documentation is stored in /Developer/Documentation/Cocoa/Reference Just look at the NSString docs in the reference section; it's painfully obvious. Just trying to kick you in the right direction...
  19. G

    how do you use the remote login feature in osx ?

    Actually, the telnet port is turned off (is that the right lingo...?), meaing it's disabled. No telneting in, but that's okay becuase telnet is insecure, while ssh is much more secure. You can of course still telnet out, but I wouldn't recomend it. I use scp and ssh all the time to move files...
  20. G

    iBook ports on left...

    Well they could have put it on the right side, but then where would the drive go? Nobody has it on the left, and I think size prevented from being on the front. I feel ur pain, but I bought a two-button optical mouse with a nice long cord, and I haven't had any real issues with going around...
Back
Top