Welcome, Guest
Username Password: Remember me

SCPropertyTypeSelection with NSString?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: SCPropertyTypeSelection with NSString?

SCPropertyTypeSelection with NSString? 1 year, 9 months ago #1

Does the type associated with an SCPropertyDefinition that wants to use the SCPropertyTypeSelection have to be an NSArray or NSMutableSet? I want to use a simple NSString to store the selected value similar to a picker.
  • baberuth22
  • OFFLINE
  • Expert Boarder
  • Posts: 84
  • Karma: 2

Re: SCPropertyTypeSelection with NSString? 1 year, 9 months ago #2

Thank you very much for your suggestion. I think this is a really good idea! Will be added to our next release of Sensible TableView.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: SCPropertyTypeSelection with NSString? 1 year, 9 months ago #3

That is very disappointing. So if I want to offer predefined values to assign to an NSString I have to use a SegmentedControl?

I have far too many options to use a segmented control. Is there a work around? I bought this library for a project that must be completed in several days.

I am looking at how to update the code myself. Here is the section of interest and notes. This seems like a major oversight to me. Please help.

* There are three ways to set/retrieve the section's selection:
* - Through binding an object to the section, and specifying a property name to bind the selection
* result to. The bound property must be of type NSMutableSet.
* - Through binding a key to the section and setting/retrieving through the ownerTableViewModel modelKeyValues property.
* - Through the selectedItemsIndexes property.
*
* See also: SCSelectionCell.
*/
@interface SCSelectionSection : SCArrayOfItemsSection
{
BOOL allowMultipleSelection;
BOOL allowNoSelection;
NSMutableSet *_selectedItemsIndexes;
}
  • baberuth22
  • OFFLINE
  • Expert Boarder
  • Posts: 84
  • Karma: 2

Re: SCPropertyTypeSelection with NSString? 1 year, 9 months ago #4

No need to update the code yourself, our new release (due tomorrow) will add your requested feature and thus will hopefully solve all your problems. Please tell us if you have any more requests. Thanks a lot.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: SCPropertyTypeSelection with NSString? 1 year, 9 months ago #5

That is awesome!! I am glad you appreciate my feedback. This software has great potential!
  • baberuth22
  • OFFLINE
  • Expert Boarder
  • Posts: 84
  • Karma: 2
  • Page:
  • 1
Time to create page: 0.79 seconds