August 25
Really neat source code to encourage people to rate your app. It’s annoying that people can only rate your app on their iPhone when they delete it, so you generally only get bad reviews. This source lets you show a dialog to give the user an option to rate it on startup. http://github.com/arashpayan/appirater/ The simple how-to from the readme file thats included: Add the Appirater code into your project Add the CFNetwork and SystemConfiguration frameworks to your project Call [Appirater appLaunched] at the end of your app delegate’s application:didFinishLaunchingWithOptions: method. Finally, set the APPIRATER_APP_ID in Appirater.h to your Apple provided [...]
Posted by Jeff . Filed under App Reviews |
August 17
A recent problem that i came across was the issue with delegation and subclassing. I was trying to subclass a class and also perform delegation with the subclass, ignoring the parents delegate methods. It’s not a strange thing to do, but was a little tricky to get it working in my project. Here’s a simplified example of how i did it: I created Class1 which is our parent class. The header file includes the declaration of the delegation protocol: @protocol Class1Delegate @required -(void)method1; @optional -(void)optionalMethod1; @end @interface Class1 : NSObject { // The delegate id delegate; } @property (nonatomic, assign) [...]
Posted by Jeff . Filed under Objective-C, Tutorials |
August 13
Generally when you want something to flash on and off in a smooth fashion you have a duration that you want an icon to fade in and out at. You then tend to have a timer that increments up to the fade value and when it hits the fade value begins to decrement again down to zero. See the code below for an example of this in action static const f32 totalFadeTime = 4.0 if (m_fadeUp) { timer += delta; if (m_timer > m_revealTime) { timer = m_revealTime; m_fadeUp = false; } } else { timer -= delta; if (timer [...]
Posted by Eddie . Filed under c++, Sprites |
August 12
As a tribute to the recently made public source code version of the original MacPaint i’ll show you how to get this working on Snow Leopard. Firstly download this zip file Drag and drop the 024M.dsk file onto the Mini vMac application file in the folder. Now drag and drop the corresponding files when prompted onto the Mini vMac application window. The installation should finish once it goes through each pacakge. Then select ‘Quit’. Now repeat Step 1 again, by dragging the 024M.dsk file onto the Mini vMac application file in the folder. It should startup the Mac OS 7.0. [...]
Posted by Jeff . Filed under mac osx |
August 3
Woot!!! Another game approved for the App Store. This time i re-did my first app for the iPad, to be consistent across devices :) You can download it here. I decided to do it fully in Cocos2d and not in my hybrid OpenGL + Cocos2d library that has built up over the past few months. Mainly because it’s community supported and that you can write a game from scratch in a few hours. But with my busy day-job as an iPhone developer i needed a good chunk of time to do this, without getting distracted. Luckily i was travelling to [...]
Posted by Jeff . Filed under Cocos2d, Our Games |