Class: NSIndexPath

Inherits:
Object show all
Defined in:
lib/sugarcube/nsindexpath.rb

Instance Method Summary collapse

Instance Method Details

#to_aObject



2
3
4
5
6
7
8
9
10
# File 'lib/sugarcube/nsindexpath.rb', line 2

def to_a
  indexes_ptr = Pointer.new(:uint, self.length)
  self.getIndexes indexes_ptr
  a = []
  self.length.times do |i|
    a << indexes_ptr[i]
  end
  a
end