I'm fairly new to Ruby/MacRuby. I followed the stopwatch example on the MacRuby website and i used that example to try and make a simple app which takes 6 small text fields and then displays the input in another larger text field. I found a couple (although vague and very horribly documented) examples
class AppDelegate
attr_accessor :window
attr_accessor :subjectField, :messageField, :emailTo, :emailFrom, :smtpServerAddress, :smtpPort, :password
attr_writer :subjectField, :messageField, :emailTo, :emailFrom, :smtpServerAddress, :smtpPort, :password
def setMessageField(sender)
@messageField += "SMTP Server Address: #{@smtpServerAddress.to_s}\n")
@messageField += "SMTP Port: #{@smtpPort.to_s}\n")
@messageField += "User Email: #{@emailFrom.to_s}\n")
@messageField += "User Password: #{@password.to_s}\n")
@messageField += "To Email: #{@emailTo.to_s}\n")
@messageField += "Subject: #{@subjectField.to_s}\n")
end
end
Obviously there is something wrong here but can anyone give me a hint in the right direction? I saw this post on here but I didn't understand it very well.