Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (25 sloc) 547 Bytes
class PageInfo
def encodeWithCoder(c)
c.encodeObject @imageRep, forKey:'imageRep'
c.encodeInt @pageOfRep, forKey:'pageOfRep'
end
def initWithCoder(c)
@imageRep = c.decodeObjectForKey 'imageRep'
@pageOfRep = c.decodeObjectForKey 'pageOfRep'
self
end
def preparedImageRep
unless @pageOfRep.nil?
@imageRep.currentPage = @pageOfRep
end
@imageRep
end
attr_reader :imageRep
attr_reader :pageOfRep
def setImageRep(r)
@imageRep = r
end
def setPageOfRep(i)
@pageOfRep = i
end
end
Jump to Line
Something went wrong with that request. Please try again.