Program to read csv file and populate box with data sorted with predicates set with predicate editor in Swift

Closed Posted Nov 7, 2014 Paid on delivery
Closed Paid on delivery

I need to incorporate this into a larger application so need as much possible written up in code in Swift versus the xib editor.

I need an example application running in OSX that

a) reads in data from a csv file and populates into an array of objects. See and example object below.

b) The list of items should be filtered using predicates and the description of the items displayed in an NSComboBox for the user to select from

c) A predicate editor should be displayed where the user can select predicates to filter the list based on Brand, Style, Size, Maximum Torque, Bending Moment, etc. If possible the "Brand", "Style" and "Size" options should offer a list of choices from the dataset.

d) The Combobox should implement the String completion protocols.

e) finally when the selection has changed I need an easy way to get back the complete LockingAssembly item that has been selected.

Attached are some example screen shots.

Example object:

class LockingAssembly : NSObject { // Need NSObject so can selct from in list?

var Brand: String = ""

var Style = ""

var Size = ""

var MaximumTorque = 0.0

var MaximumBendingMoment = 0.0

var OuterDiameter = 0.0

var InnerDiameter = 0.0

var WidthAtHub = 0.0

var WidthAtShaft = 0.0

var NumberOfBolts = 0

var BoltTorque = 0.0

var HubPressure = 0.0

var ShaftPressure = 0.0

var IncludeBendingMomentInHub = false

override var description: String {

return "\(Brand) \(Style) \(Size)"

}

}

Cocoa Mac OS Objective C Swift

Project ID: #6699756

About the project

2 proposals Remote project Active Dec 14, 2014