Adding Menu Items to Cocoa Application’s Main Menu Programatically

I cannot find a way to add menu items to Cocoa application's main menu programatically. In Cocoa developer documentation, I find only removing items programmatically. Eventually, I added menu items in Interface Builder of XCode and control them from code.

trace() to get the latest code in Flash CS6

Sometimes, developing Adobe Air desktop applications in Flash CS6 doesn't reflect the latest code updates in ActionScript. I added trace() statements in code to debug, and that resulted in correct behavior of the application.

A Strange Bug in AS3 CheckBox

I use AS3 checkbox and change its label in Flash CS6. In AS code, I update the selected state of the checkbox but it's not working. I remove it and use a new checkbox without changing its label. And I change the selected state of the checkbox in AS code, and it works. Why??

ComboBox in Flash CS6 seems to have bug

I am developing an Adobe Air desktop application for Windows. I use ComboBox component in Flash CS6. A movie clip in Flash CS6 is linked to an ActionScript class. In constructor method, I call length property, selectedItem property of ComboBox but runtime error occurs. I change to radio buttons instead. I love Flash & ActionScript, and … Continue reading ComboBox in Flash CS6 seems to have bug

Convert seconds to days, hours, minutes, seconds

seconds = totalSeconds; minutes = floor(seconds / 60); hours = floor(minutes / 60); days = floor(hours / 24);          seconds %= 60; minutes %= 60; hours %= 24;

How to Have Free Version and Paid Version In the Same Project in Android Studio

I searched for the title on Google and found the following Stack Overflow discussions. Create Free/Paid versions of Application from same code Best way to have paid and free version of an Android app Bulk Publishing of Android Apps