Blog Archives

Word Frequency Algorithm in Objective C

Word Frequency Algorithm in Objective C Created By: Debasis Das (21-Aug-2015) In this post we will create two sample code/ approach for deriving the word count, word frequency of each word in a input string. Word Frequency Algorithm in Objective

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

Abstract Factory Design Pattern Objective C

Abstract Factory Design Pattern Objective C Written By: Debasis Das (9-June-2015) Abstract Factory Design Pattern Objective C The Abstract Factory Design Pattern provides an interface for creating families of related or dependent objects without specifying their concrete classes. Class Cluster

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

NSPredicateEditor Sample Code

NSPredicateEditor Sample Code Created By: Debasis Das (19-May-2015) In this tutorial we will create a sample application to demonstrate the usage of NSPredicateEditor & NSPredicateEditorRowTemplate. We will also create a custom row template by subclassing NSPredicateRowTemplate. A NSPredicateRowTemplate normally has the

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

Cocoa Delegate Design Pattern

Cocoa Delegate Design Pattern Written By: Debasis Das (18-May-2015) Cocoa Delegate Design Pattern is a powerful design pattern in which one object works on behalf of another object. Examples of some of the delegating object in AppKit framework are as follows

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

Autolayout Visual Format Language – Objective C Sample Code

 Autolayout Visual Format Language – Objective C Sample Code Written By: Debasis Das (7-May-2015) Undoubtedly Autolayout is a powerful tool at the hands of Cocoa & iOS Developers. It has a learning curve but gives immense control over UI resize

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

Observer Design Pattern, Key-Value Observing

Observer Design Pattern, Key-Value Observing Written By: Debasis Das (3-May-2015) In the Observer Design Pattern , one object notifies other objects of any state changes. The Observer Design Pattern requires that an observer registers itself for changes in the state of another

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

NSToolbar Sample Code in Objective C

NSToolbar Sample Code in Objective C Created By: Debasis Das (1-May-2015) In this post we will create a simple Cocoa OSX Application that has a NSWindow with NSToolbar generated from code and each NSToolbarItem is mapped to individual view controller.

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

NSURLSession Sample Code

NSURLSession Sample Code Written By: Debasis Das (28-Apr-2015) In this article we will create a sample application that reads data from a web service using NSURLSession, NSURLSessionDelegate & NSURLRequest. We have demonstrated 2 different approaches of getting data. Delegate Approach

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

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: , ,

Recent Posts


Hit Counter provided by technology news