Tag: Cocoa

Converting Array of Dictionary to Tree, Org Structure

Converting Array of Dictionary to Tree, Org Structure Written By: Debasis Das (19-Apr-2015) The objective of this article is to convert an array of dictionaries (Key value pairs emp_id = some emp id & mgr_id = some emp id) to

Posted in algorithms, Cocoa, Objective C Tagged with: , , , ,

Objective C Blocks Sample Code

Objective C Blocks Sample Code Written By: Debasis Das (19-Apr-2015) In this post we will create sample codes for using blocks in an Cocoa Objective C Application Block with 1 input Parameter and 1 return Type int (^testBlock)(int) = ^int

Posted in Cocoa, Objective C Tagged with: , ,

Swift Extensions

Swift Extensions Written By: Debasis Das (30-Mar-2015) Extensions add new functionality to an existing class, structure, or enumeration type. This includes the ability to extend types for which we do not have access to the original source code (known as retroactive

Posted in Swift Tagged with: , , , , ,

Swift Source List

Swift Source List Created By: Debasis Das (29-Mar-2015) In this article we will create a sample application in Swift to display a Source List (view based NSOutlineView) with sample data. The output of the sample code will have have the

Posted in Swift Tagged with: , , , ,

Swift print, println, NSLog

Swift – print, println, NSLog Written By: Debasis Das (21-Mar-2015) We can use print, println and NSLog in Swift but before we start into sample code lets understand the difference of each Swift println vs Swift print Using println will

Posted in Cocoa, Cocoa Touch, iOS, Swift Tagged with: , , , , , , , ,

Singleton Design Pattern in Cocoa

Singleton Design Pattern in Cocoa Written By: Debasis Das (10-Mar-2015) Singleton Design Pattern is used when there can be exactly one instance of a class. Singleton design pattern provides a global point of access to the single instance of the

Posted in Cocoa, Cocoa Touch, Design Pattern, iOS, Objective C Tagged with: , , , , , ,

Sharing code between ios and os x apps

Sharing code between ios and os x apps Written By: Debasis Das (25-Feb-2015) In this article we will exhibit how we can build an iOS and Mac OS X app for Sharing code between ios and os x apps ensuring maximum

Posted in Cocoa, Cocoa Touch, Design Pattern, iOS, Objective C Tagged with: , , , ,

Framework vs Library (Cocoa, iOS)

Framework vs Library (Static & Shared) in (Cocoa/OSX, Cocoa Touch/iOS) Written By: Debasis Das (20-Feb-2015) This article talks about various options of bundling reusable code in your (Cocoa – OSX) or (Cocoa Touch – iOS ) Applications Before understanding the difference between

Posted in Cocoa, Cocoa Touch, Generic, iOS, Objective C Tagged with: , , , , , , , , ,

Mac Screen Saver – Time as Color Hex Code

Mac Screen Saver – Time as Color Hex Code Created By : Debasis Das (17-Feb-2015) In this article we will create a simple Mac Screen Saver that will display the current time , Day, Date, Month and Year. The time will

Posted in Cocoa, Objective C Tagged with: , , , , ,

Cocoa, Objective C MongoDB App using ObjCMongoDB.framework

Cocoa, Objective C MongoDB App using ObjCMongoDB.framework Written by: Debasis Das (23-Jan-2015) In this article we will create a simple Cocoa, Objective C App that connects to MongoDB Database through the ObjCMongoDB.framework We will implement the following functionality in this

Posted in Cocoa, MongoDB, NoSQL, ObjCMongoDB.framework, Objective C Tagged with: , , , ,

Hit Counter provided by technology news