[macruby-changes] [1828] MacRuby/trunk/lib/hotcocoa/mappings/sort_descriptor.rb
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 8 23:51:06 PDT 2009
Revision: 1828
http://trac.macosforge.org/projects/ruby/changeset/1828
Author: rich at infoether.com
Date: 2009-06-08 23:51:06 -0700 (Mon, 08 Jun 2009)
Log Message:
-----------
added sort descriptor
Modified Paths:
--------------
MacRuby/trunk/lib/hotcocoa/mappings/sort_descriptor.rb
Modified: MacRuby/trunk/lib/hotcocoa/mappings/sort_descriptor.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/sort_descriptor.rb 2009-06-09 06:50:13 UTC (rev 1827)
+++ MacRuby/trunk/lib/hotcocoa/mappings/sort_descriptor.rb 2009-06-09 06:51:06 UTC (rev 1828)
@@ -2,11 +2,11 @@
defaults :ascending => true
- def init_with_options(sd, opts)
+ def init_with_options(sort_descriptor, opts)
if opts.has_key?(:selector)
- sd.initWithKey(opts.delete(:key), ascending:opts.delete(:ascending))
+ sort_descriptor.initWithKey(opts.delete(:key), ascending:opts.delete(:ascending))
else
- sd.initWithKey(opts.delete(:key), ascending:opts.delete(:ascending), selector:opts.delete(:selector))
+ sort_descriptor.initWithKey(opts.delete(:key), ascending:opts.delete(:ascending), selector:opts.delete(:selector))
end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090608/8cae1f58/attachment.html>
More information about the macruby-changes
mailing list