Category: Cocoa

Swift 3.1 Matrix Screensaver effect

Created By: Debasis Das (16-May-2017) In this post we will create a simple cocoa application in Swift 3.1 to generate the matrix screen saver effect. Swift 3.1 Matrix Screen Saver Sample Code

Posted in CoreAnimation, Mac OSX Animation, Swift 3.1 Tagged with: , ,

CALayer Sample Code – Part 1

CALayer Sample Code – Part 1 Created By: Debasis Das (31-Dec-2016) In this post we will create a simple CALayer and then change its properties like backgroundColor, borderWidth, borderColor, cornerRadius etc CALayer Sample Code

Posted in Cocoa, CoreAnimation, Mac OSX Animation, Objective C Tagged with: , ,

CoreAnimation Analog Clock

CoreAnimation Analog Clock Created By: Debasis Das (31-Dec-2016) In this post we will create an analog clock using Core Animation. The final output will be as follows. Core Animation Analog Clock Source Code // AppDelegate.m // AnalogClock // Created by

Posted in CoreAnimation, Mac OSX Animation Tagged with: , , ,

Swift NSSearchField NSArrayController No Bindings

Swift NSSearchField NSArrayController No Bindings Created By:Debasis Das (May 2016) In this post we will create a simple cocoa application to filter the data in a NSTableView using a NSSearchField without using Bindings The NSArrayController will maintain the backup data

Posted in Cocoa, Swift Tagged with: , ,

Swift NSSearchField NSTableView With Bindings

Swift NSSearchField NSTableView With Bindings Created By: Debasis Das (may 2016) In this post we are going to create a simple cocoa application having a NSSearchField and bind the same to a NSTableView Array Controller Step 1 : Create a new

Posted in Cocoa, Swift Tagged with: , ,

Custom Model in Objective C

Custom Model in Objective C Created By: Debasis Das (17-Apr-2016) Today we will create a Custom Model in Objective C where attributes can be added from within a loop. The model will support formatters and will have convenience method to

Posted in Cocoa, Objective C

Swift NSLayoutConstraint constraintsWithVisualFormat sample code

Swift NSLayoutConstraint constraintsWithVisualFormat sample code – detailed example Created By:Debasis Das (17-Jan-2016) In this post we will create a detailed sample screen in swift having lots of UI elements using NSLayoutConstraint constraintsWithVisualFormat. This sample code uses most of the options

Posted in Cocoa, Swift Tagged with: , , ,

Swift NSLayoutConstraint programatically sample code

Swift NSLayoutConstraint programatically sample code Created By: Debasis Das (16-Jan-2016) In this post we will apply constraints to 4 views in a NSWindow using swift NSLayoutConstraint programatically . This approach is much more tedious and lengthy in comparison to the constraintsWithVisualFormat

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

Swift NSLayoutConstraint constraintsWithVisualFormat programmatically

Swift NSLayoutConstraint constraintsWithVisualFormat Sample Code Created By: Debasis Das (16-Jan-2016) In this post we will apply constraints to 4 views in a NSWindow using constraintsWithVisualFormat programmatically. Note: The autoLayOut checkbox is switched off in the XIB and all the constraints

Posted in Cocoa, Swift Tagged with: , ,

NSCollectionView Sample Code

NSCollectionView Sample CodeNSCollectionView Sample Code Created By : Debasis Das (29-Sept-2015) In this article we will create a simple Cocoa Application in Objective C to create a NSCollectionView and to load it with an array of items that represents a

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

Hit Counter provided by technology news