[macruby-changes] [633] MacRuby/trunk/lib/hotcocoa/mappings/text_field.rb
source_changes at macosforge.org
source_changes at macosforge.org
Sat Sep 27 20:49:02 PDT 2008
Revision: 633
http://trac.macosforge.org/projects/ruby/changeset/633
Author: rich at infoether.com
Date: 2008-09-27 20:49:02 -0700 (Sat, 27 Sep 2008)
Log Message:
-----------
add delegate methdos to text fields
Modified Paths:
--------------
MacRuby/trunk/lib/hotcocoa/mappings/text_field.rb
Modified: MacRuby/trunk/lib/hotcocoa/mappings/text_field.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/text_field.rb 2008-09-28 01:34:59 UTC (rev 632)
+++ MacRuby/trunk/lib/hotcocoa/mappings/text_field.rb 2008-09-28 03:49:02 UTC (rev 633)
@@ -23,5 +23,12 @@
end
end
+
+ delegating "control:textShouldBeginEditing:", :to => :should_begin_editing?, :parameters => [:textShouldBeginEditing]
+ delegating "control:textShouldEndEditing:", :to => :should_end_editing?, :parameters => [:textShouldEndEditing]
+ delegating "controlTextDidBeginEditing:", :to => :did_begin_editing, :parameters => ["controlTextDidBeginEditing.userInfo['NSFieldEditor']"]
+ delegating "controlTextDidEndEditing:", :to => :did_end_editing, :parameters => ["controlTextDidEndEditing.userInfo['NSFieldEditor']"]
+ delegating "controlTextDidChange:", :to => :did_change, :parameters => ["controlTextDidChange.userInfo['NSFieldEditor']"]
+
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080927/89eaefb4/attachment.html
More information about the macruby-changes
mailing list