Today I was working on the function buttons. The x and / buttons still need some minor work. The number one and number two functions are why it isn't working - it resets one of the numbers to zero and then multiplication and division are thrown off. Another thing that I did today was to move the math properties " x , / , - , + " to a function. There is now a bit less code, but I will have to write more to make it functional again.
Casa de Oro Games
Wednesday, August 17, 2011
Creating a Calculator- Functions
Today I was working on the function buttons. The x and / buttons still need some minor work. The number one and number two functions are why it isn't working - it resets one of the numbers to zero and then multiplication and division are thrown off. Another thing that I did today was to move the math properties " x , / , - , + " to a function. There is now a bit less code, but I will have to write more to make it functional again.
Labels:
App,
Calculator,
Objective C,
SDK
Monday, August 15, 2011
Gimping New Things Weekly
Over the past few weeks I have been creating images in Gimp and have gotten quite proficient in it. These are some of the images that I have created:
Yesterday my mom was using Edmodo. She wanted a achievement badge and this is what I came up with:
Edmodo was mean and didn't accept it. I had to change it to:
Which they made into:
I like my own much better, but there is nothing i can do about that. :(
Yesterday my mom was using Edmodo. She wanted a achievement badge and this is what I came up with:
Edmodo was mean and didn't accept it. I had to change it to:
Which they made into:
I like my own much better, but there is nothing i can do about that. :(
Monday, August 8, 2011
Creating a Calculator- NSString
Calculators need to use math and a string to display their information. Some useful tips on creating a string are:
NSString is a string
To set NSString:
NSString is a string
To set NSString:
- NSString *astring = @"Words"
- NSString *astring = [[NSString alloc] initWithFormat: @"Words %@ then %i next %f", *anotherstring, anint, afloat]
Labels:
Calculator,
Objective C
Creating a Calculator- Labels
While creating a calculator it is useful to make the word on a screen. To do so one must first drag a label into the .xib file from the Utilities > Attributes Bar. Next drag a line from the (left click on) Label Menu > New Referencing Outlet (Circle) to the Assistant Editor Window. Naming this "label" helps.
Labels:
Calculator,
Objective C
Creating a Calculator- Buttons
I have started making a calculator to test buttons, math, and errors. Creating a click-able button was easier than expected. All that was necessary was to, in the .xib file, drag a button onto the screen while using the Utilities > Attribute Bar. All that was needed was to then left click on the button, drag a line from the touch-up-inside circle to the code in the assistant editor, and name the function.
Labels:
Calculator,
Objective C
Sunday, August 7, 2011
Getting Started
I have always liked making games and throughout my life I have used
Scratch, GameMaker, and a few other programs to do so. Currently I
have started making apps using Apple's SDK. Apps are programmed using the C languages. Because of this, one of the first things that I did to start with the SDK was to learn C++. One small problem was that, although C++ is useful for text based applications, Objective C is more useful when dealing with objects. This is the reason that I am now learning Objective C while making apps with it.
Scratch, GameMaker, and a few other programs to do so. Currently I
have started making apps using Apple's SDK. Apps are programmed using the C languages. Because of this, one of the first things that I did to start with the SDK was to learn C++. One small problem was that, although C++ is useful for text based applications, Objective C is more useful when dealing with objects. This is the reason that I am now learning Objective C while making apps with it.
Labels:
App,
C++,
Game Maker,
GameMaker,
Objective C,
Scratch,
SDK
Subscribe to:
Posts (Atom)






