Class: NSIndexSet

Inherits:
Object show all
Defined in:
lib/cocoa/sugarcube-foundation/nsindexset.rb

Instance Method Summary collapse

Instance Method Details

#to_aObject



2
3
4
5
6
7
8
9
10
# File 'lib/cocoa/sugarcube-foundation/nsindexset.rb', line 2

def to_a
  a = []
  self.enumerateIndexesUsingBlock(
    lambda do |idx, stop_ptr|
      a << idx
    end
  )
  a
end