UA-17470720-3

Jump to content


Photo
- - - - -

SCPropertyTypeSelection with NSString?


  • Please log in to reply
4 replies to this topic

#1 Bryan Saltzman

Bryan Saltzman

    Experienced Member

  • STV 2.0
  • PipPipPipPip
  • 70 posts
Reputation: 0
Neutral

Posted 15 August 2010 - 08:58 PM

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.

#2 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 16 August 2010 - 01:34 AM

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.

#3 Bryan Saltzman

Bryan Saltzman

    Experienced Member

  • STV 2.0
  • PipPipPipPip
  • 70 posts
Reputation: 0
Neutral

Posted 16 August 2010 - 08:39 AM

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;
}

#4 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 16 August 2010 - 10:40 AM

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.

#5 Bryan Saltzman

Bryan Saltzman

    Experienced Member

  • STV 2.0
  • PipPipPipPip
  • 70 posts
Reputation: 0
Neutral

Posted 16 August 2010 - 10:43 AM

That is awesome!! I am glad you appreciate my feedback. This software has great potential!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users