two more hurdles for my calculator...
two more hurdles for my calculator...
- Subject: two more hurdles for my calculator...
- From: Nathan <email@hidden>
- Date: Tue, 27 May 2008 08:17:53 -0400
Wow my last question sparked quite the debate!
My calculator is almost finished, believe it or not but I have two
more questions.
1. In basic I could simply use a line like: open "filename" for input/
output as #x to open a file, use input/print to save/retrieve data,
then close the file. I want to do the same thing here, as in I simply
want to save variables to a file in the simplest noobiest way. Again,
and this is getting frustrating, I'm having trouble finding what I
want in the documentation when I'm not simply looking up an object.
Can anyone help?
2. To give my app a nice finishing touch how do I add an icon? I seem
to remember some other tutorial that was beyond me touching on the
subject and I was lost.
And for those interested, here's how my project has been going since
yesterday, I think it will be very useful.
I originally started by making a regular calculator, with all the
buttons and everything. I had it working fine, I learned a bit from it
but I decided on doing something different once I was done. Instead of
a usual calculator, I simply use two fields to enter your two numbers.
This eliminates TONS of code, and makes the window smaller which is a
big goal. Simply enter your two numbers and press the appropriate
button to do the math.
Just because really, it has custom views so you can slide open/closed
the help text box. You can also make the window bigger/smaller
vertically, so if you don't want the help document section simply
slide it all the way up. You are conveniently restricted so that you
can't make it too small or too big.
I have all the basic operators so far, addition subtraction division
and multiplication. I have the modulus sign in there, but as of this
exact moment I have not implemented that, though I know how so it's
only a matter of time.
I used an HUD window, so that no matter which application is open it
is always conveniently on top. This should be VERY useful when you
have a lot of windows open, just IB and Xcode take up a lot of space
even on my 20" mac.
When I'm done, you will also be able to check off boxes (and hopefully
it will remember!) so that when you launch calculator IB and/or Xcode
will launch as well, and I will add other apps in the apple developers
suite eventually as well. When the window is at it's smallest it is
VERY small yet has everything, so it's not wasting space. Finally,
when you do a calculation maybe I'll have the result window do a 360 :D
Thanks for all your help people this has been a great learning
experience!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden