Sha256: 9527ca324594db269e3cbd504fc1622a72c9b90fc30d0b1b790641d87f22eb55

Contents?: true

Size: 710 Bytes

Versions: 1

Compression:

Stored size: 710 Bytes

Contents

waxClass{"SimpleAnnotation", NSObject, protocols={"MKAnnotation"}}

function initWithLatLong(self, lat, long)
  self.super:init()
  self.lat = lat
  self.long = long
  
  -- These variables have underscores because they would have conflicted with 
  -- method names required by the MKAnnotation protocol.
  self._title = 'Untitled'
  self._subtitle = ''
  return self
end

function coordinate(self)
  return CLLocationCoordinate2D(self.lat, self.long)
end

function title(self)
  return self._title
end

function setTitle(self, title)
  self._title = title
  return nil
end

function subtitle(self)
  return self._subtitle
end

function setSubtitle(self, subtitle)
  self._subtitle = subtitle
  return nil
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
candle-0.0.7 lib/candle/generators/templates/map/scripts/SimpleAnnotation.lua