Questions tagged [option-set]

8 questions
6
votes
2 answers

Accessing Swift OptionSetType in Objective-C

In my Swift class, I have an OptionSetType defined for fulfillment options. struct FulfillmentOption : OptionSetType { let rawValue: Int static let Pickup = FulfillmentOption(rawValue: 1 << 0) static let Shipping =…
Brandon Schlenker
  • 5,078
  • 1
  • 36
  • 58
2
votes
1 answer

CloudFormation - DHCPOptions - Array of DomainNameServers doesn't maintain order

I have a DHCPOptions defined in my CloudFormation template as so: DhcpOptionSet: Type: AWS::EC2::DHCPOptions DependsOn: - DnsInstance - DnsSecondaryInstance Properties: DomainName: test.local DomainNameServers: - !GetAtt…
ev0lution37
  • 1,129
  • 2
  • 14
  • 28
1
vote
1 answer

What is a convenient way to work with OptionSet?

I work on a project with many bitwise option sets and each of them contains many options with all option e.g: struct MyOption: OptionSet { let rawValue: Int static let a = Self(rawValue: 1 << 0) static let b = Self(rawValue: 1 <<…
iUrii
  • 11,742
  • 1
  • 33
  • 48
0
votes
1 answer

Cannot copy option set value using mouse in angular material

When I set mat-select as disabled I cannot copy value from this field using mouse. When I am trying to copy value from other disabled fields like text input this problem doesn't exist. Is there any way to do this?
Iwoo
  • 147
  • 2
  • 12
0
votes
1 answer

Adding options which are not present in Metadata in a Option Set in Dynamics-365

I have created an option set field in an entity in CRM that has 3 options. Now I want to add another option based on some conditions dynamically(maybe when the page loads). Is it possible to do that? Thanks in advance.
pcghose
  • 179
  • 16
0
votes
1 answer

how to know which field connected to an optionset value group

I have 2 fields that are connected to the same optionset group, I was asked to change a value number and now I need to know which fields ( in the all system )are connected to the same optionset gourp, I need to know which fields are going to be…
Damkulul
  • 1,406
  • 2
  • 25
  • 59
0
votes
1 answer

Switch-case alternative to test a subset of bits in an Option Set?

I have an Option set that I use to efficiently store various information about an object. I.e. the first 6 or so bits determine the "type", and several bits determine whether or not it is in certain states, which may or may not be mutually…
Jake T.
  • 4,308
  • 2
  • 20
  • 48
-2
votes
1 answer

Correct value of rawValue in an OptionSet?

When working with an OptionSet, I believed that the rawValue always represented the combination of bits. In the example below, the "all" value does not have a correct rawValue. It is zero. If placing a breakpoint in the init function, it will indeed…
Developer-1
  • 163
  • 8