Official ObjectGraph Blog

Posts Tagged ‘development’

Check out our Retro Phone Application for iPhone [iRetroPhone App]

Tuesday, May 27th, 2008

iRetroPhone is available at iTunes store now! Click here to get iRetroPhone!
- (added 07/10/2008)

iRetroPhone.com - our product website is open! Please bookmark this website!
- (added 07/08/2008)

We are glad to announce our Retro Phone Rotary Dial iPhone Application, iRetroPhone, and this will be available soon in iPhone’s app store. It simulates a rotary phone in old days. Enjoy the realistic sound effects and animations. Also we will be releasing a skinning specification for creating custom skins

Retro Phone - ObjectGraph LLC iPhone Application Project

iRetroPhone Movie:

iRetroPhone Movie Link:http://youtube.com/watch?v=fr2APizuXZg



StumbleUpon


Bookmark and Share



iPhone OS expires

Tuesday, April 8th, 2008

UPDATE: Back in business as of 8:50 PM EST. 

Early in the morning today my iphone stopped working. I checked with kiichi and his iphone was bricked too. Here is a screen shot of what XCode says.

    

The version of software available on Apple’s developer site is the same as i have, so the OS version did not update yet. Seems like many other developers are having the same problem.

  

iPhone Development and a sample Objective C Program

Saturday, March 15th, 2008

Kiichi and I really liked the demo from apple about the iPhone SDK.

If you haven’t seen it, check it out@

http://www.apple.com/quicktime/qtv/iphoneroadmap/

We at ObjectGraph think the new app store feature will level the playing field for all developers, big(EA) and small(OG). Now its up to developers to create new applications and make them success stories. So We started developing in Objective C. With its kinda wierd syntax coming from C#, Java, ActionScript and Python, but here is my first try anyway :-)

I am creating a MyPoint class with a distance function that takes a reference of an another point.


#import <Cocoa/Cocoa.h>

@interface MyPoint : NSObject {

	int x;
	int y;

}

-(void) print;
-(void) setX:(int) a; // void setX(int a);
-(void) setY:(int) b;
-(int) getX;
-(int) getY;
-(double) distance:(MyPoint*) p;

@end

Implementation

#import "MyPoint.h"
#import <stdio.h>
#import <math.h>

@implementation MyPoint

-(void) print
{
	printf("(%d,%d)",x,y);
}

-(void) setX:(int) a
{
	x=a;
}

-(void) setY:(int) b
{
	y=b;
}

-(int) getX
{
	return x;
}

-(int) getY
{
	return y;
}

-(double) distance:(MyPoint*) p;
{
	return sqrt((x-[p getX])*(x-[p getX])+(y-[p getY])*(y-[p getY]));
}

@end

Main

#import <Foundation/Foundation.h>
#include <stdio.h>
#import "MyPoint.h"

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

	MyPoint *point1=[[MyPoint alloc] init];
	[point1 setX:10];
	[point1 setY:20];

	[point1 print];

	MyPoint *point2=[[MyPoint alloc] init];
	[point2 setX:10];
	[point2 setY:30];
	[point2 print];

	printf("Distance: %lf\n", [point1 distance:point2]);

	[point1 release];
	[point2 release];

	[pool drain];
    return 0;
}