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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…