After several tries, I found the next to work the best :

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {

if((toInterfaceOrientation == UIDeviceOrientationLandscapeLeft) || (toInterfaceOrientation == UIDeviceOrientationLandscapeRight)) {
NSLog(@”didRotateFromInterfaceOrientation Landscape”);
isPortrait = NO; //Global variable
}
else {
NSLog(@”didRotateFromInterfaceOrientation Potrait”);
isPortrait = YES;
}

1)

If you add two breakpoints, you should be able to debug these exceptions.
To do this, go to Run | Show | Breakpoints and create two global breakpoints
(I do them globally because they are so useful in all my applications).
The first should be named "objc_exception_throw" and its location should be "libobjc.A.dylib".
The second should be "-[NSException raise]" and its location should be "CoreFoundation".
Now, if you start debugging your application with breakpoints enabled,
it should break on the throw of these exceptions.
You should then be able to see the chain of events that led to the exception within the debugger.

2)
int main(int argc, char *argv[]) {
 int retVal;
 NSAutoreleasePool * pool;
 @try
 {
 pool = [[NSAutoreleasePool alloc] init];
 retVal = UIApplicationMain(argc, argv, nil, nil);
 }
 @catch(NSException* e)
 {
 NSLog(@"%@", e.reason);
 }
 @finally
 {
 [pool release];
 }
 return retVal;
}

3) Check the stack trace on the left side :

http://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Debugging/Debugging.html

Here are some useful macros around NSLog I use a lot:

#ifdef DEBUG
#   define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#   define DLog(...)
#endif

// ALog always displays output regardless of the DEBUG setting
#define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);

The DLog macro is used to only output when the DEBUG variable is set (-DDEBUG in the projects’s C flags for the debug confirguration).

ALog will always output text (like the regular NSLog).

The output (e.g. ALog(@”Hello world”) ) will look like this:

-[LibraryController awakeFromNib] [Line 364] Hello world

At last I find a good tool to diagnose why my disk is getting full :

http://download.cnet.com/OmniDiskSweeper/3000-18512_4-6226.html

 

And it’s free…

1) Connect the iPhone to the MAC

2) In itunes press sync

3) Drag the crashReport file to the xcode organizer (From ~/Library/Logs/CrashReporter/MobileDevice/<DEVICE_NAME>)

4) Press the ‘Device Logs’ on the right side in the organizer

 

http://itunes.apple.com/us/app/5-stars/id431945200?mt=8&ls=1#

Celebrating the 50th anniversary of the first human spaceflight ! 

*** A 40 stages game ***

5 stars will bring you lot of original and crazy levels.

Playing an astronaut who should get the flag while searching a path and escaping from rockets, black holes and aliens.

*** Test your astronaut skills now !

 

5 Stars

Rename the Icon files (in the plist file) to CFBundleIconFiles.

Clean all targets and rebuild.

Find the ‘Application Loader’ under the Applications folder on your MAC.

 

http://www.funphotoart.com/drawings/create-a-fireball-or-mars-like-planet

CCLabelTTF* message = [CCLabelTTF labelWithString:title
dimensions:CGSizeMake(80, 100) alignment:UITextAlignmentCenter fontName:fontName fontSize:fontSize];

© 2011 W2OM - iPhone by code Suffusion theme by Sayontan Sinha