Blog Archives

Swift MapKit Annotation

Swift MapKit Annotation Created By : Debasis Das (31-July-2016) We will be working in a series of Sample Code and Proof of concepts to play around MapKit.framework. This article is the first in the series to demonstrate swift mapkit annotation

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

Swift CAEmitterCell CAEmitterLayer Fireworks

Swift CAEmitterCell CAEmitterLayer Fireworks Created By : Debasis Das (May 2016) This post is inspired from the Firework Objective C App. The code has been re-written in Swift while removing the slider controls for controlling the fireworks. For the objective

Posted in Swift Tagged with: , ,

Swift CAEmitterCell CAEmitterLayer Sample Code

Swift CAEmitterCell Sample Code Created By: Debasis Das (May 2016) This post is inspired by the Objective C version of the Fire Demo Application from developer.apple.com and the flow is rewritten in Swift. https://developer.apple.com/library/mac/samplecode/Fire/Introduction/Intro.html The output of the program is

Posted in Swift Tagged with: , , ,

Swift NSSearchField NSTableView Sample Code

Swift NSSearchField NSTableView Sample Code Created By:Debasis Das (May 2016) In this post we will discuss the most lengthy way to implement a NSSearchField and tie the same to a NSTableView. Earlier we have discussed two alternate ways to achieve

Posted in Swift 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: , ,

Swift Fractal Tree

Swift Fractal Tree Created By : Debasis Das (May 2016) Source Code // Swift Fractal Tree // Created by Debasis Das on 15/05/16. // Copyright © 2016 Knowstack. All rights reserved. import Cocoa import Foundation class Tree: NSView { let

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

Swift NSDateFormatter

Swift NSDateFormatter Created By :Debasis Das (28-Feb-2016) In this article we will write a couple of sample code for Swift NSDateFormatter Before we start lets understand the NSDateFormatter and the different methods available in a NSDateFormatter class //Understanding the NSDateFormatter

Posted in Swift Tagged with: , , ,

Swift NSDatePicker Sample Code 2 Using beginSheet

Swift NSDatePicker Sample Code 2 Using beginSheet Created By: Debasis Das (12-Feb-2016) This is a continuation to the previous post where we created a NSDatePicker window controller and used delegate pattern to translate the selected date value to a date

Posted in Swift Tagged with: , , ,

NSImage (named:String) Sample Code

NSImage (named:String) Sample Code Created By:Debasis Das (11-Feb-2016) In this post we will use all the image resources available in NSImage class. These images are present in the AppKit Framework resources and are readily available for use in any Cocoa

Posted in Swift Tagged with: , , , ,

Recent Posts


Hit Counter provided by technology news