Use the App to get this framework
|
|
ALTableViewHelperWith text describe the contents of your NSTableView. ALTableViewHelper then keeps your TableView matched to your data. Objective-Cimport "ALTableViewHelper/ALTableViewHelper.h" [self.collectionGrid setHelperString:@"" "section\n" " versionItem * model.versions.all |filter{ model.versions[@].state == 'p' }\n" " $.title <~ @.description\n" "section\n" " endItem\n" " $.title <~ 'No Upload’\n”, context:self]; SwiftcollectionGrid.setHelperString(""" section versionItem * model.versions.all |filter{ model.versions[@].state == 'p' } $.title <~ @.description section endItem $.title <~ 'No Upload’ """, context:self) The context gives where values come from, so TableViewDescriptionsection // to define header text headertext "The Title" // or any other expression // to define a header view header LoginHeader (44 /* or a calculation for the height */) // bindings for LoginHeader body UserName //bindings for UserName Password // bindings for Password DiscoveredAccount * accounts // bindings for DiscoveredAccount’s footertext "There were \\(total) in all" footer LoginFooter (52) // bindings for LoginFooter section // contents for the second section section * extraLoginTypes // contents for these sections The description is line-based, with spaces at the beginning of lines to give structure. The description is a list of sections - these define the NSTableView's sections. Within each section a there can be:
The ALTableViewDescriptionheader StrikingHeader (56) $.title <~ "My Descriptions" $.subTitle <~ "are read often" footer StrikingFooter $.viewWithTag(1).text <~ 'By \\(count) people' Inside the body the list of items/cells within the section should be listed. Each item/cell and supplementary view can have a number of ALBind bindings. A section or item/cell can be single, or multiplied by the contents of an array or number: ALTableViewDescriptionsection MyLoginPassword section * contactsByFirstLetter ContactView * 5 When multiplying by an array or number, one section or item/cell is created for each member or value. The value for each section or item/cell is available as ALTableViewDescriptionsection AddressBookEntry * addresses |sort{@.surname < $.surname} $.itemFromAddressBook <~ @ The items and supplementary views are nibs, classes or the prototype cells in the storyboard. What's New in Version 1.2.0 4th Oct. 2018Support using supplementary views for section headers & footers Version 1.1.0 18th Sept. 2018Use ALMultiDelegate to improve inter-working with client applications Version 1.0.1 11th Sept. 2018Stop translating thrown exceptions into assert(false)'s when inserting table rows Version 1.0.0 17th July 2018Bump version to show ready-for-use. Version 0.0.4 20th March 2018Adjust SDK versions back for increased compatibility. Version 0.0.3 23rd Feb. 2018Ensure correct FAP adjustments have been applied. Version 0.0.2 14th Nov. 2017Update framework versions used. Version 0.0.1 2nd Nov. 2017Change Deployment Targets back to iOS 8.0. Version 0.0.0 16th Oct. 2017Initial version ...More
|
Use the App to get this framework
|
ALTableViewHelperWith text describe the contents of your NSTableView. ALTableViewHelper then keeps your TableView matched to your data. Objective-Cimport "ALTableViewHelper/ALTableViewHelper.h" [self.collectionGrid setHelperString:@"" "section\n" " versionItem * model.versions.all |filter{ model.versions[@].state == 'p' }\n" " $.title <~ @.description\n" "section\n" " endItem\n" " $.title <~ 'No Upload’\n”, context:self]; SwiftcollectionGrid.setHelperString(""" section versionItem * model.versions.all |filter{ model.versions[@].state == 'p' } $.title <~ @.description section endItem $.title <~ 'No Upload’ """, context:self) The context gives where values come from, so TableViewDescriptionsection // to define header text headertext "The Title" // or any other expression // to define a header view header LoginHeader (44 /* or a calculation for the height */) // bindings for LoginHeader body UserName //bindings for UserName Password // bindings for Password DiscoveredAccount * accounts // bindings for DiscoveredAccount’s footertext "There were \\(total) in all" footer LoginFooter (52) // bindings for LoginFooter section // contents for the second section section * extraLoginTypes // contents for these sections The description is line-based, with spaces at the beginning of lines to give structure. The description is a list of sections - these define the NSTableView's sections. Within each section a there can be:
The ALTableViewDescriptionheader StrikingHeader (56) $.title <~ "My Descriptions" $.subTitle <~ "are read often" footer StrikingFooter $.viewWithTag(1).text <~ 'By \\(count) people' Inside the body the list of items/cells within the section should be listed. Each item/cell and supplementary view can have a number of ALBind bindings. A section or item/cell can be single, or multiplied by the contents of an array or number: ALTableViewDescriptionsection MyLoginPassword section * contactsByFirstLetter ContactView * 5 When multiplying by an array or number, one section or item/cell is created for each member or value. The value for each section or item/cell is available as ALTableViewDescriptionsection AddressBookEntry * addresses |sort{@.surname < $.surname} $.itemFromAddressBook <~ @ The items and supplementary views are nibs, classes or the prototype cells in the storyboard. What's New in Version 1.2.0 4th Oct. 2018Support using supplementary views for section headers & footers Version 1.1.0 18th Sept. 2018Use ALMultiDelegate to improve inter-working with client applications Version 1.0.1 11th Sept. 2018Stop translating thrown exceptions into assert(false)'s when inserting table rows Version 1.0.0 17th July 2018Bump version to show ready-for-use. Version 0.0.4 20th March 2018Adjust SDK versions back for increased compatibility. Version 0.0.3 23rd Feb. 2018Ensure correct FAP adjustments have been applied. Version 0.0.2 14th Nov. 2017Update framework versions used. Version 0.0.1 2nd Nov. 2017Change Deployment Targets back to iOS 8.0. Version 0.0.0 16th Oct. 2017Initial version ...More
|