[macruby-changes] [1825] MacRuby/trunk/lib/hotcocoa/mappings/search_field.rb
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 8 23:44:29 PDT 2009
Revision: 1825
http://trac.macosforge.org/projects/ruby/changeset/1825
Author: rich at infoether.com
Date: 2009-06-08 23:44:28 -0700 (Mon, 08 Jun 2009)
Log Message:
-----------
add search_field mapping per #272
Added Paths:
-----------
MacRuby/trunk/lib/hotcocoa/mappings/search_field.rb
Added: MacRuby/trunk/lib/hotcocoa/mappings/search_field.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/search_field.rb (rev 0)
+++ MacRuby/trunk/lib/hotcocoa/mappings/search_field.rb 2009-06-09 06:44:28 UTC (rev 1825)
@@ -0,0 +1,9 @@
+HotCocoa::Mappings.map :search_field => :NSSearchField do
+
+ defaults :layout => {}, :frame => DefaultEmptyRect
+
+ def init_with_options(search_field, options)
+ search_field.initWithFrame options.delete(:frame)
+ end
+
+end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090608/fc65fb78/attachment.html>
More information about the macruby-changes
mailing list