" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Padding Custom Margins In NSTextField

Posted on November 23rd, 2015 by Hem Dutt

Suppose we need to add padding to a text field or in a Table row (which is generally a NSTextField cell). This is possible but there in no direct method for this in Cocoa. The padding can be added by subclassing NSTextFieldCell and by doing customization as explained. Create a Class say CustomTextFieldCell inheriting NSTextFieldCell. […]

How To Customize Font For Text On A NSAlert View

Posted on November 23rd, 2015 by Hem Dutt

When we create and run an NSAlert, by default it has a Message text (set to Alert by default) and an informative text (set to nil by default). Suppose one needs to customize the fonts for these texts, then how can one do this? There is no direct API as such for this in NSAlert […]

A fantastic way to improve iCal in Mac

Posted on November 23rd, 2015 by Priya Tyagi

Fantastical enhances iCal by allowing you to quickly and easily create new events using natural language input. You can also quickly locate the dates you’re looking for via Fantastical’s handy menu calendar, view your upcoming events in a convenient list, and search for past and upcoming events. Following are the attractive features of Fantastical :. […]

Create a BuildMaker in Mac

Posted on November 23rd, 2015 by Santosh Sinha

How to build multiple “Xcode”  projects using shell script. We are often in a situation where our Mac project involves several XCode projects and building them individually can be a lot of effort. If you are a build engineer the following shell script can be handy. Example :- Step 1.1 – Absolute source path of […]

UnInstaller For Mac Application

Posted on November 23rd, 2015 by Santosh Sinha

Step 1 – Create the Shell Script. 1.1 First create a shell script file(test.sh) . 1.2 Write the code for deleting all the files belonging to your  application in the shell script file, 1.3 Set the necessary privilege to “test.sh” file”. example: – -> sudo rm -rf /Applications/TestApp.app -> sudo rm -rf /Library/Preferences/Menus.plist -> sudo […]

Retrieving symbol information from crash dump on Mac OS X

Posted on November 23rd, 2015 by Jyothi Sambolu

Whenever any application crashes the system’s crash reporter(/System/Library/CoreServices/Crash Reporter.app) creates a crash dump.A crash dump is the image of the state of the kernel that was in physical memory when the system failed. The crash log contains a stack trace with whatever program symbol information found in the application.And if the application has stripped of […]

How to blend two images on Mac?

Posted on November 23rd, 2015 by Akram Ahmad

We can blend two images on mac easily by following these steps. 1. First, make sure that dimension of both images should be equal. if they are not then you should scale source image in order to equalize them. 2. Get the opacity of source image. 3. Calculate the opacity of target image simply by […]