Search results

  1. G

    Beta testers needed for Alarm Clock beta

    (You may have already seen this on Macnn) Hi, I'm the developer of a program called Alarm Clock S.E., and its going through a major rewrite that's making it a much stronger app. It's now in Obj-C and has a ton more features, but I need to make sure they all work like they're suppose to. I...
  2. G

    Project Builder....

    Your first problem is that you didn't put alligators around your header files... although that maybe vB. The other problem is that iostream is missing it's .h extension. After fixing those problems, it got further, but many more errors that you should be able to deal with. HTH, Matt...
  3. G

    cc-compiler problem

    I'm not sure why'd you follow the white rabbit down the rabbit whole on this one. As typed, no matter how he capitalized or spaced his source file, he won't get that error (at least it doesn't sound related and I can't reproduce it). I'd be more interested to see the actual source code...
  4. G

    Following the Yellow Bricked Road?

    I personally think the best path is: 1. Java 2. C 3. Objective-C Why? Jave is a pretty straigtforward language, and if you have a reasonable teacher (say you're taking a class), you can learn a lot of the basic of good Object Oriented Design. C follows naturally, as the syntax is very...
  5. G

    when [object copy] doesn't work ... :S

    Save yourself a lot of trouble and simply do this: [currentAwale autorelease]; currentAwale = [[awales objectAtIndex:[awales count]-1] retain]; [awales removeObjectAtIndex:[awales count]-1]; No copy needed, but will work just fine and dandy. All you want to do is move the reference...
  6. G

    Sending Messages to nil....

    Actually, I just found some code where I did: int num = [some_random_object count]; And some_random_object was nil! I think it just converted nil to 0. F-bacher
  7. G

    Sending Messages to nil....

    To be pedantic: id foo; Declares a variable of type id, which is an unspecified Obj-C type, much like void * in C. So you can have foo reference any Obj-C object you create. foo=nil; foo now points to nothing. So if you try to send a message to it, where does the message...
  8. G

    Accessing objects from another class

    There's a couple of ways to do this. You could have your class containing the text field to call a method off the other class that where one of the parameters is the text field object. You could also add a method to the your class containing the text field that returns the text field reference...
  9. G

    Why doesn't this work?! (C)

    arguments in for loops are separated by semicolons, not commas. F-bacher
  10. G

    My Calculator App[

    Hehe, I was building against the OmniFrameworks... but wasn't having them copied into my app when built, making it impossible for users without them installed exactly where I had them installed to use it. Yeah, that was bad. Download from the same link, it actually works now! :crosses...
  11. G

    My Calculator App[

    That's odd... I trashed my prefs just to check, and it launched fine. The vt guys had no problem with it either... strange. I hope this isn't some strange side-effect of using the April Beta Dev Tools... sigh... F-bacher
  12. G

    My Calculator App[

    Yeah, so now I'm obsessed with this thing. Check it out: MathRPN From the ReadMe: 1. Inline editing of stack items - double click a stack row and start editing 2. Drag and drop stack support - the easiest way to get at numbers at the bottom of your stack 3. Operation on selected item...
  13. G

    My Calculator App[

    Whoa, option-p (aka pi) isn't coming through. That's why that last two posts about conversions look so weird :) F-bacher
  14. G

    My Calculator App[

    If you have a unit in degrees, and you want to convert it to radians, you have to multiply be  and divide by 180. To go the other way, mutliply by 180 and divide by . F-bacher
  15. G

    My Calculator App[

    Well, I've been inspired to rebuild my old crappy rpn calc called xRPN, into something which I think is a lot cooler, which I have poorly named MathRPN. It's an RPN calculator with this little nice addition: you can act on numbers anywhere on the stack! So if I wanted to add together three...
  16. G

    How do I launch a URL using Cocoa (Objective C)

    Look in the NSWorkspace docs in the AppKit. I believe it is in there. F-bacher
  17. G

    My Calculator App[

    Looks alrighty so far. Just a couple things: 1. Is it just me, or do the trig functions seem to take a while to evaluate? I can mash the square root key over and over again, but the GUI seems to lock up a little after doing a cosine or a sine. Are you using the C math functions cos(d)...
  18. G

    Cocoa Questions Thread

    I think, although I could be wrong, that he's talking about right-clicking on a class you've created in IB and added outlets and actions to, and then selecting "Create Files" or whatever it says. It will create your header and implementation files with references to all your outlets and method...
  19. G

    Beginners guide to Java

    Because, you can have lots of text fields, and it would be nice to define a group of "stuff" that goes a long with text fields. Essentially, that's your text field object. Each text field is unique, but whenever you see a text field you'll always know what you can do with it (set it's text...
  20. G

    selector not recognized

    Well, if you want to, you could just write your object to file. Just make sure your custom object implements NSCoding. You just need to implement two methods, and you can freeze dry your objects. That only is a good idea if you're not interested in changing "much" of the code in your custom...
Back
Top