Monthly Archives: January 2016

Generating a PDF Document in Swift

Generating a PDF Document in Swift Created By: Debasis Das (31-Jan-2016) In this article we will create/ generate a PDF document in swift. The structure of the PDF Document will be as follows Cover Page Title Credit Information Header Text

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

Swift Collection Type Array

Swift Collection Type Array Collection Types in Swift Swift has 3 primary collection types , known as arrays, sets and dictionaries arrays – ordered collections of values sets – unordered collection of values dictionaries – unordered collections of key-value pairs

Posted in Swift Tagged with: , , , ,

Swift String and Character

Swift String and Character Created By:Debasis Das (Jan 2016) In this post we will test the Swift String functions and see examples of expected behaviors Strings are ordered collections of characters Swift Strings are represented by the “String” Type Swift

Posted in Swift Tagged with: , , ,

Swift Basic Operators

Swift Basic Operators Created By: Debasis Das (Jan 2016) In this post we will touch upon the Swift Basic Operators using examples  Swift Operators Swift Operators are unary, binary or ternary Unary Operators – Operates on a single target unary

Posted in Swift Tagged with: , , ,

Swift Create NSTableView programatically

Swift Create NSTableView programatically In this article we will create a NSTableView programmatically in Swift // TableViewFromCodeWindowController.swift // SwiftTableViews // Created by Debasis Das on 25/01/16. // Copyright © 2016 Knowstack. All rights reserved. import Cocoa class TableViewFromCodeWindowController: NSWindowController,NSTableViewDataSource, NSTableViewDelegate

Posted in Swift Tagged with: , , ,

Swift Error Handling

Swift Error Handling Written By: Debasis Das (24-Jan-2016) Swift Error Handling Error Handling is the process of responding and recovering from an error condition. When a function or method fails, it is useful to understand what caused the failure and

Posted in Swift Tagged with: , , ,

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

Recent Posts


Hit Counter provided by technology news