»
S
I
D
E
B
A
R
«
Error: “CGGStackRestore: gstack underflow”
Nov 2nd, 2009 by Anish Kumar

Today while I was working with some CoreGraphics API’s, I encountered a error which I was seeing it for the first time. CG for dumping an error “CGGStackRestore: gstack underflow” in the console everytime I invoked a method that was doing some CG based operations. Googling around I found that in CoreGraphics, you can save (CGContextSaveGState) and restore (CGContextRestoreGState) the graphics state. When the  state is saved, a copy is put on the graphics state’s “stack”, and when it is restored, the top state on the stack is removed and used. If we restore the state more times than we save it and then when we try to remove and use the top item of the stack, the stack is empty, causing a stack “underflow” error. So just make sure you have enough save-restore state methods called and it will fix the issue.

CGGStackRestore

CGGStackRestore

Double Release Of Cocoa Objects
Oct 23rd, 2009 by Anish Kumar

Today while working on an iPhone project , I was just about to commit an code which displays a bar graph, and ended up finding a crash with the following error:

objc[<pid>]:FREED(id): message release sent to freed object="<memory_address>"
Double Release Of Cocoa Objects

Double Release Of Cocoa Objects

Read the rest of this entry »

Coming Soon: Develop Native iPhone Application Using Actionscript
Oct 20th, 2009 by Anish Kumar

With Flash Professional CS5, we can now build applications for iPhone and iPod touch using ActionScript 3. These applications can be delivered to iPhone and iPod touch users through the Apple App Store. A public beta of Flash Professional CS5 with prerelease support for building applications for iPhone is planned for later this year. At MAX 2009, Adobe showed a number of applications and games for iPhone that have been built using a prerelease version of Flash Professional CS5. The tooling update allows developers to use Flash technologies to develop content for iPhone and iPod touch. Developers can write new code or reuse existing web content to build applications for iPhone. Because the source code and assets are reusable across the Flash Platform runtimes,—Adobe AIR and Flash Player—it also gives developers a way to more easily target other mobile and desktop environments.

Read the rest of this entry »

iPhone Online Mockup Creator
Jun 11th, 2009 by Anish Kumar

I found this web based iPhone mockup creator.
Nice tool. Supports sharing the design creation with multiple users and collabrate on the mockup….

Apple announces iPhone push notification service for developers
Apr 13th, 2009 by Anish Kumar

Apple’s has announced a push notification service for the iPhone OS 3.0. It’ll maintain a persistent IP connection to the phone and let a 3rd party server ping Apple’s notification service in order to push out notifications to applications installed on iPhone OS 3.0, which can be in the form of badges, sounds or custom textual alerts.

Read the rest of this entry »

iPhone SDK programming book code samples
Apr 7th, 2009 by Anish Kumar

Check the opensource cool stuff about iPhone programming here at:-

http://code.google.com/p/iphone-sdk-programming-book-code-samples/

Read the rest of this entry »

Five top tips for new iPhone users
Jan 1st, 2009 by Anish Kumar

1.

Pick a letter, any letter: The iPhone’s onscreen keyboard takes some getting used to, but it’s also incredibly versatile, supporting more than 20 different languages. Sometimes you don’t need a whole different alphabet, though—maybe you just need to be able to spell François or Mötley Crue. No worries, the iPhone’s got you covered: to insert one of those special characters, just hold down the base letter for a couple seconds (for example, to get ö, hold down the ‘o’ key) and you’ll see a menu of special characters pop up. Slide your finger to the right one, let go, and presto, you’re all set. Bonus tip: this technique also works with the “.com” key that you see when typing in a web address in Safari—hold it down and you’ll get options for .org, .net, and .edu too. Read the rest of this entry »

Apple iPhone 3G at Wal-Mart and AT&T
Jan 1st, 2009 by Anish Kumar
It looks like AT&T is the only place to get a $99 Apple iPhone 3G. For now, anyway.

In the post-holiday crunch, AT&T has launched the sale of refurbished iPhones to unload some inventory and offer cost-conscious shoppers a discount. In AT&T Wireless’ online store, a refurbished 8 GB iPhone runs $99 with a two-year contract, while a refurbished 16 GB iPhone is $199. Both are $100 more when purchased new, but carry the same contract terms.

AT&T’s move to sell off refurbished iPhone comes roughly a week after it was rumored that national discount superstore Wal-Mart would offer its own exclusive 4 GB model of the Apple iPhone 3G for $99. Those rumors were officially debunked this week, when Wal-Mart on Sunday started offering the standard 8 GB and 16 GB models of the now-iconic smart phone for fairly close to their original retail prices — a $2 discount. The addition of the iPhone makes Wal-Mart only the second retailer outside of Apple and AT&T stores to be authorized to sell the iPhone. In September, Best Buy started selling the device in its Best Buy Mobile stores.

According to AT&T, the refurbished devices will be for sale until Dec. 31 or until supplies run out. The previously owned devices have been unused or lightly used and were returned during the initial 30-day trial period, AT&T said, though some may have minor scratches. Each device has been quality tested and updated with the latest software.

The refurbished devices offer a 90 day warranty.

Cheaper IPhone, MacBook Models In 2009
Jan 1st, 2009 by Anish Kumar

Apple may be gearing up to introduce cheaper iPhone and MacBook models in 2009, possibly including a device dubbed the iPhone nano. 

Judging by checks with Apple suppliers, it appears the Cupertino, Calif., computer maker may be getting ready to introduce “a lower-cost version” of the popular iPhone.

Some call this device the iPhone nano.”, ” Whatever one calls it, we believe this device is on its way.”

“a new and smaller version of the iPod shuffle,” possibly in the middle of the first quarter and a cheaper MacBook notebook, although, “We do not believe this PC will qualify as a netbook.”

Don’t expect the products to be ready in time for a rollout at the upcoming MacWorld expo next week.

Officials at Apple could not immediately be reached for comment.