12009-12-05 kimura wataru <kimuraw@i.nifty.jp> 2 3 * install.rb: 4 install.rb should fail with ruby-1.9. RubyCocoa do not support 1.9. 5 6 * framework/post-config.rb: 7 fix missing `-arch' in CFLAGS from --target-archs option (bug:#2908732) 8 92009-11-05 kimura wataru <kimuraw@i.nifty.jp> 10 11 * tests/tc_active_record.rb: 12 fix test failure from method missing `default_scoping=' 13 142009-11-04 kimura wataru <kimuraw@i.nifty.jp> 15 16 * framework/post-config.rb: 17 fix name error for 'gen-bridge-support'. 18 192009-10-25 kimura wataru <kimuraw@i.nifty.jp> 20 21 * framework/src/ruby/osx/objc/active_record.rb: 22 Fix sample/MailDemo do not launch (rubycocoa:0488) 23 242009-10-18 kimura wataru <kimuraw@i.nifty.jp> 25 26 * framework/src/objc/mdl_objwrapper.m: 27 disable auto register methods on proxy classes. 28 29=== RubyCocoa 1.0.1 === 30 312009-10-18 kimura wataru <kimuraw@i.nifty.jp> 32 33 * VERSION: 34 Updated for 1.0.1. 35 362009-10-16 kimura wataru <kimuraw@i.nifty.jp> 37 38 * package/config/10.5, package/config/10.6: 39 update packaging configurations 40 41 * pre-config.rb: 42 use -DRB_ID=ID for 10.6 or later (revert r2253) 43 44 * framework/post-setup.rb: 45 not to make a symlink RubyCococa.framework/Headers/Headers 46 472009-10-10 kimura wataru <kimuraw@i.nifty.jp> 48 49 * tests/tc_types.rb: 50 skips assersions occurs SEGV and print a warning on 10.6. 51 52 * framework/src/objc/mdl_objwrapper.m: 53 fix SEGV from auto register methods (bug of r2234). 54 552009-10-09 kimura wataru <kimuraw@i.nifty.jp> 56 57 * framework/src/objc/mdl_osxobjc.m, 58 framework/src/objc/mdl_objwrapper.m, 59 framework/src/objc/internal_macros.h, 60 framework/src/objc/OverrideMixin.m, tests/tc_subclass.rb: 61 fix invoke-based undo management does not work on 10.6. 62 632009-10-07 kimura wataru <kimuraw@i.nifty.jp> 64 65 * tests/tc_subclass.rb: 66 on 10.6 NSArray.array returns an instance of NSArray, not NSCFArray. 67 68 * framework/src/objc/mdl_objwrapper.m: 69 adhoc fix of raising NSInternalInconsistencyException from 70 NSUndoManager#prepareWithInvocationTarget: on 10.6. 71 72 * pre-config.rb: 73 correct build error when --target-archs is not given. 74 752009-10-05 kimura wataru <kimuraw@i.nifty.jp> 76 77 * pre-install.rb: 78 specify full path of `xargs'. install task fails with gnu xargs. 79 802009-09-23 kimura wataru <kimuraw@i.nifty.jp> 81 82 * template/ProjectBuilder/Application/*: 83 upgrade projecte templates for Xcode 3.x. apply a patch from Apple: 84 http://www.opensource.apple.com/source/RubyCocoa/RubyCocoa-67/patches/fix_templates_for_leopard.diff 85 and remove SDKROOT. 86 87 * pre-install.rb, template/Xcode2.x: 88 separate project templates for Xcode 3.x and Xcode 2.x. 89 90 * framework/src/ruby/osx/objc/oc_attachments.rb, tests/tc_nsstring.rb: 91 use Objective-C hash for NSString#hash, it makes NSString to become a 92 key of Ruby Hash. (tracker:2849613) 93 942009-09-22 kimura wataru <kimuraw@i.nifty.jp> 95 96 * framework/src/objc/mdl_osxobjc.m, tests/tc_passbyref.rb, 97 tests/tc_objcptr.rb: 98 introduce OSX::RUBYCOCOA_BUILD_LP64 (true/false). 99 fix some test cases for 64-bit. 100 101 * framework/src/ruby/osx/objc/foundation.rb: 102 correct value of NSNotFound to NSIntegerMax. 103 10.6 Foundation.bridgesupport defines the value64 of NSNotFound as -1. 104 105 * tests/tc_objcptr.rb, tests/tc_types.rb: 106 skip some assertions. most of cftypes become NSObject(__NSCFType) via 107 toll-free on 10.6, and names of the cftypes are not defined in Ruby. 108 1092009-09-20 kimura wataru <kimuraw@i.nifty.jp> 110 111 * framework/src/objc/BridgeSupport.m: 112 correct reading order between 'value64' and 'value' from .bridgesupport 113 114 * install.rb: 115 new option --arch of test task allows testing specified architecture, 116 like `ruby install.rb test --arch=i386'. 117 118 * tests/Makefile.in: 119 use -arch flags for compiling tests/*.bundle. 120 121 * tests/tc_bool.rb: 122 fix a failure of test_informal_protocol(in tc_bool.rb). 123 use "validateMenuItem", not "control:textView:doCommandBySelector:" 124 for testing informal protocol. 125 On 10.6, "control:textView:doCommandBySelector:" becomes an optional 126 method of a formal protocol NSTextViewDelegate. 127 1282009-09-17 Satoshi Nakagawa <psychs@limechat.net> 129 130 * pre-config.rb: 131 Enabled -DRB_ID=ID always. 132 Because we need it to build RubyCocoa with target=10.5 on 10.6. 133 1342009-09-15 kimura wataru <kimuraw@i.nifty.jp> 135 136 * Rakefile: 137 remove config option "--build-universal". 138 139 * pre-config.rb, framework/GeneratedConfig.xcconfig.in, 140 ext/rubycocoa/extconf.rb.in: 141 use $ARCHS of Xcode for building RubyCocoa.xcodeproj 142 1432009-09-15 kimura wataru <kimuraw@i.nifty.jp> 144 145 * package/post-package.rb, package/pre-package.rb, 146 package/config/10.4, package/config/10.5, package/config/10.6: 147 use --target-archs for packaging. remove "universal" from package 148 name, like "RubyCocoa-1.0.0-OSX10.6.dmg" 149 1502009-09-15 kimura wataru <kimuraw@i.nifty.jp> 151 152 * pre-config.rb, framework/post-config.rb, metaconfig: 153 remove configure option "--build-universal", and 154 add option "--target-archs". 155 1562009-09-15 Satoshi Nakagawa <psychs@limechat.net> 157 158 * src/framework/src/objc/RBRuntime.m: 159 Switch back to disable the threading hacks in runtime. 160 1612009-09-15 Satoshi Nakagawa <psychs@limechat.net> 162 163 * src/framework/src/objc/RBRuntime.m: 164 We cannot use a common RubyCocoa.framework on 10.5 and 10.6. 165 So simply applied a patch from Apple: http://www.opensource.apple.com/source/RubyCocoa/RubyCocoa-67/patches/disable_threading_hacks.diff 166 1672009-09-15 Satoshi Nakagawa <psychs@limechat.net> 168 169 * src/framework/src/objc/RBRuntime.m: 170 Disable threading hacks in 10.6. 171 Based on a patch from Apple: http://www.opensource.apple.com/source/RubyCocoa/RubyCocoa-67/patches/disable_threading_hacks.diff 172 1732009-09-13 kimura wataru <kimuraw@i.nifty.jp> 174 175 * framework/src/objc/internal_macros.h: 176 suppress warning "format not a string literal and no format arguments" 177 1782009-09-08 kimura wataru <kimuraw@i.nifty.jp> 179 180 * package/config/10.4, package/config/10.5: 181 - correct install destination of project templates (10.5). 182 - correct comment (10.4 and 10.5). 183 184 * package/config/10.6: 185 packaging support for 10.6 Snow Leopard. 186 187=== RubyCocoa 1.0.0 === 188 1892009-07-24 kimura wataru <kimuraw@i.nifty.jp> 190 191 * VERSION: 192 Updated for 1.0.0. 193 1942009-07-22 kimura wataru <kimuraw@i.nifty.jp> 195 196 * package/config/10.4, package/config/10.5: 197 improve packaging. 198 199 * misc/bridge-support-tiger.tar.gz: 200 regenerate bridgesupport files on Mac OS X 10.4.11 201 2022009-07-19 kimura wataru <kimuraw@i.nifty.jp> 203 204 * framework/src/objc/BridgeSupport.m, tests/tc_bs.rb: 205 disable reload_protocols() on 10.4 or earlier. it means 206 DO NOT SUPPORT formal protocols with bridgesupport on 10.4. 207 there is no objc runtime-api for gathering all protocols in 208 objective-c 1.0. 209 2102009-07-18 kimura wataru <kimuraw@i.nifty.jp> 211 212 * tests/tc_bs.rb, tests/Makefile.in, tests/objc_proto.m: 213 add a test for reload_protocols(), in BridgeSupport.m. 214 215 * framework/src/objc/internal_macros.h: 216 fix debug log (with RUBYOPT=-d) print only format string (revert r2223) 217 2182009-06-09 kimura wataru <kimuraw@i.nifty.jp> 219 220 * framework/src/objc/RBObject.m, 221 framework/src/objc/mdl_objwrapper.m, 222 tests/tc_passbyref.rb, tests/tc_subclass.rb: 223 make to programs written with strict syntax behave same whether 224 OSX.relaxed_syntax is true or not. 225 prefer always methods with the last charactor "_" when invoke ruby 226 method from objective-c. 227 2282009-05-15 Satoshi Nakagawa <psychs@limechat.net> 229 230 * src/framework/src/objc/RBClassUtils.m: 231 Improved warning message by Eloy Duran. 232 2332008-10-28 kimura wataru <kimuraw@i.nifty.jp> 234 235 * install.rb: 236 fix failure of test_loadlibs() from an ambiguous condition for path 237 of RubyCocoa.framework. 238 2392008-08-25 kimura wataru <kimuraw@i.nifty.jp> 240 241 * framework/src/objc/mdl_bundle_support.m: 242 avoid crashes from bundleForClass: on ruby uninitialized thread. 243 [Rubycocoa-devel 1368] by Jonathan deWerd. 244 2452008-07-25 Eloy Duran <e.duran@superalloy.nl> 246 247 * Rakefile: 248 Check for the existence of rubycocoa.bundle before running the install task. 249 2502008-07-20 kimura wataru <kimuraw@i.nifty.jp> 251 252 * framework/src/ruby/osx/objc/oc_attachments.rb, 253 tests/tc_nsarray.rb: 254 adjust behavior of OSX::NSArray#slice! to Array#slice on both of 255 Ruby 1.8.7 and 1.8.6 (or earlier). 256 257 * framework/src/ruby/osx/objc/oc_attachments.rb: 258 refactoring OSX::NSString#_read_impl() 259 refactoring OSX::NSArray#_read_impl() 260 2612008-07-02 kimura wataru <kimuraw@i.nifty.jp> 262 263 * framework/src/ruby/osx/objc/oc_import.rb: 264 fix infinite loop of kvc-setter defined by invoking kvc_writer() 265 multiple times for the same key. 266 2672008-07-01 kimura wataru <kimuraw@i.nifty.jp> 268 269 * metaconfig: 270 change install destination of Xcode temlate files 271 from /Library/Application Support/Developer/3.0/Xcode/ 272 to /Library/Application Support/Developer/Shared/Xcode/. 273 2742008-06-26 kimura wataru <kimuraw@i.nifty.jp> 275 276 * tests/tc_nsarray.rb: 277 the behavior of Array#slice! with out-of-boundary was changed in 278 ruby 1.8.7. see "Compatibility issues" of 279 http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7/NEWS 280 [ToDo]NSArray#slice! in osx/objc/oc_attachments.rb should be modified. 281 282 * framework/src/ruby/osx/objc/oc_attachments.rb: 283 fix infinite loop of NSArray#count and NSDictionary#count for 284 add Enumerable#count for ruby 1.8.7. 285 286 * framework/src/objc/RBObject.m: 287 fix "[BUG] object allocation during garbage collection phase" at 288 -[RBObject releaseRubyObject] on ruby 1.8.7. 289 2902008-05-29 kimura wataru <kimuraw@i.nifty.jp> 291 292 * tests/tc_subclass.rb: 293 simplify test_rbobject_kvo_autonotify. 294 295 * framework/src/ruby/osx/objc/oc_import.rb, 296 tests/tc_kvc_kvo.rb, tests/tc_subclass.rb: 297 bug fix: ignoring automaticallyNotifiesObserversForKey: at 298 to-many KVC-accessors defined by kvc_array_accessor. 299 3002008-05-28 kimura wataru <kimuraw@i.nifty.jp> 301 302 * framework/src/ruby/osx/objc/oc_import.rb, 303 tests/tc_subclass.rb: 304 remove unwanted willChangeValueForKey and didChangeValueForKey. 305 this bug makes an object to send wrong notification via KVO. 306 Though the reciever does not have a setter for the key, Cocoa invokes 307 these methods in setValue:forKey:. 308 309 * framework/src/ruby/osx/objc/oc_import.rb, 310 tests/tc_subclass.rb: 311 bug fix: ignoring automaticallyNotifiesObserversForKey: at 312 setValue:forKey: with accessors defined by kvc_writer. 313 3142008-05-15 Eloy Duran <e.duran@superalloy.nl> 315 316 * sample/Scripts/HelloWorld.rb, 317 sample/Scripts/sndplay.rb: 318 - Updated HelloWorld to work with MacRuby RubyCocoa layer. Also cleaned up the whitespace a bit, sumimasen Hisa-san ;) 319 - Updated sndplay to not segfault (10.5) anymore and cleaned a bit more. 320 3212008-04-22 kimura wataru <kimuraw@i.nifty.jp> 322 323 * framework/src/ruby/osx/objc/oc_wrapper.rb, tests/tc_constants.rb: 324 use default handling of method_missing failure for OSX module. 325 suggested by Tammo Freese in [rubycocoa-devel:1353] 326 3272008-04-11 Eloy Duran <e.duran@superalloy.nl> 328 329 * framework/src/ruby/osx/objc/oc_import.rb: 330 Added documentation for OSX.require_framework. Patch by Scott Thompson. 331 3322008-04-02 Satoshi Nakagawa <artension@gmail.com> 333 334 * framework/src/ruby/osx/objc/oc_attachments.rb, 335 tests/tc_nsstring_compat.rb: 336 NSString#split without parameters should see $; not $/. 337 3382008-03-12 kimura wataru <kimuraw@i.nifty.jp> 339 340 * install.rb, package/config/10.4, package/config/10.5: 341 package task ignores config.save and overwrite with package/config/*. 342 343=== RubyCocoa 0.13.2 === 344 3452007-02-14 Laurent Sansonetti <lsansonetti@apple.com> 346 347 * **/*.{rb,m,h}: 348 Updated copyright headers for 2008. 349 350 * VERSION: 351 Updated for 0.13.2. 352 3532008-02-13 Eloy Duran <e.duran@superalloy.nl> 354 355 * framework/src/ruby/osx/objc/active_record.rb: 356 Fixed compatibility bug with AR 1.15.x. 357 Patch thanks to Laurent Sansonetti. 358 3592008-02-10 kimura wataru <kimuraw@i.nifty.jp> 360 361 * framework/src/objc/mdl_objwrapper.m: 362 should use rbobj_to_nsobj(), not rbobj_get_ocid(), to get a Ruby 363 VALUE from ObjC id. rbobj_get_ocid() is a very internal function. 364 3652007-02-09 Laurent Sansonetti <lsansonetti@apple.com> 366 367 * framework/src/objc/RBObject.m, 368 framework/src/objc/OverrideMixin.m: 369 Resume caching method arguments of objc callbacks, which was disabled 370 for an unknown reason. (Thanks Kimura-san.) 371 3722008-02-08 kimura wataru <kimuraw@i.nifty.jp> 373 374 * install.rb: 375 add "--test-args" option of install.rb. this option enables to pass 376 arguments of AutoRunner on test task. 377 ex) run test only "test_ocid" method 378 % ruby install.rb test --test-args="--name=test_ocid" 379 3802008-02-08 kimura wataru <kimuraw@i.nifty.jp> 381 382 * framework/src/objc/RBObject.m, 383 framework/src/objc/libffi.m, 384 framework/src/objc/ocdata_conv.h, 385 framework/src/objc/ocdata_conv.m, 386 framework/src/objc/OverrideMixin.m, 387 framework/src/objc/BridgeSupport.m: 388 rename two functions in ocdata_conv.h 389 - encoding_skip_modifiers() -> encoding_skip_to_first_type() 390 - encoding_skip_notype() -> encoding_skip_qualifiers() 391 392 3932007-02-07 Laurent Sansonetti <lsansonetti@apple.com> 394 395 * sample/RSSPhotoViewer/rb_main.rb, 396 sample/QTKitSimpleDocument/rb_main.rb: 397 Removed ENV['BRIDGE_SUPPORT_PATH']= debug calls. 398 3992008-02-08 kimura wataru <kimuraw@i.nifty.jp> 400 401 * framework/src/objc/libffi.m, 402 framework/src/objc/ocdata_conv.h, 403 framework/src/objc/ocdata_conv.m: 404 fix: cannot handle objc types with qualifiers such as (in|out|inout). 405 add a function "encoding_skip_notype", skipping type encoding 406 characters. 407 408 * tests/tc_passbyref.rb, 409 tests/objc_test.m: 410 add tests of type encoding with (in|out|inout|bycopy|oneway). 411 4122008-02-01 Eloy Duran <e.duran@superalloy.nl> 413 414 * framework/src/ruby/osx/objc/active_record.rb: 415 416 Fixed bug on case-sensitive filesystems where 'FileUtils' was required instead of 'fileutils'. 417 Reported by Jason Foreman. 418 4192008-01-29 Eloy Duran <e.duran@superalloy.nl> 420 421 * sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu.nib/classes.nib, 422 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu.nib/info.nib, 423 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu.nib/keyedobjects.nib, 424 sample/MailDemo/MailDemoActiveRecordBindings/MailDemoActiveRecordBindings.xcodeproj/project.pbxproj: 425 Made the MailDemoActiveRecordBindings sample use the new BelongsToActiveRecordSetController for the Emails. 426 4272008-01-21 Eloy Duran <e.duran@superalloy.nl> 428 429 * framework/src/ruby/osx/objc/active_record.rb, 430 tests/tc_active_record.rb: 431 - Fixed a bug where calling #to_activerecord_proxy on the same record object would return a new different proxy 432 object and thus resulting in a kvo error. The proxy instance is now cached in the record itself. 433 - Made more speed improvements by making sure that all the record methods are only defined once on the proxy class. 434 - A ActiveRecordProxy instance will now go through #rbValueForKey and thus also return a ActiveRecordProxy instance. 435 4362008-01-20 Eloy Duran <e.duran@superalloy.nl> 437 438 * tests/tc_attachments.rb: 439 Added one more test to check if f.to_ns.to_ruby does equal f. 440 4412008-01-20 Satoshi Nakagawa <artension@gmail.com> 442 443 * framework/src/ruby/osx/objc/oc_attachments.rb, 444 tests/tc_attachments.rb: 445 NSNumber#to_f should use doubleValue. 446 4472008-01-20 Satoshi Nakagawa <artension@gmail.com> 448 449 * package/pre-package.rb, 450 framework/post-setup.rb, 451 misc/bridge-support-tiger.tar.gz: 452 Now we can build a release package for Tiger on Leopard. 453 4542008-01-19 Eloy Duran <e.duran@superalloy.nl> 455 456 * tests/TableView.nib, 457 tests/TableView.nib/classes.nib, 458 tests/TableView.nib/info.nib, 459 tests/TableView.nib/keyedobjects.nib, 460 tests/tc_uniqobj.rb: 461 Added a failing test, which shows the current bug where equality doesn't work with objc objects. 462 4632008-01-19 Eloy Duran <e.duran@superalloy.nl> 464 465 * framework/src/ruby/osx/objc/active_record.rb, 466 tests/tc_active_record.rb: 467 - Completely refactored the ActiveRecord related tests. (There's one FIXME in the file, which causes a segfualt.) 468 - Refactored the ActiveRecord libraries a bit. 469 4702008-01-18 Eloy Duran <e.duran@superalloy.nl> 471 472 * tests/maildemo.sql, 473 tests/tc_active_record.rb: 474 - The ActiveRecord related tests now use an in memory sqlite db, 475 so there's no clutter on the filesystem needed anymore. 476 - Fixed the ActiveRecord related tests after the last commit. 477 4782008-01-18 Satoshi Nakagawa <artension@gmail.com> 479 480 * pre-setup.rb, 481 pre-config.rb, 482 misc/libffi/Makefile.rubycocoa: 483 Fixed a problem, libffi should be built always for macosx-deployment-target=10.4. 484 4852008-01-18 Eloy Duran <e.duran@superalloy.nl> 486 487 * framework/src/ruby/osx/objc/active_record.rb: 488 489 - Made speed improvements in the way records in a has many association are created. 490 You'll get this by using a BelongsToActiveRecordSetController instead of a ActiveRecordSetController. 491 - ActiveRecordSetController now allows to destroy a multiple selection. 492 4932008-01-13 Eloy Duran <e.duran@superalloy.nl> 494 495 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 496 framework/tool/gen_bridge_doc/lib/lib/hpricot_proxy.rb, 497 framework/tool/gen_bridge_doc/rdocify_framework.rb: 498 Fixed bugs that were introduced by the new (not better) layout Apple uses for it's reference docs. 499 This does not yet fix any regular parsing errors for misspelled methods etc, but the majority will parse. 500 5012008-01-13 Satoshi Nakagawa <artension@gmail.com> 502 503 * framework/src/ruby/osx/objc/oc_attachments.rb, 504 tests/tc_nsstring_compat.rb, 505 tests/tc_nsarray.rb, 506 tests/tc_to_ns.rb: 507 - Refactoring. 508 - Fixed a bug, NSString#scan(regexp){block} passed String to its block argument. It should be NSString. 509 - Fixed a bug, NSString#split returned an array contains immutable NSString sometimes. 510 - Fixed a bug, NSArray#delete always yielded a block. 511 5122008-01-09 Satoshi Nakagawa <artension@gmail.com> 513 514 * framework/src/ruby/osx/objc/oc_types.rb, 515 framework/src/ruby/osx/objc/oc_attachments.rb, 516 tests/tc_boxed.rb, 517 tests/tc_types.rb: 518 - Added NSSize methods: /, *, +, -. 519 - Added NSPoint methods: +, -. 520 - Made NSNumber#float? deprecated and added integer? to conform to Number#integer?. 521 - Added tests. 522 5232008-01-09 Satoshi Nakagawa <artension@gmail.com> 524 525 * framework/src/objc/RBObject.m, 526 framework/src/objc/RBRuntime.m, 527 framework/src/objc/OverrideMixin.m, 528 framework/src/objc/ocdata_conv.m, 529 framework/src/objc/libffi.m, 530 framework/src/objc/mdl_osxobjc.m, 531 framework/src/objc/mdl_objwrapper.m, 532 framework/src/objc/cls_objcptr.m: 533 - Set volatile to some VALUE type local variables. 534 If VALUE local variables are erased by optimization, the VALUE is missing from the stack. 535 It could cause that GC sweeps the VALUE. 536 See http://i.loveruby.net/ja/rhg/book/gc.html (in Japanese) 537 - Changed func(RSTRING(rb_inspect(obj))->ptr to StringValuePtr(). Because it was a dangling pointer. 538 5392008-01-09 Satoshi Nakagawa <artension@gmail.com> 540 541 * framework/src/objc/RBObject.m, 542 framework/src/objc/RBRuntime.m, 543 framework/src/objc/ocdata_conv.m, 544 framework/src/objc/mdl_osxobjc.m, 545 framework/src/objc/mdl_objwrapper.m, 546 framework/src/objc/mdl_bundle_support.m, 547 framework/src/objc/cls_objcptr.m, 548 framework/src/objc/BridgeSupport.m: 549 Migrated from STR2CSTR() to StringValuePtr(). 550 5512007-12-26 Laurent Sansonetti <lsansonetti@apple.com> 552 553 * AUTHORS: 554 Added Jonathan. 555 556 * tests/CAryStructTest.bridgesupport, 557 tests/objc_test.m, 558 tests/tc_types.rb: 559 Added tests for the previous fix. 560 5612007-12-26 Jonathan deWerd <jjoonathan@gmail.com> 562 563 * framework/src/objc/libffi.m: 564 Fixed a bug when returning C array (CARY) in struct. 565 5662007-12-19 Laurent Sansonetti <lsansonetti@apple.com> 567 568 * AUTHORS: 569 Added Dave. 570 5712007-12-19 Dave Vasilevsky <djvasi@gmail.com> 572 573 * framework/src/objc/OverrideMixin.m, 574 tests/tc_ovmix.rb, 575 tests/objc_test.m: 576 - Fixed a bug when direct-overriding a method in a subclass of an 577 Objective-C class that implements the method ; 578 - Added test cases. 579 5802007-12-18 Satoshi Nakagawa <artension@gmail.com> 581 582 * sample/GrowlClient/main.rb, 583 sample/GrowlClient/growl.rb: 584 Added a Growl sample. 585 586=== RubyCocoa 0.13.1 === 587 5882007-12-14 Laurent Sansonetti <lsansonetti@apple.com> 589 590 * VERSION: 591 Tagged for 0.13.1. 592 5932007-12-14 Satoshi Nakagawa <artension@gmail.com> 594 595 * framework/src/ruby/osx/objc/oc_attachments.rb, 596 tests/tc_nsstring_compat.rb: 597 - Added method_missing duck typing for NSString again. 598 - NSString#=~ is now forwarded to method_missing for duck typing. 599 - Added tests. 600 6012007-12-06 Laurent Sansonetti <lsansonetti@apple.com> 602 603 * sample/Scripts/pdf2tiff.rb: 604 New sample code, contributed by Ernie Prabhakar. 605 6062007-12-05 Laurent Sansonetti <lsansonetti@apple.com> 607 608 * framework/src/objc/RBClassUtils.m: 609 When creating a new ObjC class for a Ruby class, if a class already 610 exists in ObjC land, print a warning and use it. 611 6122007-12-04 Satoshi Nakagawa <artension@gmail.com> 613 614 * framework/src/ruby/osx/objc/oc_attachments.rb, 615 Added NSSelectionArray#to_a, workaround for a crash on Tiger. 616 6172007-12-02 Satoshi Nakagawa <artension@gmail.com> 618 619 * framework/src/ruby/osx/objc/oc_types_appkit.rb, 620 tests/tc_boxed.rb: 621 - Added #size and #size= to NSRange. 622 - Added tests. 623 6242007-12-02 Satoshi Nakagawa <artension@gmail.com> 625 626 * framework/src/ruby/osx/objc/oc_types_appkit.rb, 627 tests/tc_boxed.rb: 628 - Now NSRange#empty? returns true when not_found?. 629 - Updated tests. 630 6312007-12-02 Satoshi Nakagawa <artension@gmail.com> 632 633 * framework/src/ruby/osx/objc/oc_types.rb, 634 tests/tc_boxed.rb: 635 - Added #x=, #y=, #width= and #height= to NSRect. 636 - Added tests. 637 638=== RubyCocoa 0.13.0 === 639 6402007-11-24 Laurent Sansonetti <lsansonetti@apple.com> 641 642 * package/post-package.rb: 643 Remove .svn directories from the DSTROOT. 644 645 * package/pre-package.rb: 646 Do not insert the postflight script and the modified libruby.dylib in 10.5. 647 648 * metaconfig: 649 Default value for --build-universal in 10.5 is now 'yes'. 650 651 * VERSION: 652 Updated for 0.13.0. 653 6542007-11-22 kimura wataru <kimuraw@i.nifty.jp> 655 656 * package/tmpl/Info.plist: 657 correct CFBundleShortVersionString of .dmg package. 658 6592007-11-22 Satoshi Nakagawa <artension@gmail.com> 660 661 * framework/src/ruby/osx/objc/oc_attachments.rb, 662 tests/tc_nsstring_compat.rb: 663 - Added duck typing methods to NSString: 664 count, delete, delete!, gsub, gsub!, scan, squeeze, squeeze!, sub, sub!, 665 tr, tr!, tr_s, tr_s!. 666 - Added tests. 667 6682007-11-22 Satoshi Nakagawa <artension@gmail.com> 669 670 * framework/src/ruby/osx/objc/oc_attachments.rb, 671 tests/tc_nsstring_compat.rb: 672 - Removed method_missing for the duck typing in NSString, NSArray and NSDictionary. 673 Now NSString doens't respond to: 674 ~, =~, count, delete, delete!, gsub, gsub!, match, scan, squeeze, squeeze!, 675 sub, sub!, tr, tr!, tr_s, tr_s!. 676 NSString doesn't support Regexp parameters in: 677 [], []=, index, rindex, slice, slice!, split. 678 - Moved casecmp to NSString. 679 - Updated tests. 680 6812007-11-22 kimura wataru <kimuraw@i.nifty.jp> 682 683 * pre-install.rb, metaconfig: 684 - accepts multi values of config 'xcode-extras' with comma separated. 685 - change the location of templates for Xcode 3.0/2.5. 686 -> 10.5: /Library/Application Support/Developer/3.0/Xcode/ 687 -> 10.4: /Library/Application Support/Developer/2.5/Xcode/, 688 /Library/Application Support/Apple/Developer Tools 689 6902007-11-20 kimura wataru <kimuraw@i.nifty.jp> 691 692 * sample/CocoaRepl/CocoaRepl.xcodeproj: 693 remove ARCHS setting to avoid build failure on 10.4 ppc. 694 6952007-11-20 Eloy Duran <e.duran@superalloy.nl> 696 697 * framework/src/ruby/osx/objc/ruby_addition.rb: 698 Removed the suggested boolean arg for #to_ns 699 that's displayed in the warning message for #to_nsstring. 700 Because the optional parameter was taken out in r2132. 701 7022007-11-18 Laurent Sansonetti <lsansonetti@apple.com> 703 704 * framework/src/ruby/osx/objc/ruby_addition.rb, 705 framework/src/objc/ocdata_conv.m, 706 tests/tc_to_ns.rb: 707 - Reverted the [2007-11-06] change where mutable objects weren't returned 708 during conversion anymore. This wasn't a good idea after all. 709 - #to_ns doesn't accept a parameter anymore, it always returns mutable 710 objects when possible (from String, Array and Hash). 711 - Updated the tests. 712 7132007-11-14 Satoshi Nakagawa <artension@gmail.com> 714 715 * framework/src/ruby/osx/objc/oc_attachments.rb, 716 tests/tc_nsstring_compat.rb: 717 - Added NSString#split. 718 - Changed NSString#lines to use each_line. 719 - Added tests. 720 7212007-11-13 Laurent Sansonetti <lsansonetti@apple.com> 722 723 * framework/src/ruby/osx/objc/foundation.rb: 724 Load the libSystem.bridgesupport file if it exists. 725 726 * sample/Scripts/watcher.rb, 727 sample/Scripts/libSystem/*.rb, 728 sample/RSSPhotoViewer: 729 Added Leopard-only samples. 730 731 * VERSION: 732 Prepared for 0.13.0. 733 7342007-11-13 Satoshi Nakagawa <artension@gmail.com> 735 736 * framework/src/objc/cls_objcptr.m, 737 tests/tc_objcptr.rb, 738 tests/objc_test.m, 739 tests/ObjcPtrTest.bridgesupport: 740 - Added ObjcPtr#cast_as(encoding) for more generic casting from void*. 741 - Removed ObjcPtr#as_id. 742 - Updated tests. 743 7442007-11-12 Satoshi Nakagawa <artension@gmail.com> 745 746 * framework/src/objc/cls_objcptr.m: 747 Added _set_encoding to fix a bug, encoding was sometimes deallocated. 748 749 * tests/ObjcPtrTest.bridgesupport: 750 Use type_modifier 'n' for void*. 751 7522007-11-11 Chris McGrath <chris@octopod.info> 753 754 * framework/tool/rb_nibtool.rb: 755 Fixed problem with rb_nibtool.rb not detecting existing classes 756 7572007-11-12 Satoshi Nakagawa <artension@gmail.com> 758 759 * framework/src/objc/cls_objcptr.m, 760 tests/tc_objcptr.rb: 761 Removed ObjcPtr#as_cfbooleanref, because #as_id.boolValue is enough. 762 7632007-11-12 Satoshi Nakagawa <artension@gmail.com> 764 765 * framework/src/objc/cls_objcptr.m, 766 tests/tc_objcptr.rb, 767 tests/objc_test.m, 768 tests/ObjcPtrTest.bridgesupport: 769 - Added ObjcPtr#as_cfbooleanref. 770 - Fixed compile warnings. 771 7722007-11-12 Satoshi Nakagawa <artension@gmail.com> 773 774 * framework/src/objc/cls_objcptr.m, 775 tests/tc_objcptr.rb, 776 tests/objc_test.m, 777 tests/ObjcPtrTest.bridgesupport: 778 Added ObjcPtr#as_id to extract an id from void*. 779 7802007-11-10 Laurent Sansonetti <lsansonetti@apple.com> 781 782 * framework/src/objc/mdl_objwrapper.m, 783 framework/src/objc/objc_compat.h, 784 tests/tc_wrapper.rb: 785 Removed #ocm_conforms? for now, because we don't have yet a working 786 implementation for systems equal or below than Tiger. 787 7882007-11-10 kimura wataru <kimuraw@i.nifty.jp> 789 790 * framework/src/ruby/osx/objc/cocoa_macros.rb: 791 - add CoreData.define_wrapper_for_entity(). this feature was a part of 792 CoreData.define_wrapper(). 793 - remove "to_a" for NSArray in CoreData module. 794 7952007-11-07 kimura wataru <kimuraw@i.nifty.jp> 796 797 * tests/tc_rubystring.rb: 798 add test for String#nsenconding, to_nsstring, to_nsmutablestring again. 799 8002007-11-07 kimura wataru <kimuraw@i.nifty.jp> 801 802 * sample/Scripts/darkroom.rb: 803 fix SEGV of darkroom.rb on Leopard. 804 8052007-11-07 Satoshi Nakagawa <artension@gmail.com> 806 807 * tests/tc_to_ns.rb: 808 Enabled test cases for to_ns(false). 809 8102007-11-06 Laurent Sansonetti <lsansonetti@apple.com> 811 812 * framework/src/objc/ocdata_conv.m: 813 Do not create immutable instances of NSArray and NSDictionary when converting Array and 814 Hash to Objective-C. 815 8162007-11-07 Satoshi Nakagawa <artension@gmail.com> 817 818 * tests/tc_to_ns.rb: 819 Added test cases for to_ns. 820 8212007-11-07 Satoshi Nakagawa <artension@gmail.com> 822 823 * framework/src/ruby/osx/objc/ruby_addition.rb: 824 Added String#nsenconding, to_nsstring, to_nsmutablestring again with deprecation warnings 825 due to compatibilities. 826 8272007-11-06 Laurent Sansonetti <lsansonetti@apple.com> 828 829 * framework/src/ruby/osx/objc/ruby_addition.rb, 830 framework/src/objc/mdl_objwrapper.m, 831 tests/tc_wrapper.rb: 832 - #to_ns now returns mutable objects by default. Pass false to get an 833 immutable object. 834 - Introduced #ocm_conforms? to verify that a given class conforms to a given 835 Objective-C protocol. Added tests. 836 837 * framework/src/objc/RBSlaveObject.m: 838 Avoid an infinite loop when creating the slave proxy, which could be caused 839 by an attempt to pass an object to Objective-C in its #initialize method. 840 8412007-11-07 Satoshi Nakagawa <artension@gmail.com> 842 843 * framework/src/objc/mdl_osxobjc.m, 844 framework/src/objc/ocdata_conv.m, 845 tests/tc_nsstring.rb: 846 Fixed a bug, calling to_ns for a Ruby String which has illegal utf-8 sequences caused a bus error. 847 8482007-11-06 kimura wataru <kimuraw@i.nifty.jp> 849 850 * framework/src/ruby/osx/objc/ruby_addition.rb, 851 tests/tc_rubystring.rb: 852 String#nsenconding, to_nsstring, to_nsmutablestring were obsoleted. 853 8542007-11-05 kimura wataru <kimuraw@i.nifty.jp> 855 856 * pre-config.rb, 857 framework/post-config.rb, 858 metaconfig: 859 - new config option --sdkroot. 860 - fix setup error --macosx-deployment-target=10.4 on 10.5. 861 8622007-10-30 kimura wataru <kimuraw@i.nifty.jp> 863 864 * Rakefile: 865 use '--gen-bridge-doc=no' at 'package' task on 10.5. 866 867 * metaconfig: 868 by default, '--gen-bridge-doc=no' on 10.5. 869 8702007-10-28 kimura wataru <kimuraw@i.nifty.jp> 871 872 * Rakefile: 873 add a missed '=' into '--gen-bridge-doc no'. 874 8752007-10-28 Eloy Duran <e.duran@superalloy.nl> 876 877 * Rakefile: 878 Updated Rakefile to use '--gen-bridge-doc no' on 10.5. 879 8802007-10-28 Satoshi Nakagawa <artension@gmail.com> 881 882 * framework/src/ruby/osx/objc/oc_attachments.rb, 883 tests/tc_nsstring_compat.rb: 884 - Added methods to NSString: 885 %, casecmp, center, dump, ljust, lstrip, lstrip!, next, next!, 886 partition, rjust, rstrip, rstrip!, rpartition. slice, slice!, succ, 887 succ!, sum, swapcase, swapcase!, upto. 888 - Added tests. 889 890 * framework/src/ruby/osx/objc/oc_types_appkit.rb, 891 tests/tc_boxed.rb: 892 - Added NSRange#not_found?. 893 - Added tests. 894 8952007-10-28 Eloy Duran <e.duran@superalloy.nl> 896 897 * framework/tool/gen_bridge_doc.rb, 898 framework/tool/gen_bridge_doc/lib/lib/datatype_def.rb, 899 framework/tool/gen_bridge_doc/rdocify_framework.rb: 900 - Added check for 10.4 or 10.5 and use the appropriate path to the reference files. 901 - In 10.5 there are also some files in 'Introduction' instead of 'Reference', 902 this may be a mistake from Apple, but it's supported now nonetheless. 903 - OSX::NSHashTable doesn't respond to #fields and #isOpaque. 904 - gen_bridge_doc is now able to run, however there are still quite some class reference 905 files being skipped because of errors. Let alone all the new supported frameworks. 906 9072007-10-28 Satoshi Nakagawa <artension@gmail.com> 908 909 * framework/src/ruby/osx/objc/oc_attachments.rb: 910 NSDictionary#invert should return NSMutableDictionary. 911 9122007-10-27 Laurent Sansonetti <lsansonetti@apple.com> 913 914 * framework/src/objc/RBRuntime.m: 915 Added the 10.5 part of the threading support code. 916 9172007-10-26 kimura wataru <kimuraw@i.nifty.jp> 918 919 * tests/objc_test.m, 920 tests/tc_retaincount.rb: 921 add tests for ownership from 'new'. 922 9232007-10-25 Laurent Sansonetti <lsansonetti@apple.com> 924 925 * framework/src/ruby/osx/objc/oc_import.rb, 926 tests/tc_subclass.rb: 927 Now allow the send the of 'new' message to any ObjC class that will respond 928 to it. Keep the old behavior (raising an exception) for classes that don't 929 implement new. 930 9312007-10-24 Eloy Duran <e.duran@superalloy.nl> 932 933 * framework/src/ruby/osx/objc/oc_attachments.rb, 934 framework/tool/rb_nibtool.rb: 935 936 - Added pretty print support to NSString, NSArray, NSDictionary. (require 'pp') 937 - Removed useless const.nil? statement in rb_nibtool.rb. 938 9392007-10-24 Laurent Sansonetti <lsansonetti@apple.com> 940 941 * framework/tool/rb_nibtool.rb: 942 - Skip the use of NSObject if a superclass is unknown IF rubynode is used. 943 9442007-10-24 Eloy Duran <e.duran@superalloy.nl> 945 946 * framework/tool/rb_nibtool.rb: 947 - Fixed bug where #each was called on nil if there were 948 either no actions OR outlets in the class. 949 - Fixed bug where a new class from a source file would 950 not show up in the class list in IB because the superclass 951 is unknown to the classes list in IB. 952 If the superclass const is not found it will default to NSObject. 953 9542007-09-12 Laurent Sansonetti <lsansonetti@apple.com> 955 956 * framework/src/ruby/osx/objc/oc_import.rb: 957 Fixed a bug when using test-spec, reported by Eloy Duran. 958 9592007-09-10 Laurent Sansonetti <lsansonetti@apple.com> 960 961 * framework/src/objc/RBObject.m, 962 framework/src/objc/libffi.m, 963 framework/src/objc/mdl_osxobjc.m, 964 framework/src/objc/internal_macros.h, 965 framework/src/objc/OverrideMixin.m: 966 Better facility that dispatches messages from threads to the thread where 967 RubyCocoa was initialized. It was previously assuming that RubyCocoa was 968 run in the main thread, which may not be always true (Ruby could be ran in 969 a different thread). 970 9712007-10-02 Eloy Duran <eloy.de.enige@gmail.com> 972 973 * framework/tool/standaloneify.rb: 974 - Standaloneify now sets the environment variable ENV['RUBYCOCOA_STANDALONEIFYING?'] 975 This is to be able to prevent code from being ran when 976 a application s being standaloneified. 977 - Standaloneify will now skip all the source files at any depth in Resources. 978 9792007-10-01 Laurent Sansonetti <lsansonetti@apple.com> 980 981 * framework/src/objc/OverrideMixin.m, 982 tests/tc_ovmix.rb, 983 tests/objc_test.m: 984 Fixed a bug, when ObjC arguments that were passed from an ObjC closure 985 to Ruby were not retained, as they should. Added a test case. 986 987 * tool/create-symlinks.rb: 988 Fixed for Leopard. 989 990 * framework/src/objc/ocdata_conv.m, 991 tests/tc_subclass.rb: 992 Removed the old __slave_nsobj__ ivar hook. Now all pure-Ruby objects will 993 be wrapped in an autoreleased RBObject. 994 9952007-09-29 Satoshi Nakagawa <artension@gmail.com> 996 997 * tests/tc_nsstring_compat.rb: 998 Added tests for NSString#[]=(str,value). 999 10002007-09-29 Satoshi Nakagawa <artension@gmail.com> 1001 1002 * framework/src/ruby/osx/objc/oc_attachments.rb, 1003 tests/tc_nsstring_compat.rb: 1004 - Added methods to NSString: 1005 each_byte, insert, hex, oct, ord, replace, reverse, reverse!, rindex. 1006 - Changed to_i and to_f of NSString to forward to String. 1007 - Refactoring []= and each of NSString. 1008 - Updated tests. 1009 10102007-09-29 Satoshi Nakagawa <artension@gmail.com> 1011 1012 * framework/src/ruby/osx/objc/oc_attachments.rb, 1013 tests/tc_nsstring_compat.rb: 1014 - Refactoring NSString and NSArray. 1015 - Improved tests. 1016 10172007-09-29 Satoshi Nakagawa <artension@gmail.com> 1018 1019 * framework/src/ruby/osx/objc/oc_attachments.rb: 1020 Refactoring operations around Range. 1021 10222007-09-29 Satoshi Nakagawa <artension@gmail.com> 1023 1024 * framework/src/ruby/osx/objc/oc_attachments.rb: 1025 length should be counted on NSString. 1026 10272007-09-29 Satoshi Nakagawa <artension@gmail.com> 1028 1029 * framework/src/ruby/osx/objc/oc_attachments.rb, 1030 tests/tc_nsstring_compat.rb: 1031 - Added methods to NSString: chr, chomp, chomp!. 1032 - Updated tests. 1033 10342007-09-29 Satoshi Nakagawa <artension@gmail.com> 1035 1036 * framework/src/ruby/osx/objc/oc_attachments.rb, 1037 tests/tc_nsstring_compat.rb, 1038 tests/tc_nsarray.rb: 1039 - Refactoring [], each and include? of NSString. 1040 - Refactoring [] and []= of NSArray. 1041 - Added methods to NSString: []=, index. 1042 - Updated tests. 1043 10442007-09-28 Laurent Sansonetti <lsansonetti@apple.com> 1045 1046 * sample/CocoaRepl/ReplController.rb: 1047 Keep the text view delegate as an ivar, because otherwise it will be 1048 collected by the Ruby GC, because the text view doesn't retain its delegate, 1049 and neither its datasource. 1050 1051 * framework/src/objc/RBObject.h, 1052 framework/src/objc/RBObject.m, 1053 framework/src/objc/mdl_objwrapper.m, 1054 framework/src/objc/OverrideMixin.m, 1055 framework/src/objc/RBSlaveObject.h: 1056 Better OvMix retain cycle: if an OvMix object is created from Ruby, we by 1057 default don't retain its Ruby proxy, and start tracking retain/release 1058 messages, and appropriately re-retain/re-release the Ruby proxy. 1059 10602007-09-29 Satoshi Nakagawa <artension@gmail.com> 1061 1062 * framework/src/ruby/osx/objc/oc_attachments.rb, 1063 tests/tc_nsstring_compat.rb: 1064 - Refactoring NSString#[], NSArray#[] and NSArray#[]=. 1065 - Added methods to NSString: 1066 chop, chop!, each, each_line, intern, lines, to_sym. 1067 - Added NSIndexSet#inspect. 1068 - Updated tests. 1069 10702007-09-28 Satoshi Nakagawa <artension@gmail.com> 1071 1072 * framework/src/ruby/osx/objc/oc_attachments.rb, 1073 tests/tc_nsarray.rb, 1074 tests/tc_nsstring_compat.rb: 1075 - Added error checks for NSString#* and NSString#+. 1076 - Disabled NSString#[regexp]. 1077 - NSString#capitalize should be compatible to String#capitalize. 1078 - NSString#capitalize!, NSString#downcase! and NSString#upcase! should return nil when not modified. 1079 - NSString#[start,len] and NSString#[start..end] should return '' when start == count. 1080 - NSArray#[start,len] and NSArray#[start..end] should return [] when start == count. 1081 - [-3,2] should be treated as (-3+count)..(-3+count+2) in NSArray#[] and NSArray#[]=. 1082 - Updated tests. 1083 10842007-09-27 Laurent Sansonetti <lsansonetti@apple.com> 1085 1086 * AUTHORS: 1087 Fixed a typo in Vincent's last name. 1088 10892007-09-27 Satoshi Nakagawa <artension@gmail.com> 1090 1091 * framework/src/objc/objc_compat.h: 1092 Added #define class_respondsToSelector. 1093 10942007-09-27 Laurent Sansonetti <lsansonetti@apple.com> 1095 1096 * framework/src/ruby/osx/objc/ruby_addition.rb, 1097 framework/src/ruby/osx/objc/oc_wrapper.rb, 1098 framework/src/objc/ocdata_conv.m: 1099 #objc_send will now pass a frozen selector to the core, where underscore 1100 characters won't be transformed as ':'. This is a convenience utility to 1101 call ObjC methods that contain underscores as part of their selector, like 1102 for example [__rbobj__]. 1103 1104 * tests/tc_subclass.rb: 1105 Added a test case for the [copyWithZone:] hook fix described just below. 1106 11072007-09-26 Laurent Sansonetti <lsansonetti@apple.com> 1108 1109 * framework/src/objc/RBObject.m, 1110 framework/src/objc/mdl_osxobjc.m, 1111 framework/src/objc/RBRuntime.m, 1112 framework/src/objc/mdl_objwrapper.m, 1113 framework/src/objc/OverrideMixin.h, 1114 framework/src/objc/ocdata_conv.m, 1115 framework/src/objc/OverrideMixin.m, 1116 tests/tc_subclass.rb: 1117 - Fixed a bug when an object that was being allocated from a Ruby thread 1118 was still in the cache while the thread was killed, resulting in a 1119 corrupted cache. 1120 - Make sure we do not cache CF-based objects. 1121 - Fixed a circular retain cycle from ObjC objects allocated from an 1122 NSObject-based Ruby class, resulting in a leak of both the ObjC object 1123 and its Ruby proxy. 1124 - Hook [copyWithZone:] and reset the slave object so that every ObjC object 1125 has a different slave object. This fixes a crash when releasing a slave 1126 object that could be shared by multiple ObjC objects. 1127 - Added test cases. 1128 11292007-09-21 Laurent Sansonetti <lsansonetti@apple.com> 1130 1131 * AUTHORS: 1132 Added Gustav. 1133 11342007-09-21 Gustav Munkby <grddev@gmail.com> 1135 1136 * framework/src/objc/RBRuntime.m: 1137 Now resetting the context autorelease pools on every restore. 1138 11392007-09-21 Satoshi Nakagawa <artension@gmail.com> 1140 1141 * framework/src/ruby/osx/objc/oc_attachments.rb, 1142 tests/tc_nsstring_compat.rb: 1143 - Added methods to NSString: []. 1144 - Added tests. 1145 11462007-09-21 Satoshi Nakagawa <artension@gmail.com> 1147 1148 * framework/src/ruby/osx/objc/oc_attachments.rb, 1149 tests/tc_nsstring.rb: 1150 - Changed to use intValue in NSString#to_i. 1151 - Changed to use doubleValue in NSString#to_f. 1152 - Updated tests. 1153 11542007-09-21 Satoshi Nakagawa <artension@gmail.com> 1155 1156 * framework/src/ruby/osx/objc/oc_attachments.rb, 1157 tests/tc_nsstring_compat.rb: 1158 - Added methods to NSString: 1159 *, +, <<, concat, capitalize, capitalize!, clear, downcase, downcase!, empty? 1160 end_with?, include?, size, start_with?, to_f, to_i, upcase, upcase!. 1161 - Added tests. 1162 11632007-09-19 Laurent Sansonetti <lsansonetti@apple.com> 1164 1165 * framework/src/ruby/osx/objc/ruby_addition.rb 1166 framework/src/ruby/osx/objc/oc_attachments.rb 1167 framework/src/objc/mdl_osxobjc.m 1168 tests/tc_to_ns.rb: 1169 - Added a #to_ns method to Ruby primitive classes, updated test suite ; 1170 - Added a customized NSDate#inspect method. 1171 11722007-09-18 Laurent Sansonetti <lsansonetti@apple.com> 1173 1174 * framework/src/ruby/osx/objc/cocoa_macros.rb: 1175 Fixed String#to_nsstring for 10.5. 1176 1177 * sample/Stickies/English.lproj/Sticky.nib: 1178 Make sure the resize corner view doesn't overlap with the sticky content 1179 scroll view, as the later could intercept the mouseDrag event before it can 1180 reach the corner view (in 10.5). 1181 1182 * framework/src/objc/OverrideMixin.m: 1183 Create the slave objects at demand, if they do not exist yet. This fixes a 1184 bindings / CoreData problem in 10.5. 1185 11862007-09-14 Satoshi Nakagawa <artension@gmail.com> 1187 1188 * framework/src/ruby/osx/objc/oc_attachments.rb: 1189 Fixed a bug, #method_missing of NSString, NSArray and NSDictionary should return self 1190 when Ruby objects returned self. 1191 11922007-09-09 Eloy Duran <eloy.de.enige@gmail.com> 1193 1194 * framework/src/ruby/osx/objc/oc_attachments.rb, 1195 tests/tc_attachments.rb: 1196 - Added useful inspect methods to NSString, NSNumber, NSArray, NSDictionary & NSCFBoolean. 1197 - Fixed a typo bug in NSNumber#<=>. 1198 11992007-09-08 Satoshi Nakagawa <artension@gmail.com> 1200 1201 * framework/src/ruby/osx/objc/oc_attachments.rb, 1202 tests/tc_types.rb: 1203 Renamed NSNumber#is_float? to float?. 1204 12052007-09-08 Satoshi Nakagawa <artension@gmail.com> 1206 1207 * framework/src/ruby/osx/objc/oc_attachments.rb, 1208 tests/tc_types.rb: 1209 - Added NSNumber#is_float?. 1210 - Updated tests. 1211 12122007-09-08 Satoshi Nakagawa <artension@gmail.com> 1213 1214 * framework/src/ruby/osx/objc/oc_attachments.rb: 1215 NSArray and NSDictionary should include NSEnumerable. 1216 12172007-09-07 Eloy Duran <eloy.de.enige@gmail.com> 1218 1219 * framework/src/ruby/osx/objc/oc_attachments.rb, 1220 framework/tool/gen_bridge_doc/lib/lib/method_def.rb, 1221 framework/tool/gen_bridge_doc/lib/lib/class_def.rb, 1222 framework/tool/gen_bridge_doc/lib/lib/clean_up.rb, 1223 framework/tool/gen_bridge_doc/DOCUMENTATION_VERSION, 1224 framework/tool/gen_bridge_doc.rb: 1225 - Directly added duck-type methods to the NSArray & NSDictionary classes 1226 instead of including them from modules. This is so the methods are picked up by rdoc. 1227 - Now also rdocify: oc_attachments.rb, oc_attachments_appkit.rb, 1228 oc_types.rb, oc_types_appkit.rb & ruby_addition.rb. 1229 - Updated the gen_bridge_doc tool to work with the latest update from 13-08-2007. 1230 - Fixed a bug where </i> tags weren't replaced by '_'. 1231 - Added documentation for the translated bool methods, eg: isRunning -> running?. 1232 12332007-09-07 Laurent Sansonetti <lsansonetti@apple.com> 1234 1235 * framework/src/ruby/osx/objc/oc_wrapper.rb: 1236 Do not translate 'set' methods that get more than one argument. 1237 12382007-09-05 Satoshi Nakagawa <artension@gmail.com> 1239 1240 * framework/src/ruby/osx/objc/oc_types_appkit.rb, 1241 tests/tc_types.rb: 1242 - Changed NSRange#to_range to return a Range with exclude_end. 1243 - Updated a test. 1244 12452007-09-05 Satoshi Nakagawa <artension@gmail.com> 1246 1247 * framework/src/ruby/osx/objc/oc_attachments.rb: 1248 Fixed typo. 1249 12502007-09-03 Satoshi Nakagawa <artension@gmail.com> 1251 1252 * package/tmpl/postflight-universal.rb: 1253 Fixed an error, "Please install again" on reinstalling. 1254 12552007-08-30 Satoshi Nakagawa <artension@gmail.com> 1256 1257 * framework/src/ruby/osx/objc/oc_attachments.rb: 1258 Fixed a bug, contents should not be changed in each. 1259 12602007-08-30 Satoshi Nakagawa <artension@gmail.com> 1261 1262 * framework/src/ruby/osx/objc/oc_attachments.rb, 1263 tests/tc_nsarray.rb: 1264 - Added NSEnumerable#zip. 1265 - Updated tests. 1266 12672007-08-30 Satoshi Nakagawa <artension@gmail.com> 1268 1269 * framework/src/ruby/osx/objc/oc_attachments.rb, 1270 tests/tc_nsarray.rb: 1271 - Added NSEnumerable: 1272 grep, map, collect, select, find_all, partition, reject, 1273 sort, sort_by. 1274 - Updated tests. 1275 12762007-08-30 Satoshi Nakagawa <artension@gmail.com> 1277 1278 * framework/src/ruby/osx/objc/oc_attachments.rb, 1279 tests/tc_nsdictionary.rb, 1280 tests/tc_attachments.rb: 1281 - Added NSDictionaryAttachment methods: 1282 fetch, merge, merge!, shift, update, values_at. 1283 - Updated tests. 1284 12852007-08-30 Satoshi Nakagawa <artension@gmail.com> 1286 1287 * framework/src/ruby/osx/objc/oc_attachments.rb, 1288 tests/tc_nsarray.rb: 1289 - All NSArrayAttachment methods returns NSArray not Array. 1290 - Added type checks for NSArray when checking is_a?(Array). 1291 - Changed to use to_a in *, sort, sort!, transpose of NSAttachment. 1292 Because of performance. 1293 - Improved performance of uniq, uniq! of NSAttachment. 1294 - Fixed bugs, NSArrayAttachment#[]= should return the raw argument. 1295 - Updated tests. 1296 12972007-08-29 Satoshi Nakagawa <artension@gmail.com> 1298 1299 * framework/src/ruby/osx/objc/oc_attachments.rb, 1300 tests/tc_nsdictionary.rb: 1301 - Added dup and clone method to NSString, NSArray, NSDictionary. 1302 - Refactoring NSArrayAttachment#*. 1303 - Fixed a bug, NSArrayAttachment#flatten should return Array. 1304 - Added NSDictionaryAttachment: 1305 each_key, each_pair, each_value, [], default, default=, 1306 default_proc, default_proc=, delete, delete_if, reject!, 1307 empty?, has_key?, include?, key?, member?, has_value?, 1308 invert, key, rehash, reject, replace. 1309 - Updated tests. 1310 1311 * tests/tc_nsarray.rb, 1312 tests/tc_nsstring.rb: 1313 Added copying tests. 1314 13152007-08-29 Satoshi Nakagawa <artension@gmail.com> 1316 1317 * framework/src/ruby/osx/objc/oc_attachments.rb, 1318 tests/tc_nsarray.rb: 1319 - Added NSArrayAttachment methods: &, |, *, +, -. 1320 - Updated tests. 1321 13222007-08-29 Satoshi Nakagawa <artension@gmail.com> 1323 1324 * framework/src/ruby/osx/objc/oc_attachments.rb, 1325 tests/tc_nsarray.rb: 1326 - Added == and <=> method to NSNumber. 1327 - Added NSArrayAttachment methods: 1328 flatten, flatten!, pack, sort, sort!, transpose, uniq, uniq!. 1329 - Updated tests. 1330 13312007-08-29 Satoshi Nakagawa <artension@gmail.com> 1332 1333 * framework/src/ruby/osx/objc/oc_attachments.rb, 1334 tests/tc_nsarray.rb: 1335 - Added NSArrayAttachment methods: indexes, indices. 1336 - Removed workaround for ruby's Array#slice! bug. 1337 - Updated tests. 1338 13392007-08-29 Satoshi Nakagawa <artension@gmail.com> 1340 1341 * framework/src/ruby/osx/objc/oc_attachments.rb: 1342 Tweaked variable names. 1343 13442007-08-29 Satoshi Nakagawa <artension@gmail.com> 1345 1346 * framework/src/ruby/osx/objc/oc_attachments.rb, 1347 tests/tc_nsarray.rb: 1348 - Fixed a bug, cannot pass a block to method_missing of NSString, NSArray, 1349 NSDictionary. 1350 - Moved Array methods in NSArray to module NSAttachment. 1351 - Implemented Array methods: 1352 reverse_each, insert, last, pop, rassoc, replace, reverse, reverse!, 1353 rindex, shift, slice, slice!, to_splat, unshift, values_at. 1354 - Removed methods because of bad performance: 1355 +, *, -, &, |, flatten, flatten!. 1356 - Changed not to use to_ruby in join. 1357 - Improved collect! and map! performance. 1358 - Fixed a bug, compact! should return nil. 1359 - Updated tests. 1360 13612007-08-28 Laurent Sansonetti <lsansonetti@apple.com> 1362 1363 * framework/src/objc/libffi.m, 1364 tests/tc_passbyref.rb: 1365 Fixed a crash when passing a pointer to an ObjC object, then trying to convert 1366 it as a Ruby object after the API call, but crashing because the pointer 1367 wasn't touched by the API. Now preparing passed-by-reference pointers to NULL. 1368 Added a test case. 1369 1370 * framework/tool/rb_nibtool.rb: 1371 Fixed a crash when the provided Ruby script only defines actions but no 1372 outlets, or vice-versa. 1373 13742007-08-28 Satoshi Nakagawa <artension@gmail.com> 1375 1376 * framework/src/ruby/osx/objc/oc_attachments.rb, 1377 tests/tc_nsarray.rb: 1378 - Implemented Array methods on NSArray: 1379 fill, first, flatten, flatten!, include?, index. 1380 - Updated tests. 1381 13822007-08-28 Satoshi Nakagawa <artension@gmail.com> 1383 1384 * framework/src/ruby/osx/objc/oc_attachments.rb: 1385 Fixed typo. 1386 13872007-08-27 Satoshi Nakagawa <artension@gmail.com> 1388 1389 * framework/src/ruby/osx/objc/oc_attachments.rb, 1390 tests/tc_nsarray.rb: 1391 - Refactoring Array methods on NSArray. 1392 - Improved tests. 1393 13942007-08-27 Satoshi Nakagawa <artension@gmail.com> 1395 1396 * framework/src/ruby/osx/objc/oc_attachments.rb, 1397 tests/tc_nsarray.rb: 1398 - Changed NSArray#assoc to ignore [] element inside the array. 1399 - Improved tests. 1400 14012007-08-27 Satoshi Nakagawa <artension@gmail.com> 1402 1403 * framework/src/ruby/osx/objc/oc_attachments.rb, 1404 tests/tc_nsarray.rb: 1405 - Implemented Array methods for NSArray: 1406 [], []=, +, *, -, &, |, <<, assoc, at, clear, collect!, map! 1407 compact, compact!, concat, delete, delete_at, delete_if, reject! 1408 each_index, empty?, fetch, join. 1409 - Added tests for new methods of NSArray. 1410 14112007-08-27 Satoshi Nakagawa <artension@gmail.com> 1412 1413 * framework/src/ruby/osx/objc/oc_types_appkit.rb, 1414 framework/src/ruby/osx/objc/oc_types.rb: 1415 - Replaced ArgumentException to ArgumentError. 1416 - Added a constructor of NSRange: new(Range, count). 1417 14182007-08-26 Satoshi Nakagawa <artension@gmail.com> 1419 1420 * framework/src/ruby/osx/objc/oc_attachments.rb: 1421 Fixed typo. 1422 14232007-08-25 Satoshi Nakagawa <artension@gmail.com> 1424 1425 * framework/src/ruby/osx/objc/oc_attachments.rb, 1426 tests/tc_nsarray.rb, 1427 tests/tc_nsdictionary.rb: 1428 NSArray and NSDictionary behave like Ruby Array and Ruby Hash respectively. 1429 14302007-08-25 Satoshi Nakagawa <artension@gmail.com> 1431 1432 * framework/src/ruby/osx/objc/oc_types.rb, 1433 framework/src/ruby/osx/objc/oc_types_appkit.rb: 1434 Moved NSRange utility to oc_types_appkit.rb. 1435 14362007-08-22 Laurent Sansonetti <lsansonetti@apple.com> 1437 1438 * framework/src/objc/mdl_osxobjc.m: 1439 Improved the ruby obj -> ocid conversion performance. 1440 1441 * framework/src/objc/ocdata_conv.h, 1442 framework/src/objc/ocdata_conv.m: 1443 Improved the ruby obj -> SEL conversion performance. 1444 1445 * framework/src/ruby/osx/objc/oc_types.rb, 1446 tests/tc_boxed.rb: 1447 Added NSRange#max as a convenience implementation of NSMaxRange(). 1448 Added test cases. 1449 14502007-08-21 Fujimoto Hisa <hisa@fobj.com> 1451 1452 * framework/src/objc/RBRuntime.m: 1453 Deallocated a string (duplicated outside) in 1454 framework_paths_unshift(). 1455 14562007-08-20 Laurent Sansonetti <lsansonetti@apple.com> 1457 1458 * framework/src/objc/mdl_osxobjc.m, 1459 framework/src/objc/RBRuntime.m, 1460 framework/src/objc/BridgeSupport.m: 1461 Fixed various memory leaks in the RubyCocoa initialization code, and in the 1462 bridge support parsing code. No memory should now be leaked during 1463 initialization. 1464 14652007-08-18 Satoshi Nakagawa <artension@gmail.com> 1466 1467 * framework/src/ruby/osx/objc/oc_types.rb: 1468 Added inspect method to NSRect, NSPoint, NSSize, NSRange. 1469 14702007-08-17 Satoshi Nakagawa <artension@gmail.com> 1471 1472 * framework/src/ruby/osx/objc/oc_types.rb, 1473 tests/tc_boxed.rb: 1474 - Added utility methods to NSRect, NSPoint, NSRange. 1475 - Added tests for boxed types. 1476 1477=== RubyCocoa 0.12.0 === 1478 14792007-08-11 Laurent Sansonetti <lsansonetti@apple.com> 1480 1481 * package/pre-package.rb, 1482 package/tmpl/postflight-universal.rb: 1483 Updated packaging process to now use the single patched libruby. 1484 14852007-08-10 Laurent Sansonetti <lsansonetti@apple.com> 1486 1487 * framework/src/objc/RBObject.m: 1488 Reverted the 2007-07-30 change and instead raise an exception. 1489 14902007-08-10 Eloy Duran <eloy.de.enige@gmail.com> 1491 1492 * framework/tool/standaloneify.rb: 1493 Fixed a bug that occurs when the app bundle already contains the RubyCocoa.framework. 1494 14952007-08-11 Satoshi Nakagawa <artension@gmail.com> 1496 1497 * framework/src/objc/RBTestProbe.m, 1498 tests/objc_test.m, 1499 tests/tc_cache.rb: 1500 Better separation between core and tests around the oc2rb cache tests. 1501 15022007-08-10 Laurent Sansonetti <lsansonetti@apple.com> 1503 1504 * misc/README_THREADING, 1505 misc/libruby.1.dylib-tiger.tar.gz: 1506 Added a single patched binary version of libruby for both Tiger PPC and 1507 Intel. Updated instructions. 1508 1509 * misc/libruby.1.dylib-tiger-ppc.tar.gz, 1510 misc/libruby.1.dylib-tiger-i386.tar.gz: 1511 Removed. 1512 15132007-08-10 Laurent Sansonetti <lsansonetti@apple.com> 1514 1515 * framework/src/objc/mdl_objwrapper.m: 1516 Also auto-convert predicate return value to bool for signed char type. 1517 15182007-08-10 Satoshi Nakagawa <artension@gmail.com> 1519 1520 * framework/src/objc/RBObject.m, 1521 framework/src/objc/RBTestProbe.m, 1522 tests/tc_cache.rb: 1523 Moved the test probe class to a new file. 1524 15252007-08-10 Satoshi Nakagawa <artension@gmail.com> 1526 1527 * framework/src/objc/RBObject.m, 1528 tests/tc_cache.rb: 1529 Added test cases for the oc2rb cache. 1530 15312007-08-06 Satoshi Nakagawa <artension@gmail.com> 1532 1533 * framework/src/objc/ocdata_conv.m: 1534 - Removed checking for class cluster types. 1535 - Reintroduced a check for callback cases to avoid registering to the oc2rb cache. 1536 15372007-08-06 Satoshi Nakagawa <artension@gmail.com> 1538 1539 * framework/src/objc/ocdata_conv.m: 1540 Stopped registering objects in class clusters to the oc2rb cache. 1541 15422007-07-31 Laurent Sansonetti <lsansonetti@apple.com> 1543 1544 * framework/src/ruby/osx/objc/oc_wrapper.rb, 1545 framework/src/objc/mdl_objwrapper.m, 1546 tests/tc_wrapper.rb: 1547 Implemented foo? -> isFoo method name conversion. Also implemented the 1548 auto registering mechanism for methods that end with '?'. 1549 15502007-07-31 Fujimoto Hisa <hisa@fobj.com> 1551 1552 * framework/src/objc/RBObject.m: 1553 Fixed link error with ruby 1.8.2. 1554 15552007-07-30 Laurent Sansonetti <lsansonetti@apple.com> 1556 1557 * framework/src/objc/RBObject.m: 1558 Fixed a bug when translating ObjC selectors into Ruby method messages, to 1559 also look in the receiver's private methods. 1560 15612007-07-27 Laurent Sansonetti <lsansonetti@apple.com> 1562 1563 * framework/src/ruby/osx/objc/oc_import.rb, 1564 framework/src/objc/BridgeSupport.m: 1565 Now automatically registering informal protocol methods. 1566 15672007-07-27 Fujimoto Hisa <hisa@fobj.com> 1568 1569 * template/ProjectBuilder/File/Ruby application init.rb: 1570 Added a file template of a ruby program. It should be loaded by 1571 RBApplicationInit. 1572 1573 * template/ProjectBuilder/File/Ruby NSView subclass.rb, 1574 template/ProjectBuilder/File/Ruby NSDocument subclass.rb: 1575 Modified method definition by appropriate syntax, because it was 1576 written by obsoleted syntax. 1577 15782007-07-24 Eloy Duran <eloy.de.enige@gmail.com> 1579 1580 * sample/MailDemo/MailDemoActiveRecordBindings/Mailbox.rb: 1581 Fixed a bug where emails belonging to a mailbox 1582 were not deleted when the mailbox was deleted. 1583 15842007-07-24 Eloy Duran <eloy.de.enige@gmail.com> 1585 1586 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 1587 framework/tool/gen_bridge_doc/lib/lib/method_def.rb, 1588 framework/tool/gen_bridge_doc/lib/lib/class_def.rb: 1589 Added the docs for the ruby-like setters that are supported by the bridge. 1590 So for instance NSView will have documentation for #setNeedsDisplay() and #needsDisplay=() 1591 15922007-07-24 Eloy Duran <eloy.de.enige@gmail.com> 1593 1594 * KNOWN_TO_BE_EMPTY, 1595 DOCUMENTATION_VERSION: 1596 Tested BridgeDoc against the latest reference update 1597 from 18-07-2007 and added a few info documents about this. 1598 15992007-07-23 Laurent Sansonetti <lsansonetti@apple.com> 1600 1601 * doc/ja/installation.txt: 1602 Fixed typo. 1603 16042007-07-23 Fujimoto Hisa <hisa@fobj.com> 1605 1606 * doc/ja/*.txt, doc/html/ja/*.html, doc/Rakefile: 1607 Added some Japanese documents as BlueCloth format. rewrited old 1608 documents (thanks to Nakagawa-san) 1609 1610 * doc/*.html, doc/*.jpg, doc/*.css: 1611 Remvoed old documents. 1612 1613 * sample/SimpleCocoaRepl: 1614 Removed. 1615 16162007-07-20 Laurent Sansonetti <lsansonetti@apple.com> 1617 1618 * framework/src/objc/RBRuntime.m, 1619 tests/tc_thread.rb: 1620 More robust threading support. Better stress case, with Thread objects 1621 collection. 1622 16232007-07-20 Satoshi Nakagawa <artension@gmail.com> 1624 1625 * Rakefile: 1626 Removed --prefix=/usr on the build task. 1627 16282007-07-20 Fujimoto Hisa <hisa@fobj.com> 1629 1630 * pre-config.rb, tests/Makefile.in, tests/Makefile: 1631 Fixed tests/objc_test.bundle can't build on ppc mac. 1632 16332007-07-19 Laurent Sansonetti <lsansonetti@apple.com> 1634 1635 * VERSION: 1636 Bumping to 0.12.0. 1637 1638 * package/pre-package.rb, 1639 package/tmpl/postflight-universal.rb: 1640 Now bundling the libruby binaries with the binary package, and installing 1641 then during postflight. 1642 1643 * misc/README_THREADING, 1644 misc/libruby.1.dylib.txt, 1645 misc/ruby_thread_hooks.txt: 1646 Removed old .txt files and added a better file, README_THREADING. 1647 1648 * misc/libruby.1.dylib-tiger-ppc.tar.gz, 1649 misc/libruby.1.dylib-tiger-i386.tar.gz, 1650 misc/libruby.1.dylib.txt, 1651 misc/ruby_thread_hooks.txt: 1652 Provide already-patched libruby binaries for Tiger Intel and PPC. 1653 1654 * framework/src/ruby/osx/objc/ruby_addition.rb: 1655 When creating a Thread without the threading support enabled, do not raise 1656 an exception but print a warning instead. 1657 16582007-07-19 Fujimoto Hisa <hisa@fobj.com> 1659 1660 * sample/CocoaRepl/cocoa_sweets.rb, 1661 sample/CocoaRepl/main.rb, 1662 sample/CocoaRepl/CocoaRepl.xcodeproj/project.pbxproj, 1663 sample/CocoaRepl/ReplController.rb 1664 sample/CocoaRepl/English.lproj/MainMenu.nib: 1665 Added cocoa_sweets.rb, it has several useful syntax sugars for 1666 repl especially instantiation. Handled NSDefaults in source code 1667 rather than nib file, because Tiger's IB support less key-value 1668 coding. 1669 1670 * CocoaRepl/ReplController.rb, 1671 CocoaRepl/RubyProgramTextView.rb, 1672 CocoaRepl/English.lproj/MainMenu.nib: 1673 Saved window size(kvc) and alpha value(source) into the 1674 userdefaults. Decorated when reloading a program. (thanks to 1675 Laurent for the patch) 1676 16772007-07-18 Fujimoto Hisa <hisa@fobj.com> 1678 1679 * sample/CocoaRepl/main.rb, 1680 sample/CocoaRepl/evaluator.rb, 1681 sample/CocoaRepl/ReplController.rb: 1682 Handled evaluated notification in ReplController. 1683 1684 * sample/CocoaRepl/evaluator.rb, sample/CocoaRepl/ReplController.rb: 1685 Checked evaluator should be singleton. 1686 1687 * sample/CocoaRepl/CocoaRepl.xcodeproj/project.pbxproj, 1688 sample/CocoaRepl/main.m, 1689 sample/CocoaRepl/main.rb, 1690 sample/CocoaRepl/init_CocoaRepl.rb, 1691 sample/CocoaRepl/observable.rb, 1692 sample/CocoaRepl/evaluator.rb, 1693 sample/CocoaRepl/io.rb, 1694 sample/CocoaRepl/ReplController.rb, 1695 sample/CocoaRepl/English.lproj/MainMenu.nib: 1696 Moved init_CocoaRepl.rb to main.rb. Implemented history suppotred 1697 evaluator class. Rewrited better STDOUT/STDERR IO handling (STDIN 1698 is not yet). 1699 1700 * AUTHORS: 1701 Added Satoshi Nakagawa. 1702 17032007-07-18 Laurent Sansonetti <lsansonetti@apple.com> 1704 1705 * sample/CocoaRepl/Info.plist: 1706 Added missing CFBundleShortVersionString tag. 1707 1708 * sample/SimpleCocoaRepl/Info.plist: 1709 Fixed duplicated CFBundleIdentifier tag. 1710 1711 * sample/CocoaRepl/CocoaRepl.xcodeproj/project.pbxproj: 1712 Use the current SDK. 1713 1714 * AUTHORS: 1715 Mention Jonathan's threading patches. 1716 1717 * sample/RubyConsole: 1718 New sample code, based on Tim Burks' console.rb. 1719 1720 * misc/libffi/src/powerpc/ppc_closure.S, 1721 misc/libffi/src/powerpc/ffi_darwin.c: 1722 Fixed a PPC bug where floating types were not properly handled by variadic 1723 arguments. 1724 1725 * tests/tc_printf_format.rb: 1726 Added a new test. 1727 17282007-07-17 Fujimoto Hisa <hisa@fobj.com> 1729 1730 * sample/CocoaRepl, sample/SimpleCocoaRepl: 1731 Replaced new CocoaRepl. It shows one of desktop gui repl like the 1732 emacs scratch buffer style. Renamed old one as SimpleCocoaRepl. It 1733 is a more appropriate programming example (it's just simple) than 1734 new one in fact. 1735 17362007-07-17 Laurent Sansonetti <lsansonetti@apple.com> 1737 1738 * framework/src/objc/mdl_objwrapper.m: 1739 Do not auto-register predicate methods. 1740 1741 * framework/tool/rb_nibtool.rb: 1742 - Reverted the change from 2007-06-30 ; 1743 - Introduced a new flag, "-s", which outputs an altered property list, 1744 using arrays for both actions and outlets, instead of dictionaries. 1745 17462007-07-15 Laurent Sansonetti <lsansonetti@apple.com> 1747 1748 * pre-setup.rb: 1749 Do not build the local libffi copy if /usr/lib/libffi.dylib exists. 1750 17512007-07-14 Laurent Sansonetti <lsansonetti@apple.com> 1752 1753 * template/ProjectBuilder/Application/*: 1754 - Removed the .pch files in CoreData projects ; 1755 - Modified the main.m files to `#import <Cocoa/Cocoa.h>'. 1756 17572007-07-13 Laurent Sansonetti <lsansonetti@apple.com> 1758 1759 * framework/src/objc/RBRuntime.m, 1760 tests/tc_thread.rb: 1761 Even More solid threading support. Added new test. 1762 1763 * framework/src/objc/RBRuntime.m, 1764 tests/tc_thread.rb: 1765 More solid threading support. Added stress test. 1766 1767 * pre-config.rb: 1768 - When calculating install-name from the 'frameworks' install.rb config 1769 variable, strip the DSTROOT if exists ; 1770 - When checking if libffi is already installed in the system, check for 1771 libffi.dylib as well as libffi.a. 1772 17732007-07-10 Satoshi Nakagawa <artension@gmail.com> 1774 1775 * framework/src/ruby/osx/objc/oc_import.rb: 1776 Fixed a bug, ':' completion doesn't work when the return value is a struct 1777 which has '@:' sequence. 1778 17792007-07-09 Satoshi Nakagawa <artension@gmail.com> 1780 1781 * install.rb: 1782 Changed an option name, --test-arch to --use-rosetta. 1783 1784 * tests/morph.c, 1785 tests/Makefile: 1786 Removed morph.c. Because /usr/libexec/oah/translate is enough for using Rosetta. 1787 17882007-07-08 Satoshi Nakagawa <artension@gmail.com> 1789 1790 * install.rb: 1791 - Added --test-arch option for mainly testing PPC on Intel using Rosetta. 1792 - Changed the clean task to execute `make clean' in ./tests. 1793 1794 * tests/morph.c, 1795 tests/Makefile: 1796 Added morph command, which executes a command on a different architecture 1797 using Rosetta. Currently it supports only ppc and i386. 1798 1799 * tests/tc_bool.rb: 1800 Added make and require for objc_test. 1801 18022007-07-08 Satoshi Nakagawa <artension@gmail.com> 1803 1804 * framework/src/ruby/osx/objc/oc_import.rb: 1805 Fixed a bug, ':' completion is missing when the last parameter is a selector. 1806 18072007-07-05 Laurent Sansonetti <lsansonetti@apple.com> 1808 1809 * framework/src/objc/RBRuntime.m: 1810 Better Ruby threading support. 1811 1812 * tests/tc_thread.rb: 1813 When starting test_exceptions, assert that the Ruby threading support is 1814 enabled. 1815 18162007-07-04 Laurent Sansonetti <lsansonetti@apple.com> 1817 1818 * framework/src/objc/RBRuntime.m: 1819 More work on the Ruby threading support. Systems after Tiger are still not 1820 officially supported (code is not in the repository). 1821 18222007-07-04 Satoshi Nakagawa <artension@gmail.com> 1823 1824 * framework/src/objc/RBObject.m, 1825 framework/src/objc/ocdata_conv.h, 1826 framework/src/objc/ocdata_conv.m: 1827 - Refactoring the BOOL return value conversion fixes. 1828 - Added ocdata_alloc_size() for small integer types on PPC. 1829 18302007-07-03 kimura wataru <kimuraw@i.nifty.jp> 1831 1832 * framework/tool/gen_bridge_doc.rb: 1833 fix too deep path of documentations RubyCocoa/Frameworks/files. 1834 18352007-07-03 Satoshi Nakagawa <artension@gmail.com> 1836 1837 * framework/src/objc/RBObject.m: 1838 Fixed the BOOL return value conversion problems on PPC. 1839 * tests/tc_bool.rb: 1840 Removed tests for char return values under bridgesupport. 1841 18422007-07-02 Laurent Sansonetti <lsansonetti@apple.com> 1843 1844 * misc/ruby_thread_hooks.diff, 1845 misc/ruby_thread_hooks.txt: 1846 Added the patch and some details that needs to be applied to the Ruby 1847 runtime in order to use Ruby Threads with RubyCocoa. 1848 1849 * framework/src/ruby/osx/objc/ruby_addition.rb, 1850 framework/src/objc/RBRuntime.h, 1851 framework/src/objc/RBRuntime.m, 1852 tests/tc_thread.rb, 1853 tests/objc_test.m, 1854 tests/Makefile: 1855 Merged Jonathan's support to use Ruby Threads with RubyCocoa. This is for 1856 Tiger only. Made a few modifications, work is still in progress. 1857 1858 * misc/ruby-osx10_1.patch, 1859 misc/ruby-1.6.7-osx10.2.patch: 1860 Removed (these patches are for Ruby 1.6.x). 1861 1862 * tool/create-symlinks.rb: 1863 Added a convenience tool that replaces an existing RubyCocoa installation 1864 with symbolic links to the current build of RubyCocoa. 1865 18662007-07-02 Satoshi Nakagawa <artension@gmail.com> 1867 1868 * tests/objc_test.m, 1869 tests/tc_bool.rb, 1870 tests/ObjcTest.bridgesupport: 1871 - Reformed type conversion tests. 1872 - Added test cases for float and double values. 1873 18742007-07-02 Satoshi Nakagawa <artension@gmail.com> 1875 1876 * tests/objc_test.m, 1877 tests/tc_bool.rb, 1878 tests/ObjcTest.bridgesupport: 1879 - Added BOOL type conversion tests for both objc to ruby and ruby to objc 1880 conversions. 1881 18822007-07-01 Satoshi Nakagawa <artension@gmail.com> 1883 1884 * Rakefile: 1885 - Added package_source task. 1886 - Added '--prefix=/usr' parameter to build and package tasks. 1887 18882007-06-30 Laurent Sansonetti <lsansonetti@apple.com> 1889 1890 * framework/tool/rb_nibtool.rb: 1891 When writing a plist for a given Ruby source code, make sure the outlets and 1892 actions are ordered in the same order they have been defined in the given 1893 code. 1894 18952007-06-29 Laurent Sansonetti <lsansonetti@apple.com> 1896 1897 * framework/src/objc/RBObject.m, 1898 framework/src/objc/ocdata_conv.m, 1899 tests/tc_bool.rb: 1900 - Fixed a PPC regression when converting small integers (less than 4 bytes) 1901 from a metadata-driven Ruby method (ex: an informal protocol method). 1902 - Better generic Ruby -> ObjC boolean conversion, now trying to respect the 1903 Ruby semantics. Ruby's true and false are converted as true and false, 1904 all integers (including 0) are converted as true and nil as false ; 1905 - Added a test case (original code written by Kimura Wataru). 1906 19072007-06-28 Naoki Hiroshima <n+rubycocoa@h7a.org> 1908 1909 * framework/src/objc/cls_objcptr.m, 1910 tests/tc_objcptr.rb: 1911 - ObjcPtr.new initialize ObjcPtr.encoding as "uchar" by default and clear 1912 allocated memory ; 1913 - ObjcPtr#allocate_as_int{8,16,32} set ObjcPtr.encoding" as "char", "short", 1914 and "int", respectively. 1915 19162007-06-28 Satoshi Nakagawa <snakagawa@infoteria.co.jp> 1917 1918 * framework/src/ruby/osx/objc/oc_import.rb: 1919 add acceptable types of OCTYPES: BOOL, longlong, ulonglong and cstr. 1920 19212007-06-28 Laurent Sansonetti <lsansonetti@apple.com> 1922 1923 * framework/tool/rb_nibtool.rb: 1924 - Write the property list as XML ; 1925 - Support passing '-' as the source code path, which will read on stdin. 1926 1927 * sample/ViewModelDemo/Controller.rb: 1928 Fixed the IB actions. 1929 1930 * AUTHORS: 1931 Added Naoki-san. 1932 1933 * framework/tool/rb_nibtool.rb: 1934 If the RubyNode library is present in the system, uses it to collect the 1935 necessary IB metadata, by parsing the given Ruby source code file. If not, 1936 uses the old behavior that requires the given Ruby source code file and 1937 collect the metadata via code evaluation. 1938 1939 * framework/src/objc/BridgeSupport.m: 1940 Work around possible warnings when defining module functions, in case a 1941 function has already been defined. 1942 1943 * framework/src/objc/libffi.m, 1944 framework/src/objc/ocdata_conv.m: 1945 Fixed warnings and removed dead code. 1946 1947 * sample/Fortune.wdgt/SimplePlugin/SimplePlugin.xcodeproj/project.pbxproj, 1948 sample/RubyAnywhere/RubyAnywhere.xcodeproj/project.pbxproj, 1949 sample/VPRubyPluginEnabler/RubyPluginEnabler.xcodeproj/project.pbxproj, 1950 sample/CocoaRepl/CocoaRepl.xcodeproj/project.pbxproj: 1951 Removed references to the 10.4u SDK and use instead the current SDK. 1952 1953 * pre-config.rb: 1954 Fixed --build-universal for systems higher than 10.4. 1955 1956 * framework/src/objc/cls_objcptr.m: 1957 Improved ObjcPtr#regard_as to accept an ObjC runtime encoding string. 1958 19592007-06-21 kimura wataru <kimuraw@i.nifty.jp> 1960 1961 * package/tmpl/Info.plist: 1962 fix version cheking: cannot install from .pkg into Mac OS X 10.4.10. 1963 (10.4 <= current version <= 10.4.9) -> (10.4 <= current version < 10.5) 1964 19652007-06-21 Fujimoto Hisa <hisa@fobj.com> 1966 1967 * install.rb: 1968 added test_rubycocoa_command to test phase. 1969 1970 * tests/tc_rubycocoacommand.rb: 1971 removed the file, because install.rb invoke the test for rubycocoa 1972 command. 1973 1974 * template/ProjectBuilder/Application/Cocoa-Ruby Application/Rakefile: 1975 rename VERSION with APPVERSION, because VERSION is already defined 1976 by ruby. 1977 19782007-06-19 SATOH Hiroh <cho45@lowreal.net> 1979 1980 * framework/tool/rubycocoa/test/test_rubycocoa.rb, 1981 framework/tool/rubycocoa/lib/osx/xcode.rb, 1982 framework/tool/rubycocoa/bin/rubycocoa: 1983 Modified to call to_s in xcode.rb for plist. 1984 Modified "add" subcommand to ignore directory (This considers only .rb 1985 file now) 1986 Added test for making new application. 1987 1988 * framework/tool/rubycocoa/test/test_rubycocoa.rb, 1989 framework/tool/rubycocoa/bin/rubycocoa: 1990 Rewrited the tests to call RubyCocoaCommand directly (for better messages 1991 when tests are failed) 1992 Modifiled rubycocoa to use here doc instead of DATA (for using 1993 RubyCocoaCommand as library) 1994 19952007-06-19 Fujimoto Hisa <hisa@fobj.com> 1996 1997 * framework/src/objc/ocdata_conv.m: 1998 used RTEST for rbobj_to_bool. emphasized that the convert_cary is 1999 mutable about the octype_str. 2000 20012007-06-17 Laurent Sansonetti <lsansonetti@apple.com> 2002 2003 * framework/src/objc/RBRuntime.m: 2004 Make sure we install the NSObject dealloc hook + rewrote the hook code to 2005 use the new objc2 APIs. 2006 20072007-06-17 Laurent Sansonetti <lsansonetti@apple.com> 2008 2009 * framework/src/objc/BridgeSupport.m, 2010 tests/tc_types.rb: 2011 Define OSX::Boxed#clone as #dup. 2012 2013 * AUTHORS: 2014 Added Satoshi-san. 2015 20162007-06-17 Satoshi Nakagawa <snakagawa@infoteria.co.jp> 2017 2018 * framework/src/objc/RBRuntime.m, 2019 framework/src/objc/ocdata_conv.m: 2020 Now cleaning the oc2rb cache upon the NSObject dealloc. 2021 20222007-06-14 SATOH Hiroh <cho45@lowreal.net> 2023 2024 * framework/tool/rubycocoa/bin/rubycocoa, 2025 framework/tool/rubycocoa/test/test_rubycocoa.rb, 2026 template/ProjectBuilder/Application/Cocoa-Ruby Application/CocoaApp.xcodeproj/TemplateInfo.plist: 2027 Fixed "new" subcommand to use TemplateInfo.plist. 2028 Added "Rakefile" to "FilesToMacroExpand" in TemplateInfo.plist. 2029 20302007-06-12 SATOH Hiroh <cho45@lowreal.net> 2031 2032 * framework/tool/rubycocoa/bin/rubycocoa: 2033 Fixed "update" subcommand which didn't consider superclass. 2034 20352007-06-11 SATOH Hiroh <cho45@lowreal.net> 2036 2037 * framework/tool/rubycocoa/bin/rubycocoa, 2038 framework/tool/rubycocoa/test/test_rubycocoa.rb, 2039 framework/tool/rubycocoa/lib/osx/standaloneify.rb, 2040 template/ProjectBuilder/Application/Cocoa-Ruby Application/Rakefile: 2041 Implemented "standaloneify" subcommand which just runs standaloneify.rb. 2042 Added standaloneify.rb to lib/osx/standaloneify.rb which is copy of 2043 tool/standaloneify.rb. 2044 Updated Rakefile to add "package" task. 2045 2046 * framework/tool/rubycocoa/bin/rubycocoa, 2047 framework/tool/rubycocoa/test/test_rubycocoa.rb: 2048 Implemented "create" subcommand which create ruby class skeltons. 2049 2050 * framework/tool/rubycocoa/bin/rubycocoa, 2051 framework/tool/rubycocoa/test/test_rubycocoa.rb, 2052 framework/tool/rubycocoa/lib/osx/xcode.rb, 2053 template/ProjectBuilder/Application/Cocoa-Ruby Application/Rakefile: 2054 Check duplicated file in Xcode project. 2055 Fixed Rakefile task "package" filename. 2056 2057 * framework/tool/rubycocoa/test/test_rubycocoa.rb, 2058 template/ProjectBuilder/Application/Cocoa-Ruby Application/Rakefile: 2059 Added "create", "add" and "update" task to Rakefile. Thease are wrapper 2060 for the 'rubycocoa' command. 2061 20622007-06-10 Laurent Sansonetti <lsansonetti@apple.com> 2063 2064 * framework/src/objc/mdl_objwrapper.m: 2065 Enable OCM_AUTO_REGISTER. 2066 20672007-06-10 SATOH Hiroh <cho45@lowreal.net> 2068 2069 * framework/tool/rubycocoa/bin/rubycocoa: 2070 Show helps when command is called with a subcommand only. 2071 20722007-06-10 Eloy Duran <e.duran@superalloy.nl> 2073 2074 * framework/tool/rubycocoa/bin/rubycocoa: 2075 Fixed the shebang which was hardcoded to /usr/bin/ruby. 2076 20772007-06-10 SATOH Hiroh <cho45@lowreal.net> 2078 2079 * framework/tool/rubycocoa/bin/rubycocoa: 2080 Applied patch in [Rubycocoa-devel 969]. 2081 Fixed many text errors. 2082 Fixed apply_template bug in UTF-16 template file (InfoPlist.strings) 2083 Implemented "add" subcommand which add files to Xcode project. 2084 2085 * template/ProjectBuilder/Application/Cocoa-Ruby Application/Rakefile: 2086 Added Rakefile to build Xcode project on CUI. 2087 From [Rubycocoa-devel 906], [Rubycocoa-devel 907]. 2088 20892007-06-09 Eloy Duran <e.duran@superalloy.nl> 2090 2091 * sample/MailDemo/MailDemoActiveRecordBindings/MailboxProxy.rb, 2092 sample/MailDemo/MailDemoActiveRecordBindings/EmailProxy.rb, 2093 sample/MailDemo/MailDemoActiveRecordBindings/MailDemoActiveRecordBindings.xcodeproj/project.pbxproj, 2094 framework/src/ruby/osx/objc/active_record.rb, 2095 tests/tc_active_record.rb: 2096 Added the class method ActiveRecordProxy.on_get() which can be used to define filters to be applied 2097 when a specified key is requested in rbValueForKey. So the filter will be run before returning the data. 2098 Changed EmailProxy.rb to use the new on_get class method. 2099 Removed the MailboxProxy.rb file, because the proxy class will automatically be defined whenever ActiveRecord::Base is inherited. 2100 21012007-06-09 SATOH Hiroh <cho45@lowreal.net> 2102 2103 * framework/tool/rubycocoa: 2104 Added 'rubycocoa' command (First checkin). This is a tool for creating new application 2105 skeltons. 2106 21072007-06-08 Laurent Sansonetti <lsansonetti@apple.com> 2108 2109 * framework/src/ruby/osx/objc/oc_exception.rb, 2110 framework/src/ruby/osx/objc/oc_import.rb, 2111 framework/src/ruby/osx/objc/oc_wrapper.rb, 2112 framework/src/objc/mdl_osxobjc.h, 2113 framework/src/objc/mdl_osxobjc.m, 2114 framework/src/objc/mdl_objwrapper.m, 2115 tests/tc_subclass.rb, 2116 tests/tc_wrapper.rb: 2117 When messaging Objective-C from Ruby, now auto-defining the Ruby methods 2118 by generating Libffi closures, so that #method_missing will only be called 2119 once. This renders the messaging around 3 times faster. 2120 21212007-06-06 Laurent Sansonetti <lsansonetti@apple.com> 2122 2123 * framework/src/ruby/osx/objc/foundation.rb: 2124 Updated the header to mention the new licensing message. 2125 21262007-06-05 Laurent Sansonetti <lsansonetti@apple.com> 2127 2128 * framework/src/ruby/osx/objc/oc_import.rb, 2129 framework/src/objc/mdl_objwrapper.m, 2130 tests/tc_wrapper.rb: 2131 Fixed some bugs when importing NSProxy-based classes. 2132 2133 * framework/src/objc/BridgeSupport.m, 2134 tests/tc_types.rb: 2135 Define #dup for C structures boxed types, that returns a new copy of the 2136 instance. Added test case. 2137 21382007-06-05 Eloy Duran <e.duran@superalloy.nl> 2139 2140 * framework/src/ruby/osx/objc/active_record.rb, 2141 tests/tc_active_record.rb: 2142 Proxy classes are now automagically defined when a ActiveRecord::Base subclass is defined. 2143 ActiveRecord::Base#to_activerecord_proxy now caches the proxy class name. 2144 21452007-06-04 Laurent Sansonetti <lsansonetti@apple.com> 2146 2147 * framework/src/objc/ocdata_conv.m, 2148 framework/src/objc/BridgeSupport.m: 2149 Fixed NULL to C strings and opaque types conversion. 2150 2151=== RubyCocoa 0.11.1 === 2152 21532007-06-03 Eloy Duran <e.duran@superalloy.nl> 2154 2155 * framework/tool/gen_bridge_doc/lib/lib/hpricot_proxy.rb: 2156 Added Hpricot 0.5.x compatibility to the BridgeDoc tool. 2157 Patch by Justin Palmer. 2158 21592007-06-03 Laurent Sansonetti <lsansonetti@apple.com> 2160 2161 * framework/src/objc/ocdata_conv.m: 2162 Fixed a regression introduced by last bug fix. 2163 21642007-06-03 Eloy Duran <e.duran@superalloy.nl> 2165 2166 * framework/src/ruby/osx/objc/active_record.rb: 2167 Adds documentation for ActiveRecordConnector.connect_to_sqlite_in_application_support(). 2168 Fixed a bug in rbSetValue_forKey where to_ruby could be called on a nil object. 2169 Patch supplied by Justin Palmer. 2170 21712007-06-02 Laurent Sansonetti <lsansonetti@apple.com> 2172 2173 * sample/Scripts/speak2.rb: 2174 Print error if SpeechSynthesis is not supported (no bridge support file). 2175 21762007-06-01 kimura wataru <kimuraw@i.nifty.jp> 2177 2178 * sample/RubyAnywhere/English.lproj/Rcode.nib/: 2179 code area (top NSTextView) accepts plain text, not styled text. 2180 2181 * sample/Scripts/sndplay3.rb: 2182 delete sndplay3.rb, this script is not different from sndplay2.rb. 2183 21842007-06-01 Laurent Sansonetti <lsansonetti@apple.com> 2185 2186 * framework/src/objc/ocdata_conv.m, 2187 framework/src/objc/OverrideMixin.m, 2188 framework/src/objc/BridgeSupport.h, 2189 framework/src/objc/BridgeSupport.m, 2190 tests/tc_passbyref.rb: 2191 - Fixed bugs when passing existing boxed structures as output arguments, 2192 now we make sure the cached ivars are cleaned ; 2193 - Added setter support for C_ARY types. 2194 - Added test cases. 2195 2196 * framework/src/objc/libffi.m: 2197 Fixed bugs when retrieving out arguments by omitting them. 2198 2199 * framework/src/objc/BridgeSupport.m: 2200 Introduced OSX::Boxed.size, a convenience method to get the size of the 2201 boxed C type. 2202 2203 * tests/tc_passbyref.rb, 2204 tests/tc_wrapper.rb: 2205 Moved the test_get_c_ari_and_pstring test from tc_wrapper to tc_passbyref, 2206 improved the existing tests. 2207 22082007-05-31 Eloy Duran <e.duran@superalloy.nl> 2209 2210 * framework/src/ruby/osx/objc/active_record.rb, 2211 tests/tc_active_record.rb: 2212 Fixed the ActiveRecordProxy#init method, it now takes no arguments. 2213 Added ActiveRecordProxy#initWithRecord which returns a proxy for an existing record. 2214 Added ActiveRecordProxy#initWithAttributes which creates a record with the attributes and returns a proxy. 2215 22162007-05-31 Eloy Duran <e.duran@superalloy.nl> 2217 2218 * framework/src/ruby/osx/objc/oc_import.rb: 2219 Added a more descriptive message for the arity check. 2220 22212007-05-31 Laurent Sansonetti <lsansonetti@apple.com> 2222 2223 * framework/src/objc/mdl_osxobjc.m: 2224 Better logging. 2225 2226 * framework/src/objc/RBClassUtils.h, 2227 framework/src/objc/RBClassUtils.m, 2228 framework/src/objc/OverrideMixin.m: 2229 Do not enable direct-override into ruby-derived classes. 2230 2231 * framework/src/ruby/osx/objc/active_record.rb: 2232 When removing all table columns, make sure to iterate on a duplicate array 2233 to not mutate the original one during the enumeration. 2234 2235 * framework/src/ruby/osx/objc/oc_import.rb: 2236 When auto-overriding Objective-C methods, before doing the override compare 2237 the methods arity and raise an exception if they are not the same. 2238 2239 * framework/src/ruby/osx/objc/oc_wrapper.rb: 2240 Added a convenience Ruby -> Objective-C shortcut, to call #foo= instead of 2241 #setFoo. 2242 2243 * framework/src/ruby/osx/objc/ruby_addition.rb: 2244 Added some convenience API to pack/unpack Pascal strings. 2245 2246 * framework/src/objc/libffi.m, 2247 framework/src/objc/ocdata_conv.m, 2248 framework/src/objc/BridgeSupport.m, 2249 tests/tc_wrapper.rb: 2250 Fixed some new bugs in the C_ARY_B type support. Added test cases. 2251 22522007-05-31 Fujimoto Hisa <hisa@fobj.com> 2253 2254 * framework/src/ruby/osx/objc/oc_attachments.rb: 2255 fixed NSString#length issue. 2256 2257 * tests/tc_nsstring_compat.rb: 2258 added a test to assert NSStirng#length is the number of characters 2259 rather than bytes. (failed the test currently) 2260 2261>>>>>>> .r1795 22622007-05-30 Laurent Sansonetti <lsansonetti@apple.com> 2263 2264 * AUTHORS: 2265 Added Matthias. 2266 2267 * framework/src/objc/ocdata_conv.m, 2268 tests/tc_wrapper.rb: 2269 Better support for getting C_ARY_B types. Thanks to Matthias Neeracher. 2270 2271 * framework/src/ruby/osx/objc/oc_attachments.rb, 2272 tests/tc_nsstring_compat.rb: 2273 Removed tabs, fixed some comments. 2274 2275 * framework/src/objc/libffi.m, 2276 tests/tc_passbyref.rb, 2277 tests/tc_wrapper.rb: 2278 Fixed minor issues related to passed-by-reference arguments declared 2279 between regular arguments. 2280 22812007-05-30 kimura wataru <kimuraw@i.nifty.jp> 2282 2283 * framework/src/ruby/osx/objc/oc_attachments.rb, tests/tc_nsstring_compat.rb: 2284 - re-enabled `NSString behave like Ruby String' 2285 - OSX::NSString#length invokes [NSString length](objc) not String#length(ruby) 2286 22872007-05-28 Laurent Sansonetti <lsansonetti@apple.com> 2288 2289 * AUTHORS: 2290 Added Justin. 2291 2292 * sample/Scripts/darkroom.rb: 2293 Added new sample, from Justin Palmer. 2294 22952007-05-28 Fujimoto Hisa <hisa@fobj.com> 2296 2297 * framework/src/ruby/osx/objc/oc_attachments.rb, tests/tc_nsstring_compat.rb: 2298 disable `NSString behave like Ruby String' to avoid strong side 2299 effect, except NSString#to_str. 2300 23012007-05-27 Laurent Sansonetti <lsansonetti@apple.com> 2302 2303 * sample/Scripts/circle.rb: 2304 When calling CFURLCreateFromFileSystemRepresentation, it's not necessary 2305 anymore to pass the length of the string. 2306 2307 * AUTHORS: 2308 Some reformat, added Vincent. 2309 2310 * framework/src/objc/libffi.m: 2311 Do not raise an exception when passing a String object as a C characters 2312 pointer (_C_CHARPTR). Thanks to Vincent Isambart. 2313 23142007-05-24 Eloy Duran <e.duran@superalloy.nl> 2315 2316 * framework/src/ruby/osx/objc/active_record.rb, 2317 tests/tc_active_record.rb: 2318 - ActiveRecordTableView#scaffold_columns_for will now set NSTableColumn#identifier 2319 to the name of the attribute so you can use this to check which column it is. 2320 - Added metaclass methods #find & method_missing which handles #find_by_foo to the 2321 ActiveRecordProxy, which works as normal but returns proxies for the results. 2322 - Optimized model class resolve method. Now also caches it. 2323 23242007-05-24 Eloy Duran <e.duran@superalloy.nl> 2325 2326 * framework/src/ruby/osx/objc/active_record.rb: 2327 - Removed method_missing implementation that forwarded 2328 messages to the record that it wraps. 2329 Instead we now define all the methods available on the record, 2330 plus getters/setters for the attributes, at proxy initialization time. 2331 - ActiveRecordTableView#scaffold_columns_for will now delete 2332 any existing columns before creating new ones. 2333 - ActiveRecordSetController has a new instance method #setup_for, 2334 which is used to set the model that it manages and directly 2335 calls #setContent with any given content. 2336 - Added Array#original_records returns an array of the original records. 2337 23382007-05-22 Laurent Sansonetti <lsansonetti@apple.com> 2339 2340 * framework/src/objc/RBObject.m, 2341 framework/src/objc/ocdata_conv.m, 2342 framework/src/objc/OverrideMixin.m: 2343 When converting Objective-C objects to Ruby, do not cache those 2344 being converted in an Objective-C callback (either FFI closure or 2345 NSInvocation), because there is no way to clear the cache after. 2346 23472007-05-21 kimura wataru <kimuraw@i.nifty.jp> 2348 2349 * framework/src/ruby/osx/objc/cocoa_macros_appkit.rb: 2350 fix: NSApplication.run_with_temp_app does not work. 2351 2352=== RubyCocoa 0.11.0 === 2353 23542007-05-22 Fujimoto Hisa <hisa@fobj.com> 2355 2356 * framework/RubyCocoa.xcodeproj/project.pbxproj: 2357 copy tools into the Version/Current/Tools directory. 2358 2359 * framework/RubyCocoa.xcodeproj/project.pbxproj: 2360 put active_record.rb into appropriate group. 2361 23622007-05-22 Laurent Sansonetti <lsansonetti@apple.com> 2363 2364 * pre-install.rb, 2365 install.rb, 2366 metaconfig: 2367 Added 'ri-dir' config variable, and use it when installing the RI 2368 files. When generating the binary package, make sure to prefix the 2369 directory with the temporary package directory. 2370 2371 * VERSION: 2372 Bumped to 0.11. 2373 2374 * ReadMe.ja.html, 2375 ReadMe.html: 2376 Removed the "Beware, this is a development release" warning. 2377 2378 * pre-install.rbm 2379 install.rb: 2380 Make sure to not fix the RubyCocoa.framework path in xcode projects 2381 during packaging. 2382 2383 * AUTHORS: 2384 Added AUTHORS file, first revision. 2385 2386 * framework/**/*.{m.h.rb}, 2387 lib/osx/*.rb, 2388 ext/rubycocoa/rubycocoa.m: 2389 Updated copyright headers. 2390 2391 * framework/tool/standaloneify.rb: 2392 When copying RubyCocoa.framework, use `cp -R' and not `cp -r'. 2393 23942007-05-21 Laurent Sansonetti <lsansonetti@apple.com> 2395 2396 * framework/tool/standaloneify.rb: 2397 Added the standaloneify.rb script, by Jonathan Paisley. Fixed a few bugs. 2398 23992007-05-21 kimura wataru <kimuraw@i.nifty.jp> 2400 2401 * framework/src/ruby/osx/objc/oc_attachments.rb, 2402 tests/tc_nsstring_compat.rb: 2403 NSString behave like Ruby String, "to_s" will not be needed mostly. 2404 24052007-05-19 Eloy Duran <e.duran@superalloy.nl> 2406 2407 * framework/src/ruby/osx/objc/active_record.rb: 2408 Did some refining of the NSTableView subclass and the scaffold_columns_for method now also takes an optional block. 2409 24102007-05-18 Eloy Duran <e.duran@superalloy.nl> 2411 2412 * framework/src/ruby/osx/objc/active_record.rb: 2413 Added a subclass of OSX::NSTableView called OSX::ActiveRecordTableView. 2414 This subclass has an instance method called scaffold_table_columns_for(). 2415 You pass it a ActiveRecord::Base subclass and the ActiveRecordSetController instance 2416 that the NSTableColumns should be bound to. 2417 See the source file for an example. 2418 24192007-05-18 Eloy Duran <e.duran@superalloy.nl> 2420 2421 * sample/MailDemo/MailDemoActiveRecordBindings/maildemo.sql, 2422 sample/MailDemo/MailDemoActiveRecordBindings/maildemo.sqlite, 2423 sample/MailDemo/MailDemoActiveRecordBindings/migrate, 2424 sample/MailDemo/MailDemoActiveRecordBindings/migrate/002_create_emails.rb, 2425 sample/MailDemo/MailDemoActiveRecordBindings/migrate/001_create_mailboxes.rb, 2426 sample/MailDemo/MailDemoActiveRecordBindings/MyController.rb, 2427 sample/MailDemo/MailDemoActiveRecordBindings/MailDemoActiveRecordBindings.xcodeproj/project.pbxproj, 2428 sample/MailDemo/MailDemoActiveRecordBindings/Database.rb, 2429 framework/src/ruby/osx/objc/active_record.rb, 2430 tests/maildemo.sql, 2431 tests/tc_active_record.rb: 2432 Added support for db migrations to osx/active_cocoa through the OSX::ActiveRecordConnector module. 2433 It uses the ActiveRecord::Migrator module with some OSX specific syntax, 2434 like automatically create a dbfile in ~/Library/Application Support/AppIdentifier/AppIdentifier.sqlite 2435 Updated the MailDemoActiveRecordBindings to make use of the new connection module. 2436 24372007-05-17 Laurent Sansonetti <lsansonetti@apple.com> 2438 2439 * framework/src/objc/BridgeSupport.m: 2440 Added support to decode structure fields of the union type. 2441 2442 * framework/src/objc/libffi.m, 2443 framework/src/objc/ocdata_conv.m: 2444 - Properly handle exceptions NSGetSizeAndAlignment could throw ; 2445 - Increased the method encoding buffer when analyzing its arguments. 2446 24472007-05-16 Laurent Sansonetti <lsansonetti@apple.com> 2448 2449 * sample/MailDemo/MailDemoActiveRecordBindings/Info.plist: 2450 Uses the icon. 2451 2452 * sample/buildall.rb: 2453 Run xcodebuild in quiet mode, display the projects that were successfully 2454 built and those who failed at the end of the script. 2455 2456 * sample/ViewModelDemo/ViewModel Demo.xcodeproj/project.pbxproj: 2457 Fixed the product name of the `Default' target. 2458 24592007-05-16 Fujimoto Hisa <hisa@fobj.com> 2460 2461 * framework/pre-install.rb: 2462 removed the installation of the bridge support metada files, 2463 because these files are included in the Resources of the 2464 framework, or the files are installed at another 2465 time (e.g. installing phage of the bridge support). 2466 24672007-05-15 Laurent Sansonetti <lsansonetti@apple.com> 2468 2469 * framework/src/ruby/osx/objc/oc_wrapper.rb: 2470 Better detection of the (deprecated) symbol-value-... syntax. 2471 2472 * framework/src/objc/mdl_objwrapper.m, 2473 framework/src/objc/ocdata_conv.h, 2474 framework/src/objc/ocdata_conv.m, 2475 framework/src/objc/BridgeSupport.h, 2476 framework/src/objc/BridgeSupport.m, 2477 tests/tc_printf_format.rb: 2478 Added support for the 'printf_format' bridge support annotations. 2479 24802007-05-15 Eloy Duran <e.duran@superalloy.nl> 2481 2482 * sample/MailDemo/MailDemoActiveRecordBindings/MailboxProxy.rb, 2483 sample/MailDemo/MailDemoActiveRecordBindings/Email.rb, 2484 sample/MailDemo/MailDemoActiveRecordBindings/EmailProxy.rb, 2485 sample/MailDemo/MailDemoActiveRecordBindings/MailDemoActiveRecordBindings.xcodeproj/project.pbxproj, 2486 sample/MailDemo/MailDemoActiveRecordBindings/Mailbox.rb, 2487 framework/src/ruby/osx/objc/oc_attachments.rb, 2488 framework/src/ruby/osx/objc/active_record.rb, 2489 tests/tc_active_record.rb: 2490 Updated the active_record lib to not pollute the String class and make use of the new NSObject#to_ruby method. 2491 Added conversion for NSAttributedString to NSObject#to_ruby in oc_attachments.rb. 2492 Separated the proxy classes from the actual model files, this to make it more clear what's what. 2493 24942007-05-14 Eloy Duran <e.duran@superalloy.nl> 2495 2496 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 2497 framework/tool/gen_bridge_doc/lib/Foundation/NSArray.rb, 2498 framework/tool/gen_bridge_doc/lib/Foundation/NSXMLDocument.rb, 2499 framework/tool/gen_bridge_doc/lib/Foundation/NSString.rb, 2500 framework/tool/gen_bridge_doc/lib/lib/method_def.rb, 2501 framework/tool/gen_bridge_doc/lib/lib/class_def.rb, 2502 framework/tool/gen_bridge_doc/lib/ApplicationKit/NSTokenFieldCell.rb: 2503 Added support for the latest documentation updates from apple. 2504 25052007-05-14 Eloy Duran <e.duran@superalloy.nl> 2506 2507 * sample/MailDemo/MailDemoActiveRecordBindings/Database.rb, 2508 sample/MailDemo/MailDemoActiveRecordBindings/Email.rb, 2509 sample/MailDemo/MailDemoActiveRecordBindings/MyController.rb, 2510 sample/MailDemo/MailDemoActiveRecordBindings/Mailbox.rb, 2511 framework/src/ruby/osx/active_record.rb, 2512 framework/src/ruby/osx/objc/active_record.rb, 2513 tests/tc_active_record.rb, 2514 lib/osx/active_record.rb: 2515 Added some copyright info to the src files. 2516 The testcase will now try to require rubygems directly, 2517 so you will not be bothered by a message about this. 2518 However it will tell you that the tests are skipped 2519 if either active_record or sqlite3 aren't found. 2520 25212007-05-14 Laurent Sansonetti <lsansonetti@apple.com> 2522 2523 * sample/MailDemo/MailDemoSimple/Info.plist, 2524 sample/MailDemo/MailDemoBindings/Info.plist: 2525 Better CFBundleIdentifier tags. 2526 2527 * framework/src/ruby/osx/objc/ruby_addition.rb, 2528 framework/src/ruby/osx/objc/oc_attachments.rb, 2529 framework/src/objc/ocdata_conv.m, 2530 tests/tc_plist.rb, 2531 tests/tc_types.rb, 2532 tests/tc_attachments.rb: 2533 Introduced NSObject#to_ruby, which converts the given Cocoa type to the 2534 Ruby equivalent (converting sub-elements for NSArray and NSDictionary). 2535 Added and updated test cases. 2536 2537 * framework/src/ruby/osx/objc/active_record.rb, 2538 tests/tc_active_record.rb: 2539 Removed Object#to_rubyttype, better exception name if active record cannot 2540 be loaded. 2541 2542 * framework/src/objc/mdl_osxobjc.m: 2543 Obsoleted #objc_symbol_to_obj. 2544 2545 * sample/MailDemo/MailDemoActiveRecordBindings/README, 2546 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu~.nib: 2547 Removed unnecessary files. 2548 2549 * sample/MailDemo/README: 2550 Better introduction file. 2551 25522007-05-13 Eloy Duran <e.duran@superalloy.nl> 2553 2554 * framework/RubyCocoa.xcodeproj/project.pbxproj, 2555 framework/src/ruby/osx/active_record.rb, 2556 framework/src/ruby/osx/objc/active_record.rb, 2557 tests/tc_active_record.rb, 2558 lib/osx/active_record.rb: 2559 Added the osx/active_record lib, which enables the use of ActiveRecord in conjunction with bindings. 2560 For now it implements at least the glue code for a belongs_to association. 2561 There is a testcase with some basic tests. If ActiveRecord isn't found by osx/active_record 2562 it will issue a warning about it and that you might need to require 'rubygems' first. 2563 So you might see this warning when running the tests, but the testcase 2564 will retry to require ActiveRecord after requiring rubygems. 2565 If it's still not successful it will skip the testcase. 2566 2567 * sample/MailDemo/MailDemoActiveRecordBindings, 2568 sample/MailDemo/MailDemoActiveRecordBindings/main.m, 2569 sample/MailDemo/MailDemoActiveRecordBindings/TreeHouseIdeas.icns, 2570 sample/MailDemo/MailDemoActiveRecordBindings/Info.plist, 2571 sample/MailDemo/MailDemoActiveRecordBindings/maildemo.sql, 2572 sample/MailDemo/MailDemoActiveRecordBindings/Database.rb, 2573 sample/MailDemo/MailDemoActiveRecordBindings/maildemo.sqlite, 2574 sample/MailDemo/MailDemoActiveRecordBindings/Email.rb, 2575 sample/MailDemo/MailDemoActiveRecordBindings/rb_main.rb, 2576 sample/MailDemo/MailDemoActiveRecordBindings/MyController.rb, 2577 sample/MailDemo/MailDemoActiveRecordBindings/MailDemoActiveRecordBindings.xcodeproj, 2578 sample/MailDemo/MailDemoActiveRecordBindings/MailDemoActiveRecordBindings.xcodeproj/project.pbxproj, 2579 sample/MailDemo/MailDemoActiveRecordBindings/Mailbox.rb, 2580 sample/MailDemo/MailDemoActiveRecordBindings/README, 2581 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj, 2582 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/InfoPlist.strings, 2583 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu.nib, 2584 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu.nib/info.nib, 2585 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu.nib/keyedobjects.nib, 2586 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu.nib/classes.nib, 2587 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu~.nib, 2588 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu~.nib/info.nib, 2589 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu~.nib/keyedobjects.nib, 2590 sample/MailDemo/MailDemoActiveRecordBindings/English.lproj/MainMenu~.nib/classes.nib: 2591 Added the MailDemo version that uses the new osx/active_record lib, 2592 it achieves persistent storage by using ActiveRecord with a sqlite3 backend. 2593 It shows how to use a belongs_to relationship with a subclass of NSArrayController. 2594 25952007-05-13 Laurent Sansonetti <lsansonetti@apple.com> 2596 2597 * framework/src/objc/libffi.m, 2598 tests/tc_passbyref.rb: 2599 Better behavior for C-array like arguments with a length argument. Do not emit 2600 a warning anymore if a value is passed for the length argument. If the value 2601 is either negative or greater than the size of the given array, raise an 2602 exception. Otherwise, just pass the value. Added tests. 2603 26042007-05-11 Laurent Sansonetti <lsansonetti@apple.com> 2605 2606 * framework/src/objc/libffi.m: 2607 Do not try to register a given selector value if it's NULL. 2608 26092007-05-11 Fujimoto Hisa <hisa@fobj.com> 2610 2611 * framework/src/ruby/osx/objc/oc_import.rb: 2612 add QuartzComposer into the QUICK_FRAMEWORKS 2613 2614 * framework/src/objc/OverrideMixin.h, framework/src/objc/mdl_osxobjc.m: 2615 declared ovmix_register_ruby_method that is defined in OverrideMixin.m 2616 26172007-05-10 Laurent Sansonetti <lsansonetti@apple.com> 2618 2619 * framework/src/objc/cls_objcptr.m: 2620 Added new APIs to assign values to the pointer instance. #assign is to assign 2621 a value to the entire pointer, and #[]= can be used to assign a value to a 2622 particular offset. 2623 2624 * tests/tc_passbyref.rb, 2625 tests/tc_objcptr.rb: 2626 Added more tests. 2627 2628 * framework/src/objc/libffi.m: 2629 Fixed a regression introduced by a recent commit. 2630 2631 * tests/tc_plist.rb: 2632 Do not test the serialization of big numbers in binary property lists on 2633 Tiger or lower environments. 2634 2635 * tests/tc_passbyref.rb: 2636 Better tests. 2637 2638 * framework/src/objc/BridgeSupport.m: 2639 Ignore the 'Nil' Foundation enumeration. 2640 2641 * framework/RubyCocoa.xcodeproj/project.pbxproj: 2642 Added a build phase that copies the bridge support file within the RubyCocoa 2643 framework bundle, only if the bridge support files have been generated. 2644 2645 * framework/post-config.rb: 2646 Updated to run the new bridge support build process. 2647 2648 * metaconfig: 2649 Removed the 'bridge-support' config variable, now the bridge support files are 2650 always copied within the RubyCocoa framework bundle. 2651 2652 * framework/bridge-support-exceptions, 2653 framework/tool/gen_bridge_metadata.rb: 2654 Removed. 2655 26562007-05-09 Laurent Sansonetti <lsansonetti@apple.com> 2657 2658 * misc/bridgesupport: 2659 Created, this hosts the bridge support project that is now on 2660 MacOSForge.org, using svn:externals. 2661 26622007-05-05 Laurent Sansonetti <lsansonetti@apple.com> 2663 2664 * framework/src/objc/libffi.m: 2665 Fixed a bug in the handling of C-array like arguments. Also accept nil 2666 for such arguments. 2667 26682007-05-04 Laurent Sansonetti <lsansonetti@apple.com> 2669 2670 * framework/src/objc/ocdata_conv.m: 2671 Convert Time objects to NSDate objects. 2672 2673 * framework/src/ruby/osx/objc/ruby_addition.rb, 2674 tests/tc_plist.rb: 2675 Added syntax-sugar APIs to manage property lists. Added test cases. 2676 2677 * framework/src/objc/BridgeSupport.m: 2678 Fixed a leak. 2679 26802007-04-26 Laurent Sansonetti <lsansonetti@apple.com> 2681 2682 * framework/src/objc/libffi.m: 2683 Do not allow pointers arguments that don't have an 'out' type modifier to be 2684 omitted. 2685 26862007-04-23 Laurent Sansonetti <lsansonetti@apple.com> 2687 2688 * framework/src/ruby/osx/objc/oc_import.rb, 2689 tests/tc_hybrid.rb: 2690 Assume a '@@:' default signature when nothing is passed to objc_method and 2691 objc_class_method. Adapted a test case. 2692 2693 * framework/src/ruby/osx/objc/oc_import.rb 2694 framework/src/objc/RBObject.m 2695 tests/tc_ovmix.rb 2696 tests/objc_test.m 2697 tests/tc_subclass.rb, 2698 tests/tc_hybrid.rb: 2699 Some work on messaging Ruby from Objective-C. Fixed a bug when the Ruby 2700 proxy cannot be determined, and another when OSX methods couldn't be called 2701 directly on an Objective-C class from Ruby (DirectOverride). Added tests. 2702 2703 * pre-config.rb, 2704 framework/RubyCocoa.xcodeproj/project.pbxproj, 2705 framework/GeneratedConfig.xcconfig.in, 2706 metaconfig: 2707 Introduced a new config phase variable, 'build-as-embeddable', turned on by 2708 default, which builds RubyCocoa.framework with an INSTALL_PATH set to 2709 @executable_path/../Frameworks/RubyCocoa.framework/RubyCocoa. When turned off, 2710 INSTALL_PATH will get an absolute path value (the value of the 'frameworks' 2711 config phase variable). 2712 2713 * sample/DotView/DotView.rb, 2714 sample/MultiNib/ApplicationDelegate.rb, 2715 sample/SimpleApp/AppController.rb, 2716 sample/MakefileApp2/AppController.rb, 2717 sample/Pong/AppCtrl.rb, 2718 sample/PDFKitViewer/MyPDFDocument.rb, 2719 sample/QTKitSimpleDocument/MyDocument.rb, 2720 sample/MyViewer/MyInspector.rb, 2721 sample/MyViewer/MyViewerCtrl.rb, 2722 sample/CocoaGL/MyOpenGLView.rb, 2723 sample/Spotlight/AppController.rb, 2724 sample/HybridLangApp/RubyController.rb, 2725 sample/MailDemo/MyController.rb, 2726 sample/CIExposureSample/CIExposureView.rb, 2727 sample/RaiseMan/PreferenceController.rb, 2728 sample/RaiseMan/AppController.rb, 2729 sample/RaiseMan/MyDocument.rb, 2730 sample/MiniBrowser/AppController.rb, 2731 sample/MiniBrowser/MyDocument.rb, 2732 sample/RoundTransparentWindow/RTW.rb, 2733 sample/PathDemo/PathDemoController.rb, 2734 sample/CGPDFViewer/PDFView.rb, 2735 sample/CGPDFViewer/MainController.rb, 2736 sample/Thread/AppController.rb, 2737 sample/CocoaRepl/ReplController.rb, 2738 sample/TypingTutor/BigLetterView.rb, 2739 sample/MakefileApp/AppController.rb, 2740 sample/Stickies/StickiesAppDelegate.rb, 2741 template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/MyDocument.rb, 2742 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/MyDocument.rb, 2743 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/AppDelegate.rb: 2744 Now using ib_action to annotate action methods. 2745 27462007-04-12 Laurent Sansonetti <lsansonetti@apple.com> 2747 2748 * framework/src/ruby/osx/objc/oc_import.rb, 2749 framework/src/objc/OverrideMixin.m, 2750 framework/src/objc/BridgeSupport.m, 2751 tests/tc_wrapper.rb: 2752 Some cleanup changes, better logging, better tests. 2753 2754 * framework/src/objc/mdl_osxobjc.m, 2755 framework/src/objc/OverrideMixin.m: 2756 When overriding methods directly into an Objective-C class (DirectOverride), 2757 do not use class_addMethod but method_setImplementation as the former doesn't 2758 replace the existing implementation (> 10.4 only). 2759 27602007-04-11 Laurent Sansonetti <lsansonetti@apple.com> 2761 2762 * framework/src/objc/OverrideMixin.m: 2763 Fixed a bug in [-setValue:forUndefinedKey:] to not insert nil values in the 2764 cache dictionary. 2765 27662007-04-06 Laurent Sansonetti <lsansonetti@apple.com> 2767 2768 * sample/Scripts/speak.rb, 2769 sample/Scripts/speak2.rb: 2770 New sample, speak text via the SpeechSynthesis framework. Added a comment 2771 to speak.rb. 2772 27732007-04-05 Laurent Sansonetti <lsansonetti@apple.com> 2774 2775 * pre-config.rb, 2776 framework/RubyCocoa.xcodeproj/project.pbxproj, 2777 framework/src/objc/mdl_objwrapper.m, 2778 framework/src/objc/RBClassUtils.m, 2779 framework/src/objc/objc_compat.h, 2780 framework/src/objc/OverrideMixin.m, 2781 framework/GeneratedConfig.xcconfig.in: 2782 Reverted previous change. Now configure the deployment target based on the 2783 --macosx-deployment-target parameter passed to install.rb config. Fixed 2784 more 64-bit compilation warnings. 2785 2786 * framework/RubyCocoa.xcodeproj/project.pbxproj, 2787 framework/src/objc/libffi.m: 2788 Removed explicit 10.3 deployment target and use the default compiler target. 2789 Fixed a 64-bit compilation warning. 2790 27912007-04-05 kimura wataru <kimuraw@i.nifty.jp> 2792 2793 * framework/pre-doc.rb: 2794 clean bridge-doc directory when doc task fails. 2795 27962007-04-04 Fujimoto Hisa <hisa@fobj.com> 2797 2798 * framework/post-config.rb: 2799 added QuartzComposer.framework. 2800 2801 * framework/src/objc/internal_macros.h: 2802 included CFRunLoop.h to solve type for CFRunLoopRef. 2803 28042007-04-04 Laurent Sansonetti <lsansonetti@apple.com> 2805 2806 * framework/src/objc/RBObject.m, 2807 framework/src/objc/internal_macros.h, 2808 framework/src/objc/OverrideMixin.m: 2809 Moved the is-main-thread check code in a macro. 2810 28112007-04-04 Fujimoto Hisa <hisa@fobj.com> 2812 2813 * framework/src/objc/RBObject.m, 2814 framework/src/objc/OverrideMixin.m, 2815 tests/tc_thread.rb: 2816 fixed an issue that CFRunLoopGetMain isn't declared in CFRunLoop.h 2817 on 10.4 (undocumented api?). 2818 28192007-04-03 Laurent Sansonetti <lsansonetti@apple.com> 2820 2821 * framework/src/objc/libffi.m, 2822 framework/src/objc/BridgeSupport.h, 2823 framework/src/objc/BridgeSupport.m: 2824 Added support for sel_of_type[64] BridgeSupport annotations. 2825 28262007-04-01 Laurent Sansonetti <lsansonetti@apple.com> 2827 2828 * framework/src/ruby/osx/objc/oc_import.rb: 2829 Better deprecation warning messages. 2830 28312007-03-30 Laurent Sansonetti <lsansonetti@apple.com> 2832 2833 * framework/src/objc/libffi.h, 2834 framework/src/objc/RBObject.m, 2835 framework/src/objc/libffi.m, 2836 framework/src/objc/OverrideMixin.m, 2837 tests/tc_thread.rb, 2838 tests/objc_test.m: 2839 Allows RubyCocoa to be called by Objective-C from a thread that isn't the main 2840 one, by routing the NSInvocation / FFI closure into the main thread via the 2841 main run loop. Prints a warning before routing. Added some test cases. 2842 28432007-03-29 Laurent Sansonetti <lsansonetti@apple.com> 2844 2845 * framework/src/ruby/osx/objc/oc_import.rb, 2846 framework/src/objc/libffi.m, 2847 framework/src/objc/ocdata_conv.m, 2848 framework/src/objc/OverrideMixin.m, 2849 framework/src/objc/BridgeSupport.m, 2850 framework/src/objc/cls_objcid.m, 2851 tests/tc_subclass.rb: 2852 Completed 64-bit support. 2853 28542007-03-28 Laurent Sansonetti <lsansonetti@apple.com> 2855 2856 * framework/src/objc/mdl_osxobjc.h, 2857 framework/src/objc/cls_objcid.m: 2858 Started working on the 64-bit support. 2859 28602007-03-24 Laurent Sansonetti <lsansonetti@apple.com> 2861 2862 * framework/src/ruby/osx/objc/oc_exception.rb, 2863 framework/src/ruby/osx/objc/oc_types.rb, 2864 framework/src/ruby/osx/objc/oc_bundle_support.rb, 2865 framework/src/ruby/osx/objc/oc_import.rb, 2866 framework/src/objc/RBRuntime.m, 2867 framework/src/objc/internal_macros.h: 2868 - Make sure DLOG macros are active only if $DEBUG or $RUBYCOCOA_DEBUG 2869 are true (and not $VERBOSE or $RUBYCOCOA_VERBOSE) ; 2870 - Removed warnings. 2871 2872 * framework/src/objc/libffi.m, 2873 framework/src/objc/BridgeSupport.m: 2874 Some support for the next BridgeSupport format (value64, le_value and 2875 be_value attributes for the enum element). Coerce the return value of 2876 FFI dispatch at the beginning. 2877 28782007-03-24 Fujimoto Hisa <hisa@fobj.com> 2879 2880 * framework/src/objc/RubyCocoa.m: 2881 oops! svn add and commit the file. 2882 28832007-03-23 Fujimoto Hisa <hisa@fobj.com> 2884 2885 * Rakefile: 2886 Added rakefile with targets build, clean, install, minclean, test 2887 and package. 2888 2889 * pre-config.rb, install.rb, metaconfig, 2890 framework/RubyCocoa.xcodeproj/project.pbxproj, 2891 framework/GeneratedConfig.xcconfig.in: 2892 Added option `--rubycocoa-framework-version=name' in config phase 2893 for FRAMEWORK_VERSION value of xcodebuild. The default value is "A" 2894 2895 * framework/RubyCocoa.xcodeproj/project.pbxproj, framework/src/objc/RubyCocoa.h: 2896 Added Objective-C version of API for initialize/load. 2897 28982007-03-20 Laurent Sansonetti <lsansonetti@apple.com> 2899 2900 * framework/src/objc/RBObject.m: 2901 Better logs. 2902 2903 * framework/tool/gen_bridge_metadata.rb: 2904 Fixed a bug when overriding BOOL types for informal protocols. 2905 29062007-03-19 Laurent Sansonetti <lsansonetti@apple.com> 2907 2908 * framework/src/objc/libffi.m, 2909 framework/src/objc/ocdata_conv.m, 2910 tests/tc_passbyref.rb: 2911 Added support for getting C_ARY_B type arguments by reference. 2912 Added a test case. 2913 2914 * framework/bridge-support-exceptions/AppKit.xml: 2915 Added missing exception data. 2916 29172007-03-16 Fujimoto Hisa <hisa@fobj.com> 2918 2919 * framework/src/ruby/osx/objc/oc_import.rb, framework/src/objc/mdl_osxobjc.m, framework/src/objc/RBRuntime.m: 2920 Added constants OSX::RUBYCOCOA_FRAMEWORK_PATHS which includes each 2921 path to private/shared Frameworks directory for an 2922 application/bundles. require_framework search into each 2923 private/shared framework path for an application/bundles. 2924 29252007-03-16 Laurent Sansonetti <lsansonetti@apple.com> 2926 2927 * framework/src/objc/BridgeSupport.gperf, 2928 framework/src/objc/BridgeSupportLexer.h, 2929 framework/src/objc/BridgeSupport.m, 2930 tests/tc_constants.rb: 2931 Added support for string constants. Added test cases. 2932 2933 * framework/tool/gen_bridge_metadata.rb: 2934 Emit metadata for string constants. 2935 29362007-03-16 Fujimoto Hisa <hisa@fobj.com> 2937 2938 * framework/src/ruby/osx/objc/oc_import.rb: 2939 Allowed to put BridgeSupport directory into the Resources of the 2940 application/bundle. It may be for 3rd party framework/library 2941 which is not aware of BridgeSupport. 2942 2943 * framework/src/objc/mdl_osxobjc.m, framework/src/objc/RBRuntime.m: 2944 Added constants OSX::RUBYCOCOA_SIGN_PATHS which includes each path 2945 to BridgeSupport directory for the framework and an 2946 application/bundles. 2947 2948 * framework/src/ruby/osx/objc/oc_import.rb: 2949 Allowed to put BridgeSupport directory into the Resources of 2950 RubyCocoa.framework. for portability of RubyCocoa.framework. 2951 2952 * framework/src/objc/mdl_osxobjc.m, framework/src/objc/RBRuntime.m: 2953 Added constants OSX::RUBYCOCOA_RESOURCES_PATH 2954 29552007-03-16 Laurent Sansonetti <lsansonetti@apple.com> 2956 2957 * framework/bridge-support-exceptions/AddressBook.xml, 2958 framework/bridge-support-exceptions/Foundation.xml, 2959 framework/bridge-support-exceptions/AppKit.xml, 2960 framework/bridge-support-exceptions/QuartzCore.xml: 2961 Fixed config phase. 2962 29632007-03-15 Laurent Sansonetti <lsansonetti@apple.com> 2964 2965 * framework/src/objc/RBRuntime.m: 2966 Do not crash if one resource (for example rb_main.rb) isn't found, but 2967 propose a clear message to the user instead. 2968 2969 * framework/tool/gen_bridge_metadata.rb: 2970 - Override the informal protocol method types for 'BOOL' types ; 2971 - Make sure formal protocol methods are added to the NSObject class ; 2972 - Override 'BOOL *' types with '^B'. 2973 29742007-03-13 Laurent Sansonetti <lsansonetti@apple.com> 2975 2976 * framework/tool/gen_bridge_metadata.rb: 2977 Better detection of Objective-C methods, make sure exception markup is 2978 properly merged for method arguments and return value. 2979 29802007-03-13 Fujimoto Hisa <hisa@fobj.com> 2981 2982 * framework/src/objc/cls_objcptr.m: 2983 Added methods ObjcPtr#encoding and ObjcPtr#regard_as. the 2984 regard_as is to specify the encoding for the receiver. Modified 2985 ObjcPtr.new to specify encoding and size. Modified ObjcPtr#[] to 2986 get decoded values as an array. 2987 29882007-03-12 Laurent Sansonetti <lsansonetti@apple.com> 2989 2990 * framework/src/objc/libffi.h, 2991 framework/src/objc/libffi.m, 2992 framework/src/objc/ocdata_conv.h, 2993 framework/src/objc/ocdata_conv.m, 2994 framework/src/objc/OverrideMixin.m, 2995 framework/src/objc/BridgeSupport.m, 2996 framework/tool/gen_bridge_metadata.rb, 2997 tests/tc_types.rb, 2998 tests/tc_nsdata.rb: 2999 Added basic support for function pointers arguments. gen_bridge_metadata 3000 annotates them and RubyCocoa is now able to convert Ruby Proc objects to 3001 function pointer handlers by creating a FFI closure. Added test cases. 3002 30032007-03-08 Laurent Sansonetti <lsansonetti@apple.com> 3004 3005 * framework/tool/gen_bridge_metadata.rb: 3006 - Better ignored header exceptions support ; 3007 - Properly define the import directive by keeping sub-directories within 3008 the headers directory. 3009 30102007-03-07 Laurent Sansonetti <lsansonetti@apple.com> 3011 3012 * framework/tool/gen_bridge_metadata.rb: 3013 - When generating the exceptions template, use 'o' instead of 'out' for the 3014 default type modifier attribute value ; 3015 - Fail with a human-readable message when a given framework could not be 3016 located. 3017 30182007-03-05 Laurent Sansonetti <lsansonetti@apple.com> 3019 3020 * sample/CIExposureSample/.gdb_history: 3021 Removed. 3022 3023 * sample/CocoaRepl/Info.plist: 3024 Added missing CFBundleShortVersionString. 3025 3026 * framework/tool/gen_bridge_metadata.rb: 3027 Do not do 64-bit magic unless '--enable-64' is provided. 3028 30292007-03-02 Laurent Sansonetti <lsansonetti@apple.com> 3030 3031 * framework/src/objc/mdl_osxobjc.m: 3032 When wrapping a returned ocid in a Ruby object, if the wanted class name 3033 can't be a constant (because starting with '_' or [a-z]), try to use the 3034 superclass name when possible. 3035 3036 * tests/tc_attachments.rb, 3037 framework/src/ruby/osx/objc/oc_attachments.rb: 3038 Added Hash-like interface to NSUserDefaults. Added test cases. 3039 3040 * sample/RaiseMan/PreferenceController.rb, 3041 sample/RaiseMan/AppController.rb, 3042 sample/RaiseMan/MyDocument.rb: 3043 Removed mixing of old NSDictionaryAttachment module in NSUserDefaults. 3044 3045 * framework/src/objc/RBRuntime.m, 3046 framework/src/objc/internal_macros.h: 3047 Grab the RUBYCOCOA_VERBOSE global variable value only once. 3048 30492007-03-02 Fujimoto Hisa <hisa@fobj.com> 3050 3051 * framework/src/objc/RBRuntime.m: 3052 Added Init_stack for loading multiple bundles. 3053 3054 * sample/Pong, sample/RubyRocks, sample/TypingTutor: 3055 rewritten with modern sytanx instead of obsoleted syntax. 3056 3057 * framework/src/objc/RBRuntime.m, 3058 framework/src/objc/internal_macros.h, 3059 framework/src/ruby/osx/objc/oc_exception.rb, 3060 framework/src/ruby/osx/objc/oc_bundle_support.rb, 3061 framework/src/ruby/osx/objc/oc_import.rb, 3062 tests/tc_exception.rb: 3063 - Defined global variable `$RUBYCOCOA_VERBOSE' to record the 3064 detail of RubyCocoa runtime information for debugging RubyCocoa 3065 itself. You can use $VERBOSE of Ruby's pre-defined global variable 3066 for same purpose as well. 3067 - Recorded better backtrace information of an exception which is 3068 raised from user's ruby program. It's debugging a ruby program 3069 linked with RubyCocoa. 3070 3071 * framework/src/objc/RBObject.m, framework/src/objc/RBRuntime.m: 3072 implemented RBNotifyException as framework of notification/logging 3073 a reasonable message with backtrace for exception. 3074 30752007-03-01 Laurent Sansonetti <lsansonetti@apple.com> 3076 3077 * framework/src/ruby/osx/objc/oc_import.rb, 3078 tests/tc_ovmix.rb: 3079 Fixed direct method override feature for Ruby > 1.8.2 and < 1.8.5. 3080 3081 * framework/src/ruby/osx/objc/oc_import.rb: 3082 Reverted change introduced by r1601 as it breaks the direct method override 3083 feature. 3084 3085 * framework/src/objc/RBRuntime.m: 3086 Only log if $DEBUG is true. 3087 3088 * framework/src/ruby/osx/objc/oc_attachments.rb, 3089 framework/src/ruby/osx/objc/oc_wrapper.rb, 3090 framework/src/ruby/osx/objc/oc_attachments_appkit.rb, 3091 tests/tc_attachments.rb, 3092 tests/tc_wrapper.rb: 3093 - Removed old methods (to_a, to_f and to_i) in oc_wrapper ; 3094 - Refactored attachments to add methods directly to the Objective-C 3095 class and not using modules anymore ; 3096 - Fixed NSEnumerator#to_a ; 3097 - Updated test cases. 3098 30992007-03-01 Fujimoto Hisa <hisa@fobj.com> 3100 3101 * framework/src/objc/RBRuntime.m, 3102 framework/src/objc/mdl_bundle_support.m, 3103 framework/src/ruby/osx/objc/oc_bundle_support.rb: 3104 Ensured that initialization was not executed twice or more per one 3105 process. Better exception handling of Ruby program in 3106 initialization API. 3107 31082007-02-28 Laurent Sansonetti <lsansonetti@apple.com> 3109 3110 * framework/tool/gen_bridge_metadata.rb: 3111 Added preliminary support for 64-bit encodings. 3112 3113 * framework/src/ruby/osx/objc/oc_wrapper.rb: 3114 Work around a bug when #method_missing is called when trying to call an 3115 existing Ruby private method. Make sure we raise a MethodError exception 3116 instead. 3117 3118 * framework/bridge-support-exceptions/AddressBook.xml, 3119 framework/post-config.rb, 3120 framework/tool/gen_bridge_metadata.rb: 3121 - Do not explicitly specify the ObjC language when calling cpp(1) ; 3122 - Override CFTypeRef and AddressBook's ABRecordRef types with '@' ; 3123 - Misc fixes in the generator. 3124 31252007-02-28 Fujimoto Hisa <hisa@fobj.com> 3126 3127 * framework/src/ruby/osx/objc/oc_import.rb: 3128 allowed to give a block to objc_method for implementation of the 3129 method. added def_objc_method. 3130 31312007-02-28 kimura wataru <kimuraw@i.nifty.jp> 3132 3133 * framework/src/ruby/osx/objc/oc_import.rb: 3134 ns_override should not invoke for Objective-C classes. 3135 31362007-02-27 Laurent Sansonetti <lsansonetti@apple.com> 3137 3138 * framework/bridge-support-exceptions/OpenGL.xml, 3139 framework/tool/gen_bridge_metadata.rb: 3140 Fix the CGLContextObj type, this fixes the crasher in some OpenGL samples. 3141 3142 * framework/bridge-support-exceptions/CoreGraphics.xml, 3143 framework/src/objc/BridgeSupport.gperf, 3144 framework/src/objc/BridgeSupportLexer.h, 3145 framework/src/objc/BridgeSupport.m, 3146 framework/tool/gen_bridge_metadata.rb: 3147 Added function aliasing support, make sure the __CF* inline functions are 3148 still exposed. 3149 31502007-02-27 Fujimoto Hisa <hisa@fobj.com> 3151 3152 * sample/CocoaRepl/ReplController.rb: 3153 fixed a bug missing ReplController. 3154 31552007-02-26 Laurent Sansonetti <lsansonetti@apple.com> 3156 3157 * framework/src/objc/mdl_objwrapper.m, 3158 framework/src/objc/ocdata_conv.m, 3159 framework/src/objc/OverrideMixin.m: 3160 Fixed memory leaks in Ruby <-> ObjC messaging. 3161 3162 * framework/src/objc/cls_objcid.m: 3163 Fixed ObjCID#inspect. 3164 31652007-02-26 Fujimoto Hisa <hisa@fobj.com> 3166 3167 * sample/CocoaRepl: 3168 added example of read-eval-print loop application using 3169 RBApplicationInit. 3170 3171 * framework/src/objc/RBRuntime.h, 3172 framework/src/objc/RBRuntime.m, 3173 framework/src/objc/internal_macros.h, 3174 framework/src/objc/RubyCocoa.h, 3175 framework/src/objc/mdl_bundle_support.h, 3176 framework/src/objc/mdl_bundle_support.m, 3177 framework/src/ruby/osx/objc/oc_bundle_support.rb 3178 sample/RubyAnywhere/RubyAnywhereLoader.m, 3179 sample/VPRubyPluginEnabler/VPRubyPluginEnabler.m: 3180 implemented the API candidate for release 1.0. added 3181 RBApplicationInit and modified RBBundleInit. 3182 31832007-02-24 Fujimoto Hisa <hisa@fobj.com> 3184 3185 * framework/src/objc/RBObject.m, framework/src/objc/RBRuntime.m, framework/src/objc/internal_macros.h: 3186 called Init_stack in RBObject#rbobjRespondsToSelector, when 3187 initialized using RBBundleInit and FREQUENTLY_INIT_STACK_FLAG is 3188 flagged. added (secret) api RBBundleInit2 to specify the 3189 frequently_init_stack_flag. 3190 3191 * framework/src/objc/mdl_bundle_support.m, framework/src/objc/RBRuntime.m: 3192 acceptted nil for the 2nd argument, which type is Class, of 3193 RBBundleInit. it means using [NSBundle mainBundle] instead of 3194 bundleForClass for looking up the bundle related with the 2nd 3195 argument. So, it's able to initialize an app using 3196 RBBundleInit (or RBBundleInit2). it's an alternative way of using 3197 RBApplicationMain. 3198 3199 * cls_objcptr.m, cls_objcptr.h: 3200 modified type of the encoding field of struct _objcptr_data as const. 3201 32022007-02-22 kimura wataru <kimuraw@i.nifty.jp> 3203 3204 * framework/src/objc/ocdata_conv.h, 3205 framework/src/objc/ocdata_conv.m: 3206 - remove unused function rbobj_to_nsselstr(). 3207 3208 * framework/src/objc/ocdata_conv.m: 3209 - fix: break argument in rbobj_to_cselstr() when the argument is an 3210 instance of String. 3211 32122007-02-22 Laurent Sansonetti <lsansonetti@apple.com> 3213 3214 * framework/src/objc/ocdata_conv.m, 3215 framework/src/objc/BridgeSupport.h, 3216 framework/src/objc/BridgeSupport.m, 3217 tests/tc_objcptr.rb: 3218 Now converting Ruby arrays to C-like arraysfor arguments of type 'in' that 3219 represent an array of a variable length. Added a test case. 3220 3221 * framework/src/objc/BridgeSupport.m: 3222 Better type modifier analysis. 3223 3224 * framework/bridge-support-exceptions/OpenGL.xml: 3225 Expose missing opaque types. 3226 3227 * framework/bridge-support-exceptions/CoreGraphics.xml: 3228 Added missing exception data. 3229 3230 * framework/bridge-support-exceptions/CoreGraphics.xml, 3231 framework/src/objc/BridgeSupport.h, 3232 framework/src/objc/BridgeSupport.m, 3233 framework/tool/gen_bridge_metadata.rb, 3234 tests/tc_types.rb: 3235 - Added possibility to ignore enumerations ; 3236 - Mark CoreGraphics' kCGDirectMainDisplay as ignored ; 3237 - Added a test case. 3238 3239 * framework/bridge-support-exceptions/AppKit.xml, 3240 framework/tool/gen_bridge_metadata.rb: 3241 - Discover more numeric #define constants ; 3242 - Describes the NSColorSpace and NSWindow methods dealing with opaque types 3243 and do not ignore them anymore ; 3244 - Skip all symbols prefixed by '_' ; 3245 - Mark boolean method arguments. 3246 3247 * framework/tool/verify_bridge_metadata.rb, 3248 framework/tool/verify_bridge_metadata-old.rb: 3249 - Renamed previous verifier as -old ; 3250 - Added a new version of the verifier, based on the intermediate Ruby files 3251 generated by gen_bridge_doc. 3252 32532007-02-21 Laurent Sansonetti <lsansonetti@apple.com> 3254 3255 * framework/tool/gen_bridge_doc/lib/lib/class_def.rb, 3256 framework/tool/gen_bridge_doc/lib/lib/function_def.rb: 3257 - Define module functions properly ; 3258 - Do not define fake modules for functions, protocols and additions. 3259 3260 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3261 framework/tool/gen_bridge_doc/lib/lib/constant_def.rb: 3262 Do not show duplicate constants. 3263 3264 * framework/tool/gen_bridge_doc/lib/lib/method_def.rb: 3265 Make sure we don't generate arguments with upcase names. 3266 3267 * framework/tool/gen_bridge_doc/lib/lib/constant_def.rb: 3268 Do not reveal the constant values and use nil instead. 3269 3270 * framework/tool/gen_bridge_doc/lib/lib/function_def.rb: 3271 - Fixed the function arguments parsing ; 3272 - Make sure we don't generate arguments with upcase names ; 3273 - Make sure we don't generate arguments with names suffixed by [] ; 3274 - Do not use '...' but '*args' for argument names. 3275 3276 * pre-config.rb: 3277 When using /usr/lib/libffi.a, pass -I/usr/include/ffi to the compiler. 3278 3279 * framework/src/objc/ocdata_conv.m, 3280 framework/src/objc/cls_objcptr.h, 3281 framework/src/objc/cls_objcptr.m, 3282 tests/tc_objcptr.rb: 3283 Added the possibility to retrieve components from an ObjCPtr instance 3284 giving an index. This works only for ObjCPtr objects returned by RubyCocoa 3285 and the user is responsible to pass the right index value, otherwise it may 3286 crash the program. Added tests cases. 3287 32882007-02-20 Fujimoto Hisa <hisa@fobj.com> 3289 3290 * framework/src/objc/RBRuntime.m: 3291 removed Init_stack in RBBundleInit, because it's already called in 3292 the ruby_init. 3293 3294 * framework/src/ruby/osx/objc/oc_import.rb: 3295 replaced some arguments of the class_eval(module_eval) as a block 3296 instead of a string if it's able. 3297 3298 * sample/VPRubyPluginEnabler: 3299 aware of the standard user's "Script PlugIns" folder for ruby 3300 script. implemented "Run Page as Ruby Plugin" and "Save Page as 3301 Ruby Plugin..." command same as Lua version. 3302 33032007-02-20 Laurent Sansonetti <lsansonetti@apple.com> 3304 3305 * framework/tool/rb_nibtool.rb: 3306 The --plist option doesn't take an argument anymore and dumps the plist 3307 on the standard output. 3308 3309 * framework/src/ruby/osx/objc/oc_import.rb: 3310 Make sure to ignore classes that start with a lower character. Normally 3311 Ruby forbids this but some SWIG-based extensions have such class names. 3312 Thanks to Vincent Isambart. 3313 3314 * install.rb: 3315 Better (complete) clean task. 3316 33172007-02-19 Laurent Sansonetti <lsansonetti@apple.com> 3318 3319 * framework/bridge-support-exceptions/CoreFoundation.xml, 3320 framework/src/objc/mdl_osxobjc.h, 3321 framework/src/objc/mdl_osxobjc.m, 3322 framework/src/objc/ocdata_conv.m, 3323 framework/src/objc/BridgeSupport.h, 3324 framework/src/objc/cls_objcid.h, 3325 framework/src/objc/BridgeSupport.m, 3326 framework/src/objc/cls_objcid.m, 3327 framework/tool/gen_bridge_metadata.rb, 3328 tests/tc_types.rb, 3329 tests/objc_test.m: 3330 Added support for magic-cookie constants (kCFAllocatorUseContext). These 3331 constants are marked in the bridge support files. Quick refactoring on some 3332 parts of the code. Added test cases. 3333 33342007-02-18 Laurent Sansonetti <lsansonetti@apple.com> 3335 3336 * framework/src/ruby/osx/objc/oc_import.rb, 3337 tests/tc_bs.rb: 3338 Better fix for last fix. Added a test case. 3339 33402007-02-18 Fujimoto Hisa <hisa@fobj.com> 3341 3342 * sample/VPRubyPluginEnabler: 3343 use functions/constans (e.g. NSRunAlertPanel) in sample scripts. 3344 3345 * sample/Fortune.wdgt/SimplePlugin/MyPluginClass.rb: 3346 added require_framework 'WebKit' to make sure bridge support files 3347 are loaded. 3348 3349 * framework/src/ruby/osx/objc/oc_import.rb: 3350 require_framework & framework_loaded? make sure that bridge 3351 support files are loaded even if the framework is loaded by 3352 outside of rubycocoa (e.g. host application of bundle) 3353 33542007-02-15 Laurent Sansonetti <lsansonetti@apple.com> 3355 3356 * framework/src/objc/BridgeSupport.m: 3357 Do not access ruby_frame->last_func directly. 3358 33592007-02-15 Fujimoto Hisa <hisa@fobj.com> 3360 3361 * framework/post-config.rb: 3362 built a bridge support dylib file as universal binary when the 3363 build-universal option is specified. 3364 3365 * framework/src/objc/objc_compat.h: 3366 added compat macros for class_getSuperclass, 3367 method_getName. enclosed macro variables with parentheses to avoid 3368 a problem by implicit priority. 3369 3370 * framework/src/objc/BridgeSupport.m, framework/src/objc/mdl_bundle_support.m: 3371 included objc_compat.h. 3372 33732007-02-14 Laurent Sansonetti <lsansonetti@apple.com> 3374 3375 * sample/Fortune.wdgt/Info.plist, 3376 sample/Fortune.wdgt/SimplePlugin/Info.plist: 3377 Fixed incorrect CFBundleShortVersionString, added missing 3378 CFBundleDevelopmentRegion. 3379 3380 * framework/RubyCocoa.xcodeproj/project.pbxproj, 3381 framework/src/objc/mdl_bundle_support.m, 3382 framework/src/objc/mdl_objwrapper.m, 3383 framework/src/objc/RBClassUtils.m, 3384 framework/src/objc/objc_compat.h, 3385 framework/src/objc/OverrideMixin.h, 3386 framework/src/objc/OverrideMixin.m, 3387 framework/src/objc/BridgeSupport.m: 3388 Ported to the Objective-C 2.0 runtime, keeping compatibility with the previous 3389 runtime. 3390 3391 * framework/tool/rb_nibtool.rb: 3392 Added Ruby nibtool utility, by Chris Mcgrath, slightly modified to allow to 3393 dump the nib property list. 3394 3395 * framework/tool/gen_bridge_metadata.rb: 3396 - Honors the CFLAGS environment variable when generating the dylib ; 3397 - Generate the dylib with appropriate current and compatibility version 3398 numbers. 3399 34002007-02-14 Fujimoto Hisa <hisa@fobj.com> 3401 3402 * sample/Fortune.wdgt: 3403 added an example of Dashboard widget. 3404 3405 * framework/src/objc/mdl_bundle_support.m: 3406 replaced rbobj_get_ocid with rbobj_to_nsobj. 3407 3408 * framework/src/ruby/osx/objc/oc_bundle_support.rb: 3409 inserted ad-hoc magic codes (just calling OSX.NSClassFromString) 3410 around the block call in the init_for_bundle, to suppress a bus 3411 error. 3412 3413 * framework/src/ruby/osx/objc/oc_import.rb: 3414 add `:selector' into the OCTYPES. 3415 34162007-02-13 Laurent Sansonetti <lsansonetti@apple.com> 3417 3418 * sample/RubyAnywhere/Info.plist, 3419 sample/VPRubyPluginEnabler/Info.plist, 3420 sample/ViewModelDemo/English.lproj/InfoPlist.strings: 3421 Fixed inappropriate CFBundleShortVersionString, malformed CFBundleIdentifier 3422 and missing CFBundleShortVersionString. 3423 3424 * framework/tool/gen_bridge_metadata.rb, 3425 framework/bridge-support-exceptions, 3426 framework/src/objc/BridgeSupport.m: 3427 - New iteration on the metadata format ; 3428 - Fixed a bug when retrieving extern definitions ; 3429 - Fixed a bug when getting the value of negative enumerations. 3430 34312007-02-13 Fujimoto Hisa <hisa@fobj.com> 3432 3433 * merged the bundle-support. 3434 3435 * sample/VPRubyPluginEnabler: 3436 added VoodooPad plugin convetions. the VPRubyScript#vp_spec is 3437 configuration for menu item. the VPRubyScript#vp_action is a 3438 definition of a script procedure. the action is evaluated when an 3439 user selects the menu item. so the script is able to modify 3440 without re-launch the app. (2007-02-10) 3441 3442 * framework/src/objc/RBRuntime.m: 3443 fixed to check the result of bundle_support_load by 3444 rb_obj_is_kind_of instead of rb_obj_is_instance_of. (2007-02-10) 3445 3446 * sample/VPRubyPluginEnabler: 3447 VoodooPad plugin example works good. (2007-02-09) 3448 3449 * framework/src/ruby/osx/objc/oc_bundle_support.rb, 3450 framework/src/ruby/osx/objc/oc_import.rb, 3451 framework/src/objc/mdl_bundle_support.m: 3452 moved the implementation of method swizzling for 3453 NSBundle.bundleForClass into Objective-C from Ruby 3454 side. (2007-02-09) 3455 3456 * framework/src/ruby/osx/objc/oc_bundle_support.rb, 3457 framework/src/ruby/osx/objc/oc_import.rb: 3458 fixed to avoid a bus error by the adhoc way, inserted 3459 NSClassFromString without mean. (2007-02-09) 3460 3461 * framework/src/ruby/osx/objc/oc_bundle_support.rb, 3462 framework/src/objc/mdl_bundle_support.h, 3463 framework/src/objc/mdl_bundle_support.m, 3464 framework/src/objc/RBRuntime.m, 3465 framework/RubyCocoa.xcodeproj/project.pbxproj: 3466 primitive/core part of Bundle Support implementation move to 3467 Objecive-C from Ruby. Addtional part is still in 3468 Ruby. (2007-02-09) 3469 3470 * framework/src/objc/RBRuntime.h, framework/src/objc/RBRuntime.m: 3471 changed some RBBundleInit API. Objecive-C class defiend by ruby 3472 program (1st argument) bound with the bundle related with 2nd 3473 argument class. New 3rd argument can use for passing some data 3474 from objective-c world to ruby world. and then, the result means 3475 success when YES and failed when NO. (2007-02-09) 3476 3477 * framework/src/ruby/osx/objc/oc_bundle_support.rb: 3478 removed init_bundle_for_class, and added init_for_bundle ... 3479 OSX.init_for_bundle do 3480 |bdl, param, log| 3481 # bdl - the bundle related with the 2nd argument of RBBundleInit 3482 # param - the 3rd argument of RBBundleInit as optional data 3483 # log - logger for this block 3484 log.info("param=%p", param.to_s) 3485 require 'YourObjcClass' # the class bound with the bdl instead 3486 # of the mainbundle 3487 ... 3488 end 3489 3490 * sample/RubyAnywhere, sample/VPRubyPluginEnabler: 3491 modified for current bundle support spec. (2007-02-09) 3492 3493 * framework/src/ruby/osx/objc/oc_bundle_support.rb: 3494 checked existence of module variables in BundleSupport before I 3495 define it. (2007-02-08) 3496 3497 * framework/src/ruby/osx/objc/oc_bundle_support.rb, sample/VPRubyPluginEnabler/vpr_init.rb, sample/RubyAnywhere/ruby_anywhere_init.rb: 3498 implement the init_bundle_for_class. usage is 3499 OSX.init_bundle_for_class(BUNDLE_PRINCIPLE_CLASS) 3500 { ... define classes in the bundle context ... } 3501 3502 * bundle-support branch - temporary branch (from apple-unstable) 3503 for *EXPERIMENT* of bundle/plugin support. Maybe these API/SPEC is 3504 dynamically changed for a while. (2007-02-07) 3505 3506 * framework/RubyCocoa.xcodeproj/project.pbxproj, 3507 framework/src/ruby/osx/objc/oc_bundle_support.rb, 3508 framework/src/ruby/osx/objc/oc_all.rb 3509 framework/src/ruby/osx/objc/oc_import.rb: 3510 temporary implementation for bundle/plugin support by ruby 3511 program. (2007-02-07) 3512 35132007-02-12 kimura wataru <kimuraw@i.nifty.jp> 3514 3515 * framework/pre-install.rb: 3516 Fix the .{bridgesupport|dylib} files are not installed. 3517 35182007-02-10 Laurent Sansonetti <lsansonetti@apple.com> 3519 3520 * framework/pre-install.rb: 3521 Install the .{bridgesupport|dylib} files and not .xml files anymore. 3522 35232007-02-09 Laurent Sansonetti <lsansonetti@apple.com> 3524 3525 * framework/src/ruby/osx/objc/oc_import.rb, 3526 framework/src/objc/libffi.m, 3527 framework/src/objc/BridgeSupport.m: 3528 - When looking for metadata files within frameworks bundles, look at the 3529 Resources/BridgeSupport directory ; 3530 - Fixed a dispatching issue about omitted pointers and CFType-like args. 3531 3532 * framework/tool/gen_bridge_metadata.rb: 3533 - Now working when passing a framework path with spaces in it ; 3534 - Don't clash with MyClass when generating the dummy executables, as it could 3535 be used in the target code ; 3536 - When passing a framework path, make sure we use the dir name to set the 3537 appropriate DYLD environment variable when running the dummy executables. 3538 3539 * framework/src/objc/BridgeSupport.m, 3540 framework/src/ruby/osx/objc/oc_import.rb, 3541 framework/post-config.rb: 3542 - Not using the .xml extension for bridge support files anymore. Using 3543 .bridgesupport instead ; 3544 - Not looking for BridgeSupport.xml within the frameworks bundles anymore. 3545 Looking for TheFrameworkName.bridgesupport instead. 3546 3547 * framework/tool/gen_bridge_metadata.rb: 3548 Better support for private headers. 3549 35502007-02-08 Laurent Sansonetti <lsansonetti@apple.com> 3551 3552 * framework/src/objc/mdl_objwrapper.m: 3553 Make sure to return nil when easy dispatching void methods. 3554 3555 * framework/bridge-support-exceptions/AppKit.xml, 3556 framework/src/objc/BridgeSupport.m, 3557 framework/post-config.rb, 3558 framework/tool/gen_bridge_metadata.rb, 3559 tests/tc_wrapper.rb: 3560 Inline functions are now described in the metadata files and a separate 3561 .dylib file that contains the exported calls is generated and installed 3562 at the same location than the XML files. Added a test case. 3563 35642007-02-06 Laurent Sansonetti <lsansonetti@apple.com> 3565 3566 * framework/tool/gen_bridge_metadata.rb: 3567 Support for private frameworks/headers. 3568 3569 * framework/src/objc/BridgeSupport.m: 3570 Don't try to retain nil objects. 3571 35722007-02-05 Fujimoto Hisa <hisa@fobj.com> 3573 3574 * framework/src/objc/RBSlaveObject.m, 3575 framework/src/objc/RBObject.m, 3576 framework/src/objc/libffi.m, 3577 framework/src/objc/RBRuntime.h, 3578 framework/src/objc/RBRuntime.m, 3579 framework/src/objc/mdl_objwrapper.m, 3580 framework/src/objc/RBClassUtils.m, 3581 framework/src/objc/ocdata_conv.m, 3582 framework/src/objc/OverrideMixin.m, 3583 framework/src/objc/BridgeSupport.m, 3584 framework/src/objc/cls_objcid.m, 3585 framework/src/objc/internal_macros.h: 3586 moved some macros (for debugging) to internal_macros.h from 3587 RBRuntime.h. 3588 3589 * framework/src/objc/RBRuntime.h, framework/src/objc/RBRuntime.m: 3590 modified an argument type of RBBundleInit to specify the current Bundle. 3591 3592 * framework/src/objc/RBClassUtils.m: 3593 modified class_map_dic_add, and created an internal class named 3594 RBClassMapInfo. it's to keep a bundle object which is related 3595 with a class written by ruby (not yet implement). 3596 35972007-02-04 Eloy Duran <eloy.de.enige@gmail.com> 3598 3599 * framework/tool/gen_bridge_doc/lib/lib/class_def.rb: 3600 Removed the extra framework namespaces from the class definition. 3601 36022007-02-01 Laurent Sansonetti <lsansonetti@apple.com> 3603 3604 * sample/ViewModelDemo: 3605 Added new sample code contributed by Jim Getzen. 3606 36072007-02-02 kimura wataru <kimuraw@i.nifty.jp> 3608 3609 * template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/AppDelegate.rb: 3610 fix a typo in AppDelegate#saveAction. 3611 36122007-02-01 Fujimoto Hisa <hisa@fobj.com> 3613 3614 * framework/src/objc/RBRuntime.m: 3615 support multiple calling RBBundleInit() in a 3616 process. load_path_unshift() checked including the specified path. 3617 36182007-01-31 Eloy Duran <eloy.de.enige@gmail.com> 3619 3620 * framework/tool/gen_bridge_doc/lib/PDFKit/PDFSelection.rb, 3621 framework/tool/gen_bridge_doc/lib/PDFKit/PDFView.rb, 3622 framework/tool/gen_bridge_doc/lib/PDFKit/PDFPage.rb, 3623 framework/tool/gen_bridge_doc/lib/PDFKit/PDFDocument.rb, 3624 framework/tool/gen_bridge_doc/rdocify_framework.rb, 3625 framework/tool/gen_bridge_doc.rb: 3626 - Added support for PDFKit. 3627 36282007-01-31 Eloy Duran <eloy.de.enige@gmail.com> 3629 3630 * framework/tool/gen_bridge_doc/lib/QuartzCore/CIImage.rb, 3631 framework/tool/gen_bridge_doc/lib/QuartzCore/CIVector.rb, 3632 framework/tool/gen_bridge_doc/lib/QuartzCore/CISampler.rb, 3633 framework/tool/gen_bridge_doc/lib/QuartzCore/CIContext.rb, 3634 framework/tool/gen_bridge_doc/lib/QuartzCore/CIFilter.rb, 3635 framework/tool/gen_bridge_doc/lib/QuartzCore/CIFilterShape.rb, 3636 framework/tool/gen_bridge_doc/lib/QuartzCore/CIColor.rb, 3637 framework/tool/gen_bridge_doc/lib/QuartzCore/CIImageProviderProtocol.rb, 3638 framework/tool/gen_bridge_doc/lib/lib/method_def.rb: 3639 - Added support for the QuartzCore framework. 3640 36412007-01-31 Eloy Duran <eloy.de.enige@gmail.com> 3642 3643 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3644 framework/tool/gen_bridge_doc/lib/InstantMessage/IMService.rb, 3645 framework/tool/gen_bridge_doc.rb: 3646 - Added support for the InstantMessage framework. 3647 36482007-01-31 Eloy Duran <eloy.de.enige@gmail.com> 3649 3650 * framework/tool/gen_bridge_doc/lib/AddressBook/ABSearchElement.rb, 3651 framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3652 framework/tool/gen_bridge_doc/lib/lib/method_def.rb, 3653 framework/tool/gen_bridge_doc/lib/lib/class_def.rb, 3654 framework/tool/gen_bridge_doc/lib/lib/constant_def.rb, 3655 framework/tool/gen_bridge_doc/rdocify_framework.rb, 3656 framework/tool/gen_bridge_doc.rb: 3657 - Added support for the AddressBook framework ; 3658 - Added a check to see if there was any relevant info 3659 in a reference file before writing the file to disk ; 3660 - Added a description to the informal protocols 3661 and changed them from a class to a module. 3662 3663 * ChangeLog: 3664 Fixed indentation in last ChangeLog entry. 3665 36662007-01-31 kimura wataru <kimuraw@i.nifty.jp> 3667 3668 * framework/src/objc/mdl_objwrapper.m, 3669 framework/src/ruby/osx/objc/oc_import.rb, 3670 tests/tc_wrapper.rb: 3671 new methods objc_alias_method, objc_alias_class_method at OCClsWrapper. 3672 these methods enables to alias objc method of Cococa classes. 3673 36742007-01-30 Eloy Duran <eloy.de.enige@gmail.com> 3675 3676 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3677 framework/tool/gen_bridge_doc/lib/lib/class_def.rb, 3678 framework/tool/gen_bridge_doc/rdocify_framework.rb: 3679 - Added support for informal protocols. 3680 36812007-01-30 Eloy Duran <eloy.de.enige@gmail.com> 3682 3683 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3684 framework/tool/gen_bridge_doc/lib/Foundation/HTMLParserOverrides.rb, 3685 framework/tool/gen_bridge_doc/lib/lib/method_def.rb, 3686 framework/tool/gen_bridge_doc/lib/lib/class_additions.rb, 3687 framework/tool/gen_bridge_doc/lib/lib/class_def.rb, 3688 framework/tool/gen_bridge_doc/lib/lib/clean_up.rb, 3689 framework/tool/gen_bridge_doc/lib/lib/extras.rb, 3690 framework/tool/gen_bridge_doc/lib/lib/constant_def.rb, 3691 framework/tool/gen_bridge_doc/lib/lib/hpricot_proxy.rb, 3692 framework/tool/gen_bridge_doc/rdocify_framework.rb: 3693 - Improved constants parsing ; 3694 - Added support for framework constants ; 3695 - Added override for the foundation constants ; 3696 - Added fix for local vars that are named class, they are now renamed to klass. 3697 36982007-01-26 Eloy Duran <eloy.de.enige@gmail.com> 3699 3700 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3701 framework/tool/gen_bridge_doc/lib/lib/method_def.rb, 3702 framework/tool/gen_bridge_doc/lib/lib/datatype_def.rb, 3703 framework/tool/gen_bridge_doc/lib/lib/hpricot_proxy.rb, 3704 framework/tool/gen_bridge_doc/rdocify_framework.rb: 3705 - Fixed some opaque methods in the wrapped structures that were showing up where they shouldn't ; 3706 - Fixed some little bugs. 3707 37082007-01-26 Eloy Duran <eloy.de.enige@gmail.com> 3709 3710 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3711 framework/tool/gen_bridge_doc/lib/lib/method_def.rb, 3712 framework/tool/gen_bridge_doc/lib/lib/class_additions.rb, 3713 framework/tool/gen_bridge_doc/lib/lib/class_def.rb, 3714 framework/tool/gen_bridge_doc/lib/lib/function_def.rb, 3715 framework/tool/gen_bridge_doc/lib/lib/notification_def.rb, 3716 framework/tool/gen_bridge_doc/lib/lib/clean_up.rb, 3717 framework/tool/gen_bridge_doc/lib/lib/constant_def.rb, 3718 framework/tool/gen_bridge_doc/lib/lib/datatype_def.rb, 3719 framework/tool/gen_bridge_doc/lib/lib/hpricot_proxy.rb, 3720 framework/tool/gen_bridge_doc/rdocify_framework.rb: 3721 - Added support for ruby wrapped structures ; 3722 - Split up huge file into several maintainable files. 3723 37242007-01-26 Laurent Sansonetti <lsansonetti@apple.com> 3725 3726 * framework/src/objc/BridgeSupport.h, 3727 framework/src/objc/BridgeSupport.m, 3728 tests/tc_types.rb: 3729 Added OSX::Boxed.opaque?, a convenience method to determine if a given wrapped 3730 type has been declared as opaque in the metadata file. 3731 3732 * framework/src/objc/BridgeSupport.m, 3733 tests/tc_types.rb: 3734 Added OSX::Boxed.fields, a convenience method to get the list of fields in a 3735 given boxed class (only works on structures). 3736 37372007-01-26 Eloy Duran <eloy.de.enige@gmail.com> 3738 3739 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3740 framework/tool/gen_bridge_doc/lib/Foundation/FoundationFunctions.rb, 3741 framework/tool/gen_bridge_doc/lib/ApplicationKit/ApplicationKitFunctions.rb, 3742 framework/tool/gen_bridge_doc/rdocify_framework.rb, 3743 framework/tool/gen_bridge_doc.rb: 3744 - Added support for functions ; 3745 - Added overrides for functions in AppKit & Foundation ; 3746 - Fixed objc_method to objc_send ; 3747 - Every framework now gets put in it's own module, this extra namespace is for easier doc browsing. 3748 37492007-01-26 Fujimoto Hisa <hisa@fobj.com> 3750 3751 * framework/src/ruby/osx/objc/oc_import.rb: 3752 deperecated ns_outlet(s). use ib_outlet(s) instead. 3753 3754 * framework/src/ruby/osx/objc/oc_import.rb, tests/tc_subclass.rb: 3755 added ib_action as a declaration for a IBAction method. if given a 3756 block, it mean the implementation of the action. 3757 thanks to Chris McGrath! 3758 37592007-01-24 Laurent Sansonetti <lsansonetti@apple.com> 3760 3761 * sample/PathDemo: 3762 Full (pure Ruby) printing capabilities. 3763 3764 * framework/src/objc/libffi.h, 3765 framework/src/objc/RBObject.m, 3766 framework/src/objc/libffi.m, 3767 framework/src/objc/mdl_osxobjc.m, 3768 framework/src/objc/mdl_objwrapper.m, 3769 framework/src/objc/RBClassUtils.m, 3770 framework/src/objc/ocdata_conv.h, 3771 framework/src/objc/ocdata_conv.m, 3772 framework/src/objc/BridgeSupport.h, 3773 framework/src/objc/OverrideMixin.m, 3774 framework/src/objc/BridgeSupport.m, 3775 tests/tc_passbyref.rb, 3776 tests/tc_ovmix.rb, 3777 tests/tc_subclass.rb, 3778 tests/objc_test.m: 3779 - Refactored the encoding-based data conversion routines ; 3780 - Added support for pointers to boxed types (from ObjC to Ruby) ; 3781 - Updated test cases. 3782 3783 * sample/PathDemo/DemoView.rb, 3784 framework/src/objc/cls_objcid.m: 3785 DemoView has now printing capabilities. Make sure #release does 3786 tell the Ruby proxy object to not release the ObjC object a 3787 second time. 3788 3789 * framework/tool/gen_bridge_metadata.rb: 3790 Discover more constants. 3791 3792 * framework/src/ruby/osx/objc/oc_exception.rb, 3793 framework/src/objc/mdl_osxobjc.m, 3794 framework/src/objc/ocexception.m: 3795 Improved automatic class constant retrieval, fixed a bug in the 3796 OCException class (making sure #userInfo is binded to the right 3797 instance variable). 3798 37992007-01-23 Laurent Sansonetti <lsansonetti@apple.com> 3800 3801 * misc/libffi/Makefile.rubycocoa, 3802 framework/RubyCocoa.xcodeproj/project.pbxproj: 3803 Build everything with -O3. This is to make sure the FFI-generated 3804 closures are callable from the generated objc_msgSent_stret calls 3805 by GCC. Otherwise closures return C structure may cause memory 3806 corruption. Thanks a lot to Ronald Oussoren! 3807 38082007-01-23 Fujimoto Hisa <hisa@fobj.com> 3809 3810 * framework/src/objc/RBRuntime.h, framework/src/objc/RBRuntime.m: 3811 Added RBBundleInit new (tentative) API to develop a 3812 Bundle. This is a fairly experimental implementation currently. 3813 Refactored some static functions for filepath management. It 3814 should refactor more later about malloc/free issue. (thanks to 3815 Kouhei Sutou for RBBundleInit) 3816 38172007-01-22 Laurent Sansonetti <lsansonetti@apple.com> 3818 3819 * sample/PathDemo: 3820 Partial printing support (work in progress, still not functional). 3821 3822 * framework/src/objc/RBObject.h, 3823 framework/src/objc/RBObject.m, 3824 framework/src/objc/ocdata_conv.m, 3825 framework/src/objc/OverrideMixin.m, 3826 tests/tc_subclass.rb, 3827 tests/objc_test.m: 3828 Partial fix for the Cocoa printing bug. 3829 38302007-01-22 Fujimoto Hisa <hisa@fobj.com> 3831 3832 * framework/pre-doc.rb, 3833 framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3834 framework/tool/gen_bridge_doc/rdocify_framework.rb, 3835 framework/tool/gen_bridge_doc.rb: 3836 defined three functional methods (command, ruby, rdoc) as the 3837 wrapper for the system command with checking result. These methods 3838 raise RuntimeError when something error. try loading the 3839 standalone hpricot at first, before try loading the rubygems. 3840 38412007-01-22 Eloy Duran <eloy.de.enige@gmail.com> 3842 3843 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3844 framework/tool/gen_bridge_doc/lib/clean_up.rb: 3845 Extracted the string clean up methods into a separate file, 3846 this to make it easier for others to add the appropriate clean up code. 3847 38482007-01-22 Chris Mcgrath <c_r_mcgrath@yahoo.co.uk> 3849 3850 * framework/src/ruby/osx/objc/oc_import.rb: 3851 Fixed a bug in the direct override code. 3852 38532007-01-22 Eloy Duran <eloy.de.enige@gmail.com> 3854 3855 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb: 3856 fixed some mis-encoded chars. (thanks to Chris Mcgrath) 3857 38582007-01-22 Eloy Duran <eloy.de.enige@gmail.com> 3859 3860 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb: 3861 Modified the way the objc_method style code is layout, 3862 they are now nicely aligned. 3863 38642007-01-21 Eloy Duran <eloy.de.enige@gmail.com> 3865 3866 * pre-install.rb, 3867 framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3868 framework/tool/gen_bridge_doc.rb: 3869 - The RDoc generator now uses the framework in the build dir ; 3870 - Workarounds for bug, that was fixed in the last rev, removed ; 3871 - Check added for the individual html and ri dirs before trying to install them. 3872 38732007-01-21 Laurent Sansonetti <lsansonetti@apple.com> 3874 3875 * framework/src/ruby/osx/objc/oc_import.rb, 3876 framework/src/objc/mdl_objwrapper.m, 3877 tests/tc_wrapper.rb: 3878 Fixed the import of NSProxy-based classes. 3879 38802007-01-21 Eloy Duran <eloy.de.enige@gmail.com> 3881 3882 * framework/tool/gen_bridge_doc.rb: 3883 fixed a bug where gen_bridge_doc.rb would call rdocify_framework.rb 3884 with the ruby interpreter in the user env instead of the one that's used to call gen_bridge_doc.rb. 3885 38862007-01-21 Eloy Duran <eloy.de.enige@gmail.com> 3887 3888 * pre-install.rb, 3889 framework/pre-doc.rb, 3890 framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3891 framework/tool/gen_bridge_doc/rdocify_framework.rb, 3892 framework/tool/gen_bridge_doc.rb, 3893 install.rb: 3894 - Modified rdocify_framework.rb to accept a optional output dir ; 3895 - The install.rb doc phase now creates all the output files in framework/bridge-doc ; 3896 - The install.rb clean phase now also removes the framework/bridge-doc dir ; 3897 - Added workarounds for a bug where trying to get the superclass of a subclass of NSProxy results in a trap. 3898 38992007-01-21 Eloy Duran <eloy.de.enige@gmail.com> 3900 3901 * pre-install.rb: 3902 Fixed a bug in the path to the RI files. 3903 3904 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3905 framework/tool/gen_bridge_doc/lib/Foundation/NSDate.rb, 3906 framework/tool/gen_bridge_doc/lib/Foundation/NSDateFormatter.rb, 3907 framework/tool/gen_bridge_doc/lib/Foundation/NSPortCoder.rb, 3908 framework/tool/gen_bridge_doc/lib/ApplicationKit/NSTableColumn.rb, 3909 framework/tool/gen_bridge_doc/lib/ApplicationKit/NSFont.rb, 3910 framework/tool/gen_bridge_doc.rb: 3911 - Added inheritance support ; 3912 - Added objc_method style definitions to the source view (click on the method itself for a popup) ; 3913 - Modified gen_bridge_doc.rb to accept a output path. 3914 39152007-01-20 Laurent Sansonetti <lsansonetti@apple.com> 3916 3917 * template/**/TemplateInfo.plist: 3918 Converted encoding to UTF-8 and format to XML (from old OpenStep format). 3919 39202007-01-20 Eloy Duran <eloy.de.enige@gmail.com> 3921 3922 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3923 framework/tool/gen_bridge_doc.rb: 3924 Modified the way that the methods in the "See Also" sections are being displayed. 3925 They are now in ruby style, so that RDoc creates links for them. 3926 39272007-01-20 Eloy Duran <eloy.de.enige@gmail.com> 3928 3929 * pre-install.rb: 3930 Modified the install phase to install the RI files 3931 in the right place. (thanks to Norberto Ortigoza) 3932 39332007-01-20 Fujimoto Hisa <hisa@fobj.com> 3934 3935 * framework/src/objc/RBRuntime.m: 3936 fixed memory leak for calling RBApplicationMain more than 3937 once. (thanks Kouhei Sutou for suggestion) 3938 3939 * tests/tc_bs.rb: 3940 Fixed test to spawn Ruby command lines to add option for seeking 3941 library path for ../lib and ../ext/rubycocoa. 3942 39432007-01-19 Eloy Duran <eloy.de.enige@gmail.com> 3944 3945 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3946 framework/tool/gen_bridge_doc/lib/Foundation/NSDate.rb, 3947 framework/tool/gen_bridge_doc/lib/Foundation/NSDateFormatter.rb, 3948 framework/tool/gen_bridge_doc/lib/Foundation/NSPortCoder.rb, 3949 framework/tool/gen_bridge_doc/rdocify_framework.rb, 3950 framework/tool/gen_bridge_doc.rb: 3951 - Enhanced reference html file finder method ; 3952 - Added support for deprecated classes ; 3953 - Added override modules for Foundation: NSDate.rb, NSDateFormatter.rb, NSPortCoder.rb ; 3954 - Added rdoc for: Foundation ; 3955 - Added rdoc for: WebKit ; 3956 - Added rdoc for: CoreData ; 3957 - Added rdoc for: QTKit 3958 39592007-01-19 Laurent Sansonetti <lsansonetti@apple.com> 3960 3961 * pre-install.rb, 3962 framework/pre-doc.rb, 3963 framework/tool/gen_bridge_doc.rb, 3964 install.rb: 3965 - Modified the RDoc generator to generate RI files as well as HTML files ; 3966 - Added a new install.rb task, 'doc', that starts the RDoc generator ; 3967 - Modified the install phase to install the HTML files in the right place. RI files still uninstalled. 3968 3969 * framework/bridge-support-exceptions/CoreGraphics.xml: 3970 Don't try to lookup tollfree-bridged CF classes as it may raise some allocation errors. 3971 3972 * framework/src/ruby/osx/objc/oc_import.rb: 3973 Make sure builtin frameworks can't be required twice. 3974 3975 * framework/src/objc/RBObject.h, 3976 framework/src/objc/RBObject.m, 3977 framework/src/objc/ocdata_conv.m: 3978 Better RBObject retention mechanism. 3979 3980 * framework/src/objc/BridgeSupport.m: 3981 Fixed the messaging of functions with variadic parameters. 3982 39832007-01-19 Fujimoto Hisa <hisa@fobj.com> 3984 3985 * framework/src/ruby/osx/objc/oc_import.rb, 3986 framework/src/ruby/osx/objc/cocoa_macros_appkit.rb, 3987 framework/src/ruby/osx/objc/oc_wrapper.rb: 3988 using the warn as better way instead of sending a message to $stderr. 3989 39902007-01-19 Eloy Duran <eloy.de.enige@gmail.com> 3991 3992 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 3993 framework/tool/gen_bridge_doc/lib/ApplicationKit/NSTableColumn.rb, 3994 framework/tool/gen_bridge_doc/lib/ApplicationKit/NSFont.rb, 3995 framework/tool/gen_bridge_doc/rdocify_framework.rb, 3996 framework/tool/gen_bridge_doc.rb: 3997 - Added support for class additions, they are translated to modules ; 3998 - Added support for parsing override modules ; 3999 - Added some override modules: NSTableColumn.rb & NSFont.rb 4000 Which makes AppKit parse & generate completely! 4001 40022007-01-18 Fujimoto Hisa <hisa@fobj.com> 4003 4004 * framework/src/ruby/osx/objc/oc_import.rb, framework/src/ruby/osx/objc/oc_wrapper.rb: 4005 replace STDERR with $stderr 4006 40072007-01-18 Laurent Sansonetti <lsansonetti@apple.com> 4008 4009 * framework/tool/gen_bridge_metadata.rb: 4010 - Discover more functions ; 4011 - Added the possibility to ignore tollfree bridged CF classes detection ; 4012 - Faster numeric #define lookup. 4013 4014 * framework/src/ruby/osx/objc/oc_import.rb: 4015 Deprecated ns_overrides. 4016 4017 * framework/src/ruby/osx/objc/oc_import.rb, 4018 framework/src/objc/mdl_osxobjc.m, 4019 framework/src/objc/RBClassUtils.h, 4020 tests/tc_ovmix.rb, 4021 tests/objc_test.m: 4022 Added objc_class_method + test cases. 4023 4024 * pre-install.rb, 4025 template/ProjectBuilder/File/Ruby test case class.rb, 4026 template/ProjectBuilder/Target, 4027 template/ProjectBuilder/Target/Unit Test Target.trgttmpl: 4028 Added Xcode unit test templates. 4029 40302007-01-17 Fujimoto Hisa <hisa@fobj.com> 4031 4032 * framework/src/ruby/osx/objc/oc_import.rb: 4033 replaced the name of objc_export with objc_method. objc_export 4034 will be deprecated. it works yet with warning message. 4035 4036 * sample/Scripts/TransparentHello.rb, sample/Scripts/sndplay3.rb: 4037 replaced deprecated symbol/value/... syntax to suppress warning. 4038 40392007-01-17 Eloy Duran <eloy.de.enige@gmail.com> 4040 4041 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb: 4042 Added a section for notifications. 4043 40442007-01-16 Eloy Duran <eloy.de.enige@gmail.com> 4045 4046 * framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 4047 framework/tool/gen_bridge_doc/rdocify_framework.rb: 4048 fixes for Appkit rdoc generator, went up from 107/50 to 140/17 success ratio. 4049 40502007-01-16 Laurent Sansonetti <lsansonetti@apple.com> 4051 4052 * sample/MailDemo: 4053 - Renamed MailBox to Mailbox ; 4054 - Removed a debug statement in the main file. 4055 Thanks to Jean-Pierre. 4056 4057 * framework/src/ruby/osx/objc/oc_import.rb: 4058 Fixed ns_overrides that was broken by previous commit. 4059 4060 * framework/src/objc/ocdata_conv.h: 4061 Fixed definition of _C_CONST for old platforms. 4062 4063 * framework/src/objc/RBObject.m, 4064 framework/src/objc/ocdata_conv.m, 4065 framework/src/objc/OverrideMixin.m: 4066 Now manually decoding methods Objective-C encoding. 4067 4068 * tests/tc_bs.rb: 4069 Fixed test to spawn Ruby command lines to use the source root RubyCocoa. 4070 4071 * framework/src/ruby/osx/objc/oc_import.rb, 4072 framework/src/objc/RBObject.m, 4073 framework/src/objc/mdl_osxobjc.m, 4074 framework/src/objc/OverrideMixin.h, 4075 framework/src/objc/OverrideMixin.m, 4076 tests/tc_ovmix.rb, 4077 tests/tc_subclass.rb, 4078 tests/objc_test.m: 4079 Added support for overriding class methods. Added test cases. 4080 40812007-01-15 Eloy Duran <eloy.de.enige@gmail.com> 4082 4083 * framework/tool/gen_bridge_doc.rb: 4084 Updated this script so that it also accepts the verbose and force flags: -v, -f 4085 40862007-01-15 Eloy Duran <eloy.de.enige@gmail.com> 4087 4088 * framework/tool/gen_bridge_doc.rb, 4089 framework/tool/gen_bridge_doc/lib/cocoa_ref.rb, 4090 framework/tool/gen_bridge_doc/rdocify_framework.rb: 4091 Added the first support for Apple HTML Reference Docs to RDoc generation. 4092 At this moment gen_bridge_doc.rb will only try to parse the AppKit framework. 4093 By default it will not generate any rdoc files for reference files caused errors during parsing. 4094 Once all errors for AppKit have been resolved other frameworks will gradually be added, 4095 until we're on par with the supported frameworks in BridgeSupport. 4096 40972007-01-15 Laurent Sansonetti <lsansonetti@apple.com> 4098 4099 * framework/tool/gen_bridge_metadata.rb: 4100 Discover functions that return ObjC objects that conform to a certain protocol. 4101 4102 * framework/bridge-support-exceptions/Foundation.xml: 4103 Updated to describe functions with pointer-like arguments. 4104 4105 * sample/Spotlight/English.lproj/MainMenu.nib/info.nib, 4106 sample/Spotlight/English.lproj/MainMenu.nib/keyedobjects.nib: 4107 Fixed the UI elements resizable flags and set the text views as not 4108 editable. 4109 4110 * framework/bridge-support-exceptions/Foundation.xml, 4111 framework/src/objc/libffi.h, 4112 framework/src/objc/libffi.m, 4113 framework/src/objc/ocdata_conv.m, 4114 framework/src/objc/OverrideMixin.m, 4115 framework/src/objc/BridgeSupport.m, 4116 framework/tool/gen_bridge_metadata.rb, 4117 tests/tc_types.rb: 4118 - Added support for opaque structures ; 4119 - Added support for _C_ARY_B and _C_BFLD types ; 4120 - Fixed a bug when retrieving the encoding of structure fields ; 4121 - Export NSDecimal as an opaque structure, added test cases. 4122 4123 * tests/*.rb: 4124 - Run make silently ; 4125 - Do not print the test case names unless $VERBOSE is true. 4126 41272007-01-15 Fujimoto Hisa <hisa@fobj.com> 4128 4129 * framework/tool/gen_bridge_metadata.rb: 4130 Fixed a bug that ~/Library/Frameworks in framework_path was invalid. 4131 41322007-01-14 Fujimoto Hisa <hisa@fobj.com> 4133 4134 * framework/src/ruby/osx/objc/oc_wrapper.rb: 4135 assume an explicit predicate if a received message has `?' suffix 4136 and returned value is a integer when OSX.relaxed_syntax. For 4137 using a unsupported framework without metadata quickly. 4138 41392007-01-13 Laurent Sansonetti <lsansonetti@apple.com> 4140 4141 * framework/tool/gen_bridge_metadata.rb, 4142 framework/bridge-support-exceptions/AppKit.xml: 4143 Improved the exceptions template to now mention functions pointer-like 4144 arguments. Added functions pointer-like metadata for AppKit. 4145 4146 * framework/RubyCocoa.xcodeproj/project.pbxproj, 4147 framework/src/ruby/osx/objc/oc_import.rb, 4148 framework/src/objc/libffi.h, 4149 framework/src/objc/RBObject.m, 4150 framework/src/objc/libffi.m, 4151 framework/src/objc/RBRuntime.h, 4152 framework/src/objc/mdl_osxobjc.m, 4153 framework/src/objc/mdl_objwrapper.m, 4154 framework/src/objc/ocexception.h, 4155 framework/src/objc/ocdata_conv.m, 4156 framework/src/objc/ocexception.m, 4157 framework/src/objc/BridgeSupport.h, 4158 framework/src/objc/BridgeSupport.m: 4159 - Added support for functions pointer-like arguments to the bridge ; 4160 - Major refactoring of the libffi dispatching code. 4161 4162 * tests/tc_qtkit.rb, 4163 tests/tc_passbyref.rb: 4164 Updated tests, removed debug log. 4165 41662007-01-12 Fujimoto Hisa <hisa@fobj.com> 4167 4168 * ext/rubycocoa/extconf.rb.in, framework/post-config.rb, framework/src/ruby/osx/objc/oc_import.rb, framework/tool/gen_bridge_metadata.rb, framework/tool/verify_bridge_metadata.rb, metaconfig, pre-config.rb, pre-setup.rb, sample/buildall.rb: 4169 File.exists? will be obsoleted for Ruby 1.9, so replace it as File.exist? 4170 41712007-01-11 Laurent Sansonetti <lsansonetti@apple.com> 4172 4173 * framework/src/objc/BridgeSupport.h, 4174 framework/src/objc/BridgeSupport.m, 4175 framework/tool/gen_bridge_metadata.rb, 4176 tests/tc_types.rb, 4177 tests/objc_test.m, 4178 tests/Makefile: 4179 Better FourCharCode description, added a new test case, removed build warnings 4180 on PPC. 4181 4182 * framework/src/objc/BridgeSupport.m, 4183 framework/tool/gen_bridge_metadata.rb, 4184 tests/tc_types.rb: 4185 Properly describe enumerations with a FourCharCode type value. Added a new 4186 test case. 4187 41882007-01-10 Laurent Sansonetti <lsansonetti@apple.com> 4189 4190 * framework/RubyCocoa.xcodeproj/project.pbxproj, 4191 framework/src/ruby/osx/addressbook.rb, 4192 framework/src/ruby/osx/foundation.rb, 4193 framework/src/ruby/osx/objc/cocoa.rb, 4194 framework/src/ruby/osx/objc/oc_types.rb, 4195 framework/src/ruby/osx/objc/cocoa_macros.rb, 4196 framework/src/ruby/osx/objc/oc_import.rb, 4197 framework/src/ruby/osx/objc/ruby_addition.rb, 4198 framework/src/ruby/osx/objc/oc_attachments.rb, 4199 framework/src/ruby/osx/objc/oc_types_appkit.rb, 4200 framework/src/ruby/osx/objc/cocoa_macros_appkit.rb, 4201 framework/src/ruby/osx/objc/addressbook.rb, 4202 framework/src/ruby/osx/objc/oc_attachments_appkit.rb, 4203 tests/tc_bs.rb, 4204 lib/osx/addressbook.rb, 4205 lib/osx/cocoa.rb, 4206 lib/osx/foundation.rb, 4207 lib/osx/appkit.rb: 4208 - Now RubyCocoa.framework doesn't link against AppKit anymore. Using osx/cocoa 4209 will load AppKit and CoreGraphics dynamically. Using osx/foundation just 4210 link against CoreFoundation and Foundation ; 4211 - Deprecated the osx/addressbook script (now that AddressBook is supported by 4212 a BridgeSupport metadata file) ; 4213 - Added new API, OSX.framework_loaded?, to know if a given framework has been 4214 loaded or not. Added test cases. 4215 4216 * framework/bridge-support-exceptions/*.xml, 4217 framework/src/objc/BridgeSupportLexer.h, 4218 framework/src/objc/BridgeSupport.h, 4219 framework/src/objc/gen_dummy_handler.rb, 4220 framework/src/objc/BridgeSupport.m, 4221 framework/src/objc/BridgeSupport.gperf, 4222 framework/src/objc/mdl_objwrapper.m, 4223 framework/tool/gen_bridge_metadata.rb: 4224 First refactoring pass: merged the method_[arg|retval] and func_[arg|retval] 4225 elements. Removed some dead code. 4226 42272007-01-10 Eloy Duran <eloy.de.enige@gmail.com> 4228 4229 * tests/tc_qtkit.rb: 4230 Added an updated version of the qtkit test case from Jonathan Paisley. 4231 42322007-01-10 Laurent Sansonetti <lsansonetti@apple.com> 4233 4234 * sample/MailDemo/English.lproj/InfoPlist.strings: 4235 Removed inappropriate CFBundleShortVersionString tag. 4236 4237 * sample/ABPresence/Info.plist, 4238 sample/MailDemo/Info.plist: 4239 Added missing CFBundleShortVersionString tags. 4240 4241=== RubyCocoa 0.10.1 === 4242 42432007-01-09 Fujimoto Hisa <hisa@fobj.com> 4244 4245 * framework/tool/gen_bridge_metadata.rb: 4246 fix an error message when the header file path not found. 4247 42482007-01-09 Laurent Sansonetti <lsansonetti@apple.com> 4249 4250 * framework/src/ruby/osx/objc/oc_wrapper.rb, 4251 tests/tc_wrapper.rb: 4252 Raise an ArgumentError when trying to call #objc_send without arguments. 4253 Added some test cases. 4254 4255 * framework/src/ruby/osx/objc/oc_import.rb: 4256 Fixed a Ruby 1.8.2-only bug introduced by latest fix. 4257 4258 * framework/src/ruby/osx/objc/oc_import.rb, 4259 framework/src/objc/mdl_osxobjc.m: 4260 Fixed a bug when overriding methods in a class that has not been imported yet, 4261 by making sure the methods will be executed under the right scope. 4262 4263 * framework/src/ruby/osx/objc/oc_wrapper.rb: 4264 Fixed a bug when using #objc_send to reach a method without argument. 4265 4266 * framework/src/ruby/osx/objc/oc_import.rb: 4267 Fixed a bug when importing classes within modules when the OSX module is mixed 4268 in the top-level object. 4269 42702007-01-08 Laurent Sansonetti <lsansonetti@apple.com> 4271 4272 * framework/src/ruby/osx/objc/oc_import.rb: 4273 Make sure #ns_import and #require_framework can be called when the OSX module 4274 is mixed in the top-level object. 4275 4276=== RubyCocoa 0.10.0 === 4277 42782007-01-08 Fujimoto Hisa <hisa@fobj.com> 4279 4280 * ReadMe.ja.html, 4281 package/post-package.rb, 4282 package/pre-package.rb: 4283 Japanese translation of ReadMe.html. 4284 42852007-01-08 Laurent Sansonetti <lsansonetti@apple.com> 4286 4287 * VERSION: 4288 Prepared for 0.10.0. 4289 4290 * sample/*: 4291 - Renamed some samples directories to match the same naming convention. 4292 - Removed deprecated samples and SimpleApp.app binary ; 4293 - Removed Ruby prefix from samples directories ; 4294 - Created Scripts sub-directory and moved all one-file .rb scripts there. 4295 4296 * sample/RubyMailDemo: 4297 New sample code, a Ruby port of Scott Stevenson's MailDemo example. 4298 42992007-01-06 Laurent Sansonetti <lsansonetti@apple.com> 4300 4301 * sample/Hakoiri-Musume/rb_main.rb, 4302 sample/speak.rb, 4303 package/tmpl/postflight-universal.rb: 4304 Fixed sheband lines to use /usr/bin/env ruby. Thanks to Jean-Pierre. 4305 4306 * framework/src/objc/OverrideMixin.m, 4307 framework/src/objc/mdl_osxobjc.m, 4308 framework/src/objc/mdl_objwrapper.m, 4309 tests/objc_test.m: 4310 Eliminates compiler warnings. 4311 4312 * framework/src/ruby/osx/objc/oc_import.rb: 4313 Properly append missing ':' to the selector if type format string was used. 4314 4315 * sample/RubyStickies/Sticky.rb: 4316 Fixed a crash when closing a sticky. 4317 43182007-01-06 Fujimoto Hisa <hisa@fobj.com> 4319 4320 * sample/RubyStickies/StickiesAppDelegate.rb, 4321 sample/RubyStickies/Sticky.rb, 4322 sample/RubyStickies/StickyResizeCornerView.rb: 4323 fixed the FIXME comments bugs. 4324 4325 * framework/src/ruby/osx/objc/oc_import.rb: 4326 allow a type format string as a second argument of objc_export. 4327 43282007-01-06 Laurent Sansonetti <lsansonetti@apple.com> 4329 4330 * sample/RubyStickies: 4331 Added new sample code, a Ruby port of /Developer/Examples/CoreData/Stickies. 4332 Not functional yet (see the FIXME comments). 4333 43342007-01-05 Fujimoto Hisa <hisa@fobj.com> 4335 4336 * template/ProjectBuilder/Application/Cocoa-Ruby\ Core\ Data\ Document-based\ Application/MyDocument.rb, template/ProjectBuilder/Application/Cocoa-Ruby\ Core\ Data\ Application/AppDelegate.rb: 4337 modify from deprecated expression for release 1.0 4338 43392007-01-05 Laurent Sansonetti <lsansonetti@apple.com> 4340 4341 * sample/buildall.rb: 4342 Added new script, that builds all samples in a directory of your choice. 4343 4344 * framework/src/ruby/osx/objc/oc_import.rb, 4345 framework/src/objc/OverrideMixin.m, 4346 framework/src/objc/RBObject.m, 4347 framework/src/objc/mdl_osxobjc.m, 4348 framework/src/objc/RBClassUtils.m, 4349 framework/src/objc/ocdata_conv.h, 4350 framework/src/objc/ocdata_conv.m, 4351 tests/tc_ovmix.rb, 4352 tests/objc_test.m: 4353 - Fixed direct import of Objective-C classes when the OSX module is 4354 included in Object ; 4355 - Added the possibility to add or override any method directly in a 4356 given Objective-C class from Ruby (before it was only possible in a 4357 subclass). Added some test cases. 4358 4359 * framework/RubyCocoa.xcodeproj/project.pbxproj, 4360 framework/src/ruby/osx/coredata.rb, 4361 framework/src/ruby/osx/objc/coredata.rb, 4362 framework/src/ruby/osx/objc/cocoa_macros.rb, 4363 framework/post-config.rb, 4364 lib/osx/coredata.rb: 4365 Migrated the old CoreData support to the new BridgeSupport metadata 4366 mechanism. Deprecated osx/coredata. 4367 43682007-01-04 Laurent Sansonetti <lsansonetti@apple.com> 4369 4370 * framework/src/objc/RBObject.m: 4371 Removed a debug log. 4372 4373 * framework/bridge-support-exceptions/AddressBook.xml, 4374 framework/bridge-support-exceptions/InstantMessage.xml: 4375 Added exceptions for AddressBook and InstantMessage frameworks. 4376 4377 * sample/RubyMiniBrowser/MiniBrowser.xcodeproj/project.pbxproj: 4378 Built the project for the native arch. Thanks to Vincent Isambart. 4379 4380 * sample/RubySpotlight/Spotlight.rb, 4381 sample/RubySpotlight/AppController.rb: 4382 - Fixed usage of NSPredicate to not raise a runtime exception ; 4383 - Ported deprecated code to new syntax. 4384 Thanks to Vincent Isambart. 4385 4386 * pre-config.rb, 4387 framework/post-config.rb: 4388 - Fail the config phase if Ruby wasn't built as a shared library ; 4389 - Use the right Ruby binary to launch the metadata generator. 4390 Thanks to Vincent Isambart. 4391 43922007-01-04 Fujimoto Hisa <hisa@fobj.com> 4393 4394 * framework/src/ruby/osx/objc/oc_attachments.rb: 4395 adds a to_a method to a NSIndexSet, thanks to Eloy Duran. 4396 4397 * tests/tc_attachments.rb: 4398 adds a test for NSIndexSet#to_a 4399 44002007-01-04 Laurent Sansonetti <lsansonetti@apple.com> 4401 4402 * sample/RubyQTKitSimpleDocument/QTKitPlayer.xcodeproj/project.pbxproj: 4403 Fixed the project to use the current Mac OS X SDK. 4404 4405 * sample/RubyPathDemo/PathDemo.xcodeproj/project.pbxproj: 4406 Fixed MainMenu.nib link. 4407 4408 * sample/RubyABPresence: 4409 Added new sample code, a Ruby port of the ADC ABPresence program. 4410 4411 * framework/post-config.rb: 4412 Now generate metadata information for AddressBook and InstantMessage. 4413 4414 * sample/SampleCIView.rb: 4415 Fixed the header comment. 4416 44172007-01-03 Laurent Sansonetti <lsansonetti@apple.com> 4418 4419 * sample/RubyPathDemo: 4420 Added new sample code, a Ruby port of /Developer/Examples/Quartz/PathDemo. 4421 4422 * framework/src/objc/RBObject.h, 4423 framework/src/objc/RBObject.m: 4424 Better fix for the problem with RBObject wrapping a pure Ruby object that 4425 was autoreleased. 4426 4427 * framework/src/ruby/osx/objc/oc_import.rb, 4428 tests/tc_ovmix.rb, 4429 tests/objc_test.m: 4430 Added the possibility to use boxed classes when giving the method type to 4431 OSX.objc_export. Added a test case. 4432 4433 * sample/RubyCocoaGL/English.lproj/InfoPlist.strings: 4434 Removed the short version string tag that is inappropriate there. 4435 4436 * sample/RubyMiniBrowser/Info.plist: 4437 Dump the short version string and uniquify the bundle identifier. 4438 4439 * template/PureEmptyApp.app/*, 4440 template/EmptyApp.app/*: 4441 Removed unnecessary empty apps. 4442 4443 * framework/tool/gen_bridge_metadata.rb: 4444 Properly format enums with signed values. 4445 4446 * framework/src/objc/OverrideMixin.m: 4447 Fixed a memory bug when KVC values, making sure the Objective-C values are not 4448 autoreleased while they are still used in Ruby. 4449 4450 * framework/src/objc/ocdata_conv.h, 4451 framework/src/objc/ocdata_conv.m, 4452 tests/tc_ovmix.rb, 4453 tests/objc_test.m: 4454 Defines the official long long runtime constants if necessary. Added a test 4455 case to be sure long long types are properly bridged. 4456 44572007-01-02 Laurent Sansonetti <lsansonetti@apple.com> 4458 4459 * framework/src/objc/BridgeSupport.m: 4460 Fixed support for long long types. Added some logs. 4461 4462 * framework/src/ruby/osx/objc/oc_import.rb, 4463 tests/tc_ovmix.rb, 4464 tests/objc_test.m: 4465 Introduced OSX::NSBehaviorAttachment#objc_export, a convenience facility to 4466 export Ruby methods to the Objective-C runtime (a shortcut to 4467 addRubyMethod_withType). First argument is the Ruby name of the method, and 4468 second is an array of C types (ex: %w{void int} for a '(void)(int)' function). 4469 Added a test case. 4470 4471 * framework/src/ruby/osx/objc/oc_wrapper.rb, 4472 tests/tc_wrapper.rb: 4473 Introduced OCObjWrapper#objc_send, a convenience facility to send messages 4474 using a symbol/value/... syntax (thanks to Hisa-san). Added a test case. 4475 4476 * sample/RubyMiniBrowser/rb_main.rb: 4477 Removed the OCObjWrapper#objc_send definition. 4478 4479 * framework/src/objc/RBObject.h, 4480 framework/src/objc/RBObject.m, 4481 framework/src/objc/ocdata_conv.m, 4482 tests/tc_subclass.rb, 4483 tests/objc_test.m: 4484 Make sure RBObject proxies are not released until the proxied Ruby object is 4485 garbage-collected. Added a test case. 4486 4487 * framework/src/objc/OverrideMixin.m, 4488 framework/src/objc/RBObject.m, 4489 framework/src/objc/mdl_objwrapper.m, 4490 framework/src/objc/ocdata_conv.h, 4491 framework/src/objc/ocdata_conv.m, 4492 tests/tc_subclass.rb: 4493 Fixed a regression introduced by the new FFI support, when messages could not 4494 be properly forwarded to Objective-C objects that are overriding the default 4495 message dispatching mechanism (like NSUndoManager). Added test cases. 4496 4497 * framework/src/ruby/osx/objc/oc_import.rb: 4498 Message NSBundle#oc_load as #load may have been overriden by the active 4499 record library (thanks Chris McGrath). 4500 4501=== RubyCocoa 0.9.0 === 4502 45032006-12-26 Laurent Sansonetti <lsansonetti@apple.com> 4504 4505 * VERSION, 4506 ReadMe.ascii.html, 4507 package/post-package.rb, 4508 package/pre-package.rb, 4509 package/tmpl/Info.plist, 4510 framework/pre-install.rb, 4511 ReadMe.html, 4512 ReadMe.sjis.html, 4513 package/tmpl/background.gif: 4514 Preparation for the first release. 4515 45162006-12-25 Laurent Sansonetti <lsansonetti@apple.com> 4517 4518 * framework/RubyCocoa.xcodeproj/project.pbxproj, 4519 framework/src/ruby/osx/webkit.rb, 4520 framework/src/ruby/osx/qtkit.rb, 4521 lib/osx/webkit.rb, 4522 lib/osx/qtkit.rb: 4523 Added osx/webkit and osx/qtkit files to preserve API compatibility with the 4524 stable branch, that warn the user of their deprecation and to the appropriate 4525 OSX.require_framework call. 4526 45272006-12-25 Fujimoto Hisa <hisa@fobj.com> 4528 4529 * sample/RubyMiniBrowser: 4530 Added new sample code (port of /Developer/Examples/WebKit/MiniBrowser) 4531 45322006-12-23 Laurent Sansonetti <lsansonetti@apple.com> 4533 4534 * framework/src/ruby/osx/objc/oc_wrapper.rb: 4535 Make sure constants can still be retrieved via OSX.TheConstantName, but print 4536 a warning stating that this syntax is deprecated and that its use is 4537 discouraged. 4538 4539 * sample/RubyCGPDFViewer/MyDocument.rb: 4540 Fixed a runtime error, thanks to Eloy Duran. 4541 4542 * sample/RubyCGPDFViewer/MainController.rb: 4543 Fixed a typo, thanks to Eloy Duran. 4544 45452006-12-22 Laurent Sansonetti <lsansonetti@apple.com> 4546 4547 * framework/src/objc/BridgeSupport.h, 4548 framework/src/objc/BridgeSupport.m, 4549 framework/src/objc/ocdata_conv.m, 4550 tests/tc_types.rb: 4551 Make sure we calculate the size of boxed structures in 4552 ocdata_size(). Added a test case. 4553 4554 * sample/RubyPDFKitViewer/MyPDFDocument.rb: 4555 Fixed the initial window layout plus some runtime errors. 4556 4557 * sample/RubyCIMicroPaint/CIMicroPaintView.rb: 4558 Fix random runtime error in #brushSize= kvc callback. 4559 45602006-12-19 Laurent Sansonetti <lsansonetti@apple.com> 4561 4562 * framework/src/objc/BridgeSupport.m, 4563 framework/src/objc/mdl_objwrapper.m, 4564 framework/src/objc/BridgeSupport.m: 4565 - Fixed FFI uchar/slong/ulong conversion (Tiger only) ; 4566 - Fixed misc bugs. 4567 45682006-12-18 Laurent Sansonetti <lsansonetti@apple.com> 4569 4570 * tests/tc_types.rb: 4571 Fixed test case comparing NSZeroRect (for PPC). 4572 4573 * sample/RubyCocoaGL: 4574 Added new sample code (port of CocoaGL). 4575 45762006-12-16 Laurent Sansonetti <lsansonetti@apple.com> 4577 4578 * framework/bridge-support-exceptions/QuartzCore.xml: 4579 Fixed Tiger build. 4580 4581 * sample/RubyRoundTransparentWindow/English.lproj/MainMenu.nib/JavaCompiling.plist, 4582 sample/RubyRocks/English.lproj/Game.nib/JavaCompiling.plist: 4583 Removed unnecessary files. 4584 4585 * sample/RubyQTKitSimpleDocument/Info.plist: 4586 Added missing CFBundleShortVersionString tag. 4587 45882006-12-15 Laurent Sansonetti <lsansonetti@apple.com> 4589 4590 * sample/RubyQTKitSimpleDocument: 4591 New sample code (port of QTKitSimpleDocument), a very basic NSDocument-based 4592 QuickTime viewer. 4593 4594 * framework/tool/gen_bridge_metadata.rb: 4595 Make sure we don't describe the same informal protocol signature more than 4596 once. 4597 4598 * framework/post-config.rb, 4599 framework/bridge-support-exceptions/QTKit.xml: 4600 Added support for QTKit.framework. 4601 4602 * sample/dotview/Info.plist, 4603 sample/multinib/Info.plist: 4604 Change the bundle identifier from com.apple.* to com.apple.rubycocoa.*. 4605 4606 * sample/RubyCIBevelSample, 4607 sample/SampleCIView.rb: 4608 New sample code (Ruby port of CIBevelSample) that uses CoreImage and OpenGL. 4609 4610 * framework/bridge-support-exceptions/AppKit.xml, 4611 framework/bridge-support-exceptions/OpenGL.xml, 4612 framework/bridge-support-exceptions/QuartzCore.xml, 4613 framework/src/ruby/osx/objc/oc_import.rb, 4614 framework/post-config.rb. 4615 framework/tool/gen_bridge_metadata.rb: 4616 - Added support for OpenGL.framework ; 4617 - Added the exception file for QuartzCore that was forgotten in the last 4618 commit ; 4619 - Improved the numeric #define support ; 4620 - Misc fixes. 4621 4622 * sample/RubyCIMicroPaint, 4623 sample/SampleCIView.rb: 4624 New sample code (Ruby port of the CIMicroPaint example) that uses CoreImage 4625 and OpenGL. 4626 46272006-12-13 Laurent Sansonetti <lsansonetti@apple.com> 4628 4629 * framework/post-config.rb, 4630 sample/RubyCIExposureSample, 4631 sample/RubyCITransitionSelectorSample: 4632 Added support for the QuartzCore framework (CoreImage + CoreVideo). Added some 4633 new sample code, RubyCIExposureSample and RubyCITransitionSelectorSample, ports 4634 of /Developer/Examples/Quartz/Core Image/* original Objective-C samples. 4635 4636 * framework/src/objc/BridgeSupport.m: 4637 Fix an important bug in the structure libffi handling, plus some minor bugs in 4638 the function dispatcher. 4639 4640 * framework/tool/gen_bridge_metadata.rb: 4641 - Fix order of (function|method)_(retval|arg) elements ; 4642 - Properly handle informal protocol methods with missing argument keys. 4643 4644 * template/ProjectBuilder/File/*: 4645 Fix the ?YEAR? macros in the trailing comment. 4646 4647 * sample/RubyCGPDFViewer: 4648 New sample code, a Ruby port of /Developer/Examples/Quartz/PDF/CGPDFViewer, 4649 a pure CoreGraphics-based PDF viewer. 4650 4651 * framework/post-config.rb: 4652 Re-generate the bridge support files if the generator is younger than the 4653 files. 4654 4655 * framework/bridge-support-exceptions/AppKit.xml, 4656 framework/bridge-support-exceptions/CoreFoundation.xml, 4657 framework/src/ruby/osx/objc/oc_import.rb, 4658 framework/src/objc/BridgeSupportLexer.h, 4659 framework/src/objc/BridgeSupport.h, 4660 framework/src/objc/BridgeSupport.m, 4661 framework/src/objc/BridgeSupport.gperf, 4662 framework/src/objc/mdl_objwrapper.m, 4663 framework/src/objc/ocdata_conv.h, 4664 framework/src/objc/ocdata_conv.m, 4665 framework/tool/gen_bridge_metadata.rb, 4666 tests/tc_passbyref.rb: 4667 - Removed the predicate attribute and now explicitely mark functions/methods 4668 returning boolean types with the _C_BOOL encoding ; 4669 - Replaced cftype's typeid attribute by gettypeid_func, we can't rely on 4670 hardcoded TypeID because their value isn't fixed (e.g. it depends on the 4671 order the frameworks are loaded) ; 4672 - Removed duplicate cftype elements in the exceptions ; 4673 - Introduced a function_retval sub-element to store information about the 4674 return value of functions, and moved the returns attribute there ; 4675 - Exceptions can now document methods where the return or argument values 4676 should be coerced to a certain type (e.g. NSGraphicsContext#graphicsPort 4677 should return a CGContextRef and not a void *). 4678 4679 * sample/RubyPDFKitViewer/Info.plist: 4680 Changed the bundle identifier to avoid conflicts with the original 4681 Objective-C project. 4682 4683 * sample/circle.rb: 4684 Not necessary to require CoreGraphics anymore, as it's pre-loaded. 4685 46862006-12-11 Laurent Sansonetti <lsansonetti@apple.com> 4687 4688 * framework/post-config.rb, 4689 sample/RubyPDFKitViewer: 4690 Added support for PDFKit. Added a new sample code, basically a Ruby port of 4691 /Developer/Examples/Quartz/PDFKit/PDFKitViewer. 4692 4693 * framework/src/ruby/osx/objc/oc_import.rb: 4694 - Added a default framework-name-to-path cache for quick/easy 4695 #require_framework operations ; 4696 - Fixed a typo bug in #require_framework. 4697 4698 * framework/tool/gen_bridge_metadata.rb: 4699 - Wrap more enums ; 4700 - Removed dead code ; 4701 - Make sure the XML elements are sorted before writing, this makes the 4702 comparison of metadata files easier. 4703 4704 * framework/post-config.rb: 4705 Added some lines that starts the verification tool on each metadata file. 4706 The lines are commented, as this is definitely not something we want to do by 4707 default. 4708 47092006-12-10 Laurent Sansonetti <lsansonetti@apple.com> 4710 4711 * framework/src/ruby/osx/objc/oc_types.rb: 4712 Do not flatten the args as it breaks API compatibility with the previous 4713 stable release. 4714 4715 * framework/tool/gen_bridge_metadata.rb: 4716 Ignore all comments left by the pre-processor after the pre-processing phase. 4717 47182006-12-09 Laurent Sansonetti <lsansonetti@apple.com> 4719 4720 * framework/src/ruby/osx/objc/oc_import.rb, 4721 install.rb: 4722 Introduced an environment variable BRIDGE_SUPPORT_PATH that can be used to 4723 point RubyCocoa to one or more paths where bridge support metadata files 4724 should be looked for in priority. Set the variable for the test phase. 4725 4726 * framework/src/objc/BridgeSupport.m: 4727 Removed some dead code. 4728 4729 * framework/tool/verify_bridge_metadata.rb: 4730 Added a first version of a bridge support metadata verifier. This one is 4731 currently based on HeaderDoc. 4732 47332006-12-09 kimura wataru <kimuraw@i.nifty.jp> 4734 4735 * install.rb: 4736 at clean task, cleaning framework/bridge-support and misc/libffi. 4737 47382006-12-08 Laurent Sansonetti <lsansonetti@apple.com> 4739 4740 * framework/src/objc/BridgeSupport.h, 4741 framework/src/objc/BridgeSupport.m, 4742 framework/src/objc/mdl_objwrapper.m, 4743 framework/tool/gen_bridge_metadata.rb: 4744 Modified the generator to handle all functions and not only functions marked 4745 with the 'extern' keyword. Fixed several parsing bugs. Refactored the 4746 RubyCocoa parsing side. 4747 4748 * framework/bridge-support-exceptions/Foundation.xml, 4749 framework/src/objc/BridgeSupport.h, 4750 framework/src/objc/BridgeSupport.m, 4751 framework/src/objc/ocdata_conv.m, 4752 framework/tool/gen_bridge_metadata.rb, 4753 tests/tc_types.rb: 4754 Defined 'NSZone *' as an opaque type. Fixed the conversion code to allow nil 4755 to be passed for an opaque argument. Added a test case. 4756 4757 * framework/bridge-support-exceptions/CoreGraphics.xml, 4758 framework/src/objc/BridgeSupport.h, 4759 framework/src/objc/BridgeSupportLexer.h, 4760 framework/src/objc/BridgeSupport.m, 4761 framework/src/objc/BridgeSupport.gperf, 4762 framework/src/objc/ocdata_conv.m, 4763 framework/tool/gen_bridge_metadata.rb: 4764 Added the possibility to specify 'opaque' types into metadata exceptions that 4765 will be translated by the bridge into instances of a new class that inherits 4766 from OSX::Boxed, like the existing C structures wrappers. Fixed the 4767 CoreGraphics exceptions file to mention the necessary opaque types. 4768 47692006-12-07 Laurent Sansonetti <lsansonetti@apple.com> 4770 4771 * framework/bridge-support-exceptions/*, 4772 framework/src/objc/BridgeSupport.m, 4773 framework/src/objc/RBClassUtils.h, 4774 framework/src/objc/RBClassUtils.m, 4775 framework/post-config.rb: 4776 - Added bridge support exceptions files, updated the build system to use them ; 4777 - Generate bridge support files for CoreFoundation, Foundation, AppKit, WebKit 4778 and CoreGraphics ; 4779 - Fixed Tiger build. 4780 4781 * framework/src/objc/BridgeSupport.h, 4782 framework/src/objc/BridgeSupport.m, 4783 framework/src/objc/mdl_osxobjc.m, 4784 framework/src/objc/ocdata_conv.m, 4785 tests/tc_types.rb: 4786 Support for the new CFType metadata descriptions. Creates proxies for CFTypes 4787 that don't have a toll-free bridged Cocoa class. Updated test cases. 4788 47892006-12-06 Laurent Sansonetti <lsansonetti@apple.com> 4790 4791 * framework/tool/gen_bridge_metadata.rb: 4792 Another iteration on the CFType support, fixed 2 parsing bugs. 4793 4794 * framework/src/objc/BridgeSupport.h, 4795 framework/src/objc/BridgeSupport.m, 4796 framework/src/objc/ocdata_conv.m: 4797 Added support of passing struct pointers. 4798 4799 * sample/circle.rb: 4800 Added new CoreGraphics sample. 4801 48022006-12-05 Laurent Sansonetti <lsansonetti@apple.com> 4803 4804 * framework/tool/gen_bridge_metadata.rb: 4805 - Fixed the parsing of C functions with unamed arguments (ex: 4806 "int foo(int, float);") ; 4807 - Make sure we clean the generated source files when trying to get the 4808 encoding of numeric #define constants ; 4809 - Ignore compiler attribute directives at the end of structures ; 4810 - Can take extra parameters from the GBM_FLAGS environment variable. 4811 4812 * framework/src/ruby/osx/objc/oc_import.rb, 4813 framework/src/objc/BridgeSupport.h, 4814 framework/src/objc/BridgeSupport.m, 4815 framework/src/objc/ocdata_conv.m, 4816 framework/tool/gen_bridge_metadata.rb, 4817 tests/tc_retaincount.rb, 4818 tests/tc_types.rb: 4819 Second and final pass on the CoreFoundation support. Added some test cases. 4820 48212006-12-04 Laurent Sansonetti <lsansonetti@apple.com> 4822 4823 * framework/src/objc/BridgeSupport.h, 4824 framework/src/objc/BridgeSupportLexer.h, 4825 framework/src/objc/BridgeSupport.m, 4826 framework/src/objc/BridgeSupport.gperf, 4827 framework/src/objc/ocdata_conv.m, 4828 framework/tool/gen_bridge_metadata.rb: 4829 Added support for CoreFoundation types (work still in progress). 4830 4831 * framework/src/objc/BridgeSupport.m, 4832 framework/tool/gen_bridge_metadata.rb: 4833 - Removed struct sizes from the metadata as they are not necessary ; 4834 - Structures can me marked as opaque in the exceptions, so that the final 4835 struct encoding won't be decorated with fields info. 4836 4837 * framework/src/objc/OverrideMixin.m: 4838 Fixed a leak. 4839 48402006-12-03 Laurent Sansonetti <lsansonetti@apple.com> 4841 4842 * framework/src/objc/ocdata_conv.m (to_octype): 4843 Don't check if the second char is '_' to handle structures, as it's not 4844 mandatory at all. 4845 4846 * framework/src/ruby/osx/objc/oc_import.rb: 4847 Don't try to do the Object::inherited class replacement for classes that 4848 inherit from OSX::Boxed (e.g. C structures proxies). 4849 48502006-12-01 Laurent Sansonetti <lsansonetti@apple.com> 4851 4852 * framework/tool/gen_bridge_metadata.rb: 4853 - Added the possibility to specify the compiler flags instead of using the 4854 default one (necessary to wrap CoreGraphics) ; 4855 - Templates now contain the list of C structures found in the given headers ; 4856 - Misc fixes. 4857 4858 * framework/src/ruby/osx/objc/oc_wrapper.rb, 4859 tests/tc_exception.rb, 4860 tests/tc_wrapper.rb: 4861 Deprecated symbol/value/... and inline Hash dispatching syntaxes. A warning 4862 is now printed when those syntaxes are used, but it will be replaced by an 4863 exception for the final 1.0.0 release. 4864 48652006-11-30 Laurent Sansonetti <lsansonetti@apple.com> 4866 4867 * framework/src/objc/BridgeSupport.m: 4868 Make sure constants names from metadata are capitalized before used. 4869 4870 * framework/tool/gen_bridge_metadata.rb: 4871 - Fix template generator ; 4872 - Properly deal with methods defined in more than one line ; 4873 - Properly deal with frameworks that don't have a central header, such as 4874 Message.framework. 4875 Thanks to Ronald Oussoren. 4876 48772006-11-29 Laurent Sansonetti <lsansonetti@apple.com> 4878 4879 * framework/src/objc/ocdata_conv.m, 4880 tests/tc_types.rb: 4881 Make sure Ruby booleans are converted to real NSNumber booleans. 4882 48832006-11-21 Laurent Sansonetti <lsansonetti@apple.com> 4884 4885 * framework/src/objc/BridgeSupport.m, 4886 framework/tool/gen_bridge_metadata.rb: 4887 Better metadata enum value formats (thanks to Ronald Oussoren). 4888 48892006-11-19 Laurent Sansonetti <lsansonetti@apple.com> 4890 4891 * framework/src/ruby/osx/objc/oc_import.rb, 4892 framework/src/objc/BridgeSupport.m: 4893 - Better OSX.require_framework method ; 4894 - Do not create enum constants if already defined. 4895 48962006-11-18 Laurent Sansonetti <lsansonetti@apple.com> 4897 4898 * framework/src/objc/BridgeSupportLexer.h, 4899 framework/src/objc/BridgeSupport.m, 4900 framework/src/objc/BridgeSupport.gperf: 4901 Now using a gperf-generated hash function when parsing XML elements for 4902 the bridge support files, instead of a succession of costly strcmp() calls. 4903 49042006-11-17 Laurent Sansonetti <lsansonetti@apple.com> 4905 4906 * framework/src/objc/BridgeSupport.m, 4907 framework/tool/gen_bridge_metadata.rb: 4908 - Now using real encoding types instead of C level constants (_C_*) in the 4909 metadata files ; 4910 - Added support to grab #define numeric constants ; 4911 - Added support to grab several constants defined in the same expression 4912 line (for example: `extern int foo, bar;') ; 4913 - Quick refactoring of the metadata generator. 4914 49152006-11-16 Laurent Sansonetti <lsansonetti@apple.com> 4916 4917 * framework/src/ruby/osx/objc/oc_import.rb: 4918 Added OSX.require_framework convenience method to load a given framework 4919 and its bridge support signature files at the same time. 4920 49212006-11-10 Laurent Sansonetti <lsansonetti@apple.com> 4922 4923 * framework/src/ruby/osx/objc/oc_import.rb: 4924 Adjust the frameworks and bridge support signatures paths regardless if 4925 the HOME environment variable is set or not. A RubyCocoa program might not 4926 define HOME in its environment (for example, if launchd'ed). 4927 4928 * framework/src/ruby/osx/objc/oc_types.rb, 4929 framework/src/ruby/osx/objc/oc_all.rb, 4930 framework/src/objc/OverrideMixin.m, 4931 framework/src/objc/BridgeSupport.h, 4932 framework/src/objc/BridgeSupport.m, 4933 framework/src/objc/mdl_objwrapper.m, 4934 framework/src/objc/ocdata_conv.h, 4935 framework/src/objc/ocdata_conv.m, 4936 framework/tool/gen_bridge_metadata.rb, 4937 tests/tc_types.rb, 4938 tests/tc_subclass.rb: 4939 - Structures are now described in metadata files ; 4940 - Removed all hardcoded information about NSRect/NSSize/etc... ; 4941 - Fixed several bugs ; 4942 - Added more test cases. 4943 49442006-11-05 Laurent Sansonetti <lsansonetti@apple.com> 4945 4946 * framework/src/objc/mdl_objwrapper.m, 4947 framework/src/objc/BridgeSupport.h, 4948 framework/src/objc/RBObject.m, 4949 tests/tc_subclass.rb: 4950 - Some refactoring in the ocm dispatch methods. Made the usage of 4951 NSMethodDescription optional when possible ; 4952 - Updated test case ; 4953 - Moved a warning killer ObjC interface to BridgeSupport.h. 4954 4955 * framework/src/objc/OverrideMixin.m: 4956 Fixed another memory leak. 4957 49582006-11-02 Laurent Sansonetti <lsansonetti@apple.com> 4959 4960 * framework/src/objc/mdl_objwrapper.m, 4961 tests/tc_retaincount.rb, 4962 tests/objc_test.m: 4963 - Fixed leak of ObjC objects from placeholder-like classes ; 4964 - Added a new test case to test the fix. 4965 Investigation and solution by Kimura Wataru. 4966 4967 * framework/post-config.rb, 4968 framework/RubyCocoa.xcodeproj/project.pbxproj, 4969 framework/src/ruby/osx/webkit.rb, 4970 framework/src/ruby/osx/objc/webkit.rb: 4971 - Generate metadata files for WebKit. 4972 - Removed previous handwritten webkit.rb files. 4973 4974 * framework/tool/gen_bridge_metadata.rb: 4975 Import all headers when compiling intermediate C files. 4976 4977 * framework/src/objc/mdl_objwrapper.m: 4978 Fixed memory leak. 4979 49802006-11-02 kimura wataru <kimuraw@i.nifty.jp> 4981 4982 * framework/src/ruby/osx/objc/oc_import.rb: 4983 fix: automatic override incorrectly with methods contains "_". 4984 49852006-11-01 Laurent Sansonetti <lsansonetti@apple.com> 4986 4987 * sample/RubyRoundTransparentWindow/pentagram.tif, 4988 sample/RubyRoundTransparentWindow/pentagon.tif, 4989 sample/RubyRoundTransparentWindow/RoundTransparentWindow.xcodeproj/project.pbxproj, 4990 sample/RubyRoundTransparentWindow/RTW.rb: 4991 Renamed pentagram.tif to pentagon.tif. 4992 4993 * framework/src/objc/OverrideMixin.m, 4994 framework/src/objc/BridgeSupport.m, 4995 framework/src/objc/RBObject.m, 4996 framework/src/objc/mdl_osxobjc.m, 4997 framework/src/objc/mdl_objwrapper.m, 4998 framework/src/objc/ocdata_conv.h, 4999 framework/src/objc/ocdata_conv.m: 5000 - fixed small integers (char, uchar, short, ushort, ...) 5001 libffi conversion from/to Ruby on PPC ; 5002 - fixed allocation of ffi_call result value. 5003 50042006-10-30 Laurent Sansonetti <lsansonetti@apple.com> 5005 5006 * tests/tc_booleans.rb, 5007 tests/tc_ovmix.rb, 5008 tests/tc_types.rb, 5009 tests/objc_test.m: 5010 Improved tests to check type conversion. 5011 50122006-10-28 Laurent Sansonetti <lsansonetti@apple.com> 5013 5014 * sample/RubyTypingTutor/BigLetterView.rb: 5015 Fixed constants expressions to not use functions. 5016 5017 * framework/src/objc/RBObject.m: 5018 Transform [RBObject -rbobjRaiseRubyException] to a 5019 C function, as the receiver of rbobj_call_ruby() may 5020 not be a RBObject instance (since the move to libffi). 5021 5022 * sample/simpleapp/AppController.rb: 5023 Fixed NSApp() -> NSApp. 5024 50252006-10-28 Fujimoto Hisa <hisa@fobj.com> 5026 5027 * VERSION, pre-config.rb, framework/src/objc/Version.h.in, framework/src/objc/mdl_osxobjc.m, metaconfig: 5028 add a constant OSX::SVN_REVISION 5029 50302006-10-27 Laurent Sansonetti <lsansonetti@apple.com> 5031 5032 * framework/src/objc/mdl_objwrapper.m: 5033 Direct call to easy methods. 5034 5035 * template/ProjectBuilder/File/*: 5036 Fixed harcoded copyright date (2001) to ?DATE?. 5037 5038 * framework/src/objc/OverrideMixin.m, 5039 framework/src/objc/BridgeSupport.m, 5040 framework/tool/gen_bridge_metadata.rb: 5041 Make sure the branch builds on all versions of Mac OS X. 5042 50432006-10-03 Laurent Sansonetti <lsansonetti@apple.com> 5044 5045 * framework/src/objc/BridgeSupport.h, 5046 framework/src/objc/BridgeSupport.m, 5047 framework/src/objc/mdl_objwrapper.m, 5048 framework/src/objc/ocdata_conv.m: 5049 Added support for additional exceptions. 5050 5051 * tests/tc_passbyref.rb: 5052 Added tests for the new exceptions support. 5053 50542006-10-02 Laurent Sansonetti <lsansonetti@apple.com> 5055 5056 * framework/tool/gen_bridge_metadata.rb: 5057 - Better support of pointer-like argument detection (check for .+Array types 5058 like NSPointArray etc...). Support could be better though by resolving the 5059 typedefs ; 5060 - Include the DTD as part of the XML header. 5061 50622006-09-30 Laurent Sansonetti <lsansonetti@apple.com> 5063 5064 * template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/Info.plist, 5065 template/ProjectBuilder/Application/Cocoa-Ruby Application/Info.plist: 5066 Added missing CFBundleIdentifier and CFBundleShortVersionString tags. 5067 50682006-09-29 Laurent Sansonetti <lsansonetti@apple.com> 5069 5070 * template/**/*.project.pbxproj: 5071 - Removed unnecessary Default target and set the Release target 5072 as default ; 5073 - Removed unnecessary project/target build settings and added missing 5074 settings to conform with other recent Xcode templates. 5075 5076 * template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/Info.plist, 5077 template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/CocoaDocApp.xcodeproj/TemplateInfo.plist, 5078 template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/CocoaDocApp.xcodeproj/project.pbxproj, 5079 template/ProjectBuilder/Application/Cocoa-Ruby Application/CocoaApp.xcodeproj/TemplateInfo.plist, 5080 template/ProjectBuilder/Application/Cocoa-Ruby Application/CocoaApp.xcodeproj/project.pbxproj, 5081 template/ProjectBuilder/Application/Cocoa-Ruby Application/Info.plist: 5082 Upgraded to use native targets. 5083 50842006-09-28 Laurent Sansonetti <lsansonetti@apple.com> 5085 5086 * template/ProjectBuilder/File/Ruby NSView subclass.rb, 5087 template/ProjectBuilder/File/Ruby NSDocument subclass.rb, 5088 template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/MyDocument.rb, 5089 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/MyDocument.rb: 5090 Removed unnecessary ns_override(s) calls. 5091 5092 * template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/CocoaApp.xcodeproj/TemplateInfo.plist, 5093 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/AppDelegate.rb, 5094 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/English.lproj/MainMenu.nib/keyedobjects.nib, 5095 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/English.lproj/MainMenu.nib/classes.nib: 5096 Fixed this template to accepts a project name that is not capitalized. 5097 The project name was used as a Ruby class name, and if it was not 5098 capitalized it didn't run (as Ruby expects class names to be constants). 5099 5100 * framework/src/objc/OverrideMixin.m, 5101 framework/src/objc/RBRuntime.m, 5102 framework/src/objc/OverrideMixin.h: 5103 Make sure we don't generate multiple ffi closures for the same 5104 method encoding type, to avoid infinite loops. 5105 5106 * tests/tc_subclass.rb: 5107 Improved the ns_override test. 5108 5109 * template/**/*.project.pbxproj: 5110 Renamed targets to be consistent with other templates, 5111 s/Development/Debug and s/Deployment/Release. 5112 51132006-09-27 Laurent Sansonetti <lsansonetti@apple.com> 5114 5115 * (sample|template)/**/InfoPlist.strings: 5116 Removed inappropriate CFBundleShortVersionString tags. 5117 5118 * framework/tool/gen_bridge_metadata.rb: 5119 - Mention if informal protocol methods are class methods or not ; 5120 - Link against Foundation by default, as we need it to resolve 5121 informal protocol methods encoding. 5122 5123 * tests/tc_ovmix.rb, tests/objc_test.m: 5124 Added a test case to check #addRubyMethod_withType, based on 5125 bug report #1535223. 5126 5127 * framework/src/objc/OverrideMixin.m, 5128 framework/src/objc/RBObject.m: 5129 Use libffi closures as IMPs when marking pure Ruby methods 5130 as Objective-C methods (#addRubyMethod_withType), and directly 5131 call the slave object when called. 5132 5133 * framework/RubyCocoa.xcodeproj/project.pbxproj, 5134 framework/src/objc/RBObject.m, 5135 framework/src/objc/DummyProtocolHandler.h, 5136 framework/src/objc/DummyProtocolHandler.m, 5137 framework/src/objc/BridgeSupport.h, 5138 framework/src/objc/BridgeSupport.m, 5139 framework/src/objc/DummyProtocolHandler.m.erb: 5140 Read the list of informal protocols from the metadata files, and 5141 do not rely on DummyProtocolHandler anymore. The latter was 5142 removed from the repository. 5143 51442006-09-26 Laurent Sansonetti <lsansonetti@apple.com> 5145 5146 * framework/src/ruby/osx/objc/oc_import.rb: 5147 Don't automatically map NSCF* classes to their NS* equivalent, as 5148 it brings problem with NSCFBoolean and it's not necessary anymore 5149 as we have real class hierarchy. 5150 5151 * framework/tool/gen_bridge_metadata.rb: 5152 Added support to generate information regarding informal protocols. 5153 5154 * framework/src/objc/ocdata_conv.h: 5155 Removed unnecessary macro introduced by mistake. 5156 5157 * framework/src/objc/mdl_objwrapper.m, 5158 framework/src/objc/cls_objcid.h, 5159 framework/src/objc/cls_objcid.m: 5160 Do not release objects issued by 'alloc/allocWithZone:', as some 5161 classes may always return the same singleton object (placeholder) 5162 each time, and return the real new object with 'init'. 5163 51642006-09-25 Laurent Sansonetti <lsansonetti@apple.com> 5165 5166 * sample/TransparentHello.rb, 5167 sample/mk_app0/AppController.rb, 5168 sample/thread0/AppController.rb, 5169 sample/mk_app1/AppController.rb, 5170 sample/Hakoiri-Musume/cocoa_hako.rb, 5171 sample/Hakoiri-Musume/rb_main.rb, 5172 sample/Pong/AppCtrl.rb, 5173 sample/MyViewer/main.rb, 5174 sample/MyViewer/MyInspector.rb, 5175 sample/HelloWorld.rb: 5176 Fixed usage of constants in samples (making sure they use the 5177 OSX:: prefix instead of OSX.). 5178 5179 * lib/osx/foundation.rb, 5180 lib/osx/appkit.rb: 5181 Fixed these files to include osx/objc/cocoa and not 5182 osx/objc/[foundation|appkit] that don't exist anymore. 5183 51842006-09-24 Laurent Sansonetti <lsansonetti@apple.com> 5185 5186 * framework/src/ruby/osx/objc/cocoa_macros.rb, 5187 framework/src/objc/mdl_objwrapper.m, 5188 framework/src/objc/ocdata_conv.h, 5189 framework/src/objc/ocdata_conv.m, 5190 framework/src/objc/BridgeSupport.h, 5191 framework/src/objc/BridgeSupport.m, 5192 framework/src/objc/cls_objcptr.h, 5193 framework/src/objc/cls_objcptr.m: 5194 Added support to handle the exceptions metadata. 5195 5196 * tests/tc_passbyref.rb, 5197 tests/tc_nsattributedstring.rb, 5198 tests/tc_objcptr.rb, 5199 tests/tc_nsstring.rb, 5200 tests/tc_nsdata.rb, 5201 tests/tc_attachments.rb: 5202 Added new tests / modified previous tests according to 5203 the new exceptions metadata support. 5204 52052006-09-22 Laurent Sansonetti <lsansonetti@apple.com> 5206 5207 * tests/tc_passbyref.rb: 5208 Added tests to check methods described by the exceptions 5209 metadata (10.5 only). 5210 52112006-09-21 Laurent Sansonetti <lsansonetti@apple.com> 5212 5213 * framework/src/objc/BridgeSupport.h, 5214 framework/src/objc/BridgeSupport.m: 5215 Added support to parse the exceptions metadata. 5216 5217 * tests/tc_booleans.rb: 5218 Added a test case to check methods returning 'char'. 5219 5220 * framework/tool/gen_bridge_metadata.rb: 5221 - added ability to merge the exceptions to the final metadata ; 5222 - the arg element becomes function_arg and method_arg according 5223 to the parent element. 5224 52252006-09-20 Laurent Sansonetti <lsansonetti@apple.com> 5226 5227 * framework/src/objc/mdl_objwrapper.m, 5228 framework/src/objc/BridgeSupport.h, 5229 framework/src/objc/BridgeSupport.m, 5230 framework/tool/gen_bridge_metadata.rb, 5231 tests/tc_passbyref.rb: 5232 Refactored the generated metadata format. 5233 52342006-09-19 Laurent Sansonetti <lsansonetti@apple.com> 5235 5236 * sample/**/lrz.mode1v3: 5237 Removed bad files. 5238 5239 * template/ProjectBuilder/Application/**/.[pbproj|xcode]: 5240 Upgraded old Xcode project files to recent format (.xcodeproj). 5241 5242 * pre-config, pre-install.rb: 5243 Removed project templates generation, fix the location of 5244 RubyCocoa.framework once they are installed. 5245 5246 * framework/tool/gen_bridge_metadata.rb: 5247 Added option to generate exception template. 5248 52492006-09-19 kimura wataru <kimuraw@i.nifty.jp> 5250 5251 * framework/src/ruby/osx/objc/cocoa_macros.rb, 5252 framework/src/ruby/osx/objc/oc_import.rb: 5253 fix "lazy import" with overriding Object.inherit. 5254 52552006-09-18 Laurent Sansonetti <lsansonetti@apple.com> 5256 5257 * metaconfig, framework/post-config.rb, framework/pre-install.rb, 5258 framework/tool/generate_bridge_support.rb, 5259 framework/tool/gen_bridge_metadata.rb: 5260 - generate_bridge_support -> gen_bridge_metadata. 5261 - Use builtin gen_bridge_metadata tool if found. 5262 - Added a new build config variable, gen-bridge-metadata, to control 5263 the generation of metadata files (true by default). 5264 - Improved the options parser of gen_bridge_metadata. 5265 5266 * framework/src/objc/ocdata_conv.m: 5267 Removed unnecessary pthread locks. 5268 52692006-09-14 Laurent Sansonetti <lsansonetti@apple.com> 5270 5271 * sample/**/*.[pbproj|xcode]: 5272 Upgraded old Xcode project files to recent format (.xcodeproj). 5273 5274 * pre-install.rb: 5275 Fix the location of RubyCocoa.framework in the sample Xcode projects 5276 once they are installed. 5277 52782006-09-02 Laurent Sansonetti <lsansonetti@apple.com> 5279 5280 * pre-config.rb, framework/Info.plist, framework/src/objc/Version.h.in, 5281 metaconfig: 5282 Fix again Info.plist malformations. 5283 5284 * ext/rubycocoa/rubycocoa.m: 5285 Added back a file that was removed by mistake by the Xcode config 5286 migration change. 5287 52882006-08-28 Laurent Sansonetti <lsansonetti@apple.com> 5289 5290 * template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/CocoaApp.xcode/TemplateInfo.plist, 5291 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/CocoaApp.xcode/project.pbxproj.in: 5292 Fixed the template to accept a project name with space character(s) 5293 in its name. 5294 5295 * framework/RubyCocoa.xcodeproj/project.pbxproj, 5296 framework/src/objc/RBObject.h: 5297 Fix build, removing 'appkit.rb' and 'foundation.rb' from the build 5298 and adding the 'oc_master' ivar to the RBObject object that was 5299 removed by mistake by the Xcode config migration change. 5300 5301 * sample/dotview/Makefile, sample/multinib/Makefile, 5302 sample/mk_app0/Makefile, sample/thread0/Makefile, 5303 sample/mk_app1/Makefile, sample/Hakoiri-Musume/Makefile, 5304 sample/MyViewer/Makefile, template/MakefileBased/Makefile: 5305 Convert `echo -n' calls to `printf', which is more portable. echo(1) 5306 won't produce the same output on Mac OS X versions > 10.4. 5307 5308 * sample/dotview/Info.plist, sample/RubyRocks, sample/RubyRocks/main.m, sample/RubyRocks/rubyrocks.xcodeproj, sample/RubyRocks/rubyrocks.xcodeproj/project.pbxproj, sample/RubyRocks/RubyRocks.rb, sample/RubyRocks/COPYRIGHT, sample/RubyRocks/rb_main.rb, sample/RubyRocks/English.lproj, sample/RubyRocks/English.lproj/InfoPlist.strings, sample/RubyRocks/English.lproj/Game.nib, sample/RubyRocks/English.lproj/Game.nib/objects.nib, sample/RubyRocks/English.lproj/Game.nib/info.nib, sample/RubyRocks/English.lproj/Game.nib/classes.nib, sample/RubyRocks/English.lproj/Game.nib/_Game_EOArchive_English.java, sample/RubyRocks/English.lproj/Game.nib/JavaCompiling.plist, sample/RubyRocks/English.lproj/MainMenu.nib, sample/RubyRocks/English.lproj/MainMenu.nib/objects.nib, sample/RubyRocks/English.lproj/MainMenu.nib/info.nib, sample/RubyRocks/English.lproj/MainMenu.nib/classes.nib, sample/RubyRocks/English.lproj/Credits.rtf, sample/multinib/Info.plist, sample/RubyRaiseMan/English.lproj/Localizable.strings, sample/RubyRoundTransparentWindow, sample/RubyRoundTransparentWindow/main.m, sample/RubyRoundTransparentWindow/pentagram.tif, sample/RubyRoundTransparentWindow/ReadMe.html, sample/RubyRoundTransparentWindow/circle.tif, sample/RubyRoundTransparentWindow/rb_main.rb, sample/RubyRoundTransparentWindow/README, sample/RubyRoundTransparentWindow/RoundTransparentWindow.xcodeproj, sample/RubyRoundTransparentWindow/RoundTransparentWindow.xcodeproj/project.pbxproj, sample/RubyRoundTransparentWindow/English.lproj, sample/RubyRoundTransparentWindow/English.lproj/InfoPlist.strings, sample/RubyRoundTransparentWindow/English.lproj/MainMenu.nib, sample/RubyRoundTransparentWindow/English.lproj/MainMenu.nib/objects.nib, sample/RubyRoundTransparentWindow/English.lproj/MainMenu.nib/info.nib, sample/RubyRoundTransparentWindow/English.lproj/MainMenu.nib/classes.nib, sample/RubyRoundTransparentWindow/English.lproj/MainMenu.nib/_MainMenu_EOArchive_English.java, sample/RubyRoundTransparentWindow/English.lproj/MainMenu.nib/JavaCompiling.plist, sample/RubyRoundTransparentWindow/RTW.rb, post-setup.rb, pre-config.rb, pre-install.rb, framework/src/ruby/osx/cocoa.rb, framework/src/ruby/osx/foundation.rb, framework/src/ruby/osx/appkit.rb, framework/src/ruby/osx/objc/oc_wrapper.rb, framework/src/ruby/osx/objc/cocoa.rb, framework/src/ruby/osx/objc/cocoa_macros.rb, framework/src/ruby/osx/objc/oc_import.rb, framework/src/ruby/osx/objc/oc_attachments.rb, framework/src/objc/OverrideMixin.m, framework/src/objc/RBSlaveObject.m, framework/src/objc/cls_objcid.h, framework/src/objc/cocoa/gen_cocoa_wrapper.rb, framework/src/objc/RBObject.m, framework/src/objc/cls_objcid.m, framework/src/objc/RBRuntime.h, framework/src/objc/mdl_osxobjc.m, framework/src/objc/RBRuntime.m, framework/src/objc/mdl_objwrapper.m, framework/src/objc/ocdata_conv.h, framework/src/objc/ocdata_conv.m, framework/post-config.rb, framework/pre-install.rb, framework/tool/generate_bridge_support.rb, ext/rubycocoa/rubycocoa.m, tests/tc_retaincount.rb, tests/tc_passbyref.rb, tests/tc_uniqobj.rb, tests/tc_constants.rb, tests/tc_subclass.rb, tests/objc_test.m, tests/tc_wrapper.rb, template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/CocoaDocApp.pbproj/TemplateInfo.plist, template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/CocoaDocApp.pbproj/project.pbxproj, template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/CocoaDocApp.pbproj/project.pbxproj.in, template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/Info.plist, template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/CocoaDocApp.xcode/TemplateInfo.plist, template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/CocoaDocApp.xcode/project.pbxproj, template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/CocoaDocApp.xcode/project.pbxproj.in, template/ProjectBuilder/Application/Cocoa-Ruby Application/CocoaApp.pbproj/TemplateInfo.plist, template/ProjectBuilder/Application/Cocoa-Ruby Application/CocoaApp.pbproj/project.pbxproj, template/ProjectBuilder/Application/Cocoa-Ruby Application/CocoaApp.pbproj/project.pbxproj.in, template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/Info.plist, template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/CocoaApp.xcode/TemplateInfo.plist, template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/CocoaApp.xcode/project.pbxproj, template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/CocoaApp.xcode/project.pbxproj.in, metaconfig: 5309 Merged 'apple-unstable' branch. 5310 53112006-08-27 kimura wataru <kimuraw@i.nifty.jp> 5312 5313 * framework/src/objc/RBObject.m: 5314 fix: crash at calling a Ruby method whose arity < 0 from Objective-C. 5315 53162006-08-09 Jonathan Paisley <jp-www@dcs.gla.ac.uk> 5317 5318 * install.rb: 5319 Ignore .svn directories during traversal. 5320 53212006-08-08 Jonathan Paisley <jp-www@dcs.gla.ac.uk> 5322 5323 * ext/rubycocoa/extconf.rb.in, ext/rubycocoa/rubycocoa.m, ext/rubycocoa/rubycocoa.m.in, framework/pre-install.rb, framework/src/objc/RBRuntime.m, framework/src/objc/Version.h.in, framework/src/objc/RBObject.h, framework/src/objc/RBSlaveObject.h, framework/src/objc/RubyCocoa.h, framework/src/objc/RBObject.h.in, framework/src/objc/RBSlaveObject.h.in, framework/src/objc/RubyCocoa.h.in, framework/GeneratedConfig.xcconfig.in, framework/Info.plist, framework/RubyCocoa.xcodeproj, framework/RubyCocoa.xcodeproj/project.pbxproj, framework/RubyCocoa.pbproj, framework/RubyCocoa.pbproj/.cvsignore, framework/RubyCocoa.pbproj/project.pbxproj, framework/RubyCocoa.pbproj/project.pbxproj.in, pre-config.rb, install.rb, metaconfig, package/tmpl/Info.plist: 5324 Switch over to new Xcode project that is no longer auto generated. 5325 Remove framework-name option. 5326 Fix dyld loading check in install.rb to cope with ', cpu-sub-type: 0' style suffixes from universal builds. 5327 53282006-08-08 kimura wataru <kimuraw@i.nifty.jp> 5329 5330 * framework/src/objc/mdl_objwrapper.m: 5331 - fix: ocm_perform() does not return Qfalse with missing argument(s) 5332 - change exception class to ArgumentError for missing argument(s) 5333 5334 * test/tc_wrapper.rb: 5335 add tests for missing argument(s) 5336 53372006-07-21 Laurent Sansonetti <lsansonetti@apple.com> 5338 5339 * framework/src/objc/RBObject.m, framework/src/objc/RBObject.h.in, 5340 framework/src/objc/RBSlaveObject.m: 5341 fixed ObjC -> Ruby messaging in recent Mac OS X builds. Starting the NSInvocation in OverrideMixin.m(handle_ruby_method) calls [RBObject methodSignatureForSelector] and uses the given method type to call [RBObject forwardInvocation]. As [RBObject methodSignatureForSelector] does not take into account the wrapped ObjC master object, it returns a DummyProtocolHandler signature which does not work for methods using something else than `id'. We fix this by storing the master class in the RBObject instance and uses it in [RBObject methodSignatureForSelector]. 5342 53432006-07-20 Laurent Sansonetti <lsansonetti@apple.com> 5344 5345 * sample/RubyRoundTransparentWindow: 5346 added RubyRoundTransparentWindow sample (from Tim Burks, http://rubycocoa.com/the-rubification-of-rtw), 5347 licensed under the MIT license. 5348 5349 * framework/src/objc/mdl_objwrapper.m: 5350 fixed Tiger build. 5351 5352 * template/ProjectBuilder/Application/Cocoa-Ruby Application/CocoaApp.pbproj/TemplateInfo.plist, 5353 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/CocoaApp.xcode/TemplateInfo.plist, 5354 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/CocoaDocApp.xcode/TemplateInfo.plist, 5355 template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/CocoaDocApp.pbproj/TemplateInfo.plist: 5356 added/fixed template descriptions. 5357 5358 * pre-config, 5359 pre-install, 5360 template/ProjectBuilder/Application/Cocoa-Ruby Application/CocoaApp.pbproj/project.pbxproj, 5361 template/ProjectBuilder/Application/Cocoa-Ruby Application/CocoaApp.pbproj/project.pbxproj.in, 5362 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/CocoaApp.xcode/project.pbxproj, 5363 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/CocoaApp.xcode/project.pbxproj.in, 5364 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/CocoaDocApp.xcode/project.pbxproj, 5365 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/CocoaDocApp.xcode/project.pbxproj.in, 5366 template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/CocoaDocApp.pbproj/project.pbxproj, 5367 template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/CocoaDocApp.pbproj/project.pbxproj.in: 5368 - removed .pbxproj files ; 5369 - added .pbxproj.in files using %%%frameworks%%% to point to the RubyCocoa.framework ; 5370 - modified config phase to generate the .pbxproj files ; 5371 - do not install the .in files. 5372 53732006-07-19 Laurent Sansonetti <lsansonetti@apple.com> 5374 5375 * sample/RubyRocks: 5376 added RubyRocks sample (from Tim Burks, http://rubycocoa.com/ruby-rocks), 5377 licensed under the same license as RubyCocoa. 5378 53792006-07-11 Laurent Sansonetti <lsansonetti@apple.com> 5380 5381 * framework/RubyCocoa.pbproj/project.pbxproj.in: 5382 added missing tag (CFBundleIdentifier). 5383 53842006-07-10 Laurent Sansonetti <lsansonetti@apple.com> 5385 5386 * template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/Info.plist, 5387 template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/Info.plist: 5388 fix bundle identifier to avoid collision with existing Xcode template. 5389 5390 * sample/RubyRaiseMan/English.lproj/Localizable.strings: 5391 convert to UTF-16 (Unicode). 5392 5393 * sample/dotview/Info.plist, sample/multinib/Info.plist: 5394 add missing / fix malformed tags. 5395 5396 * framework/English.lproj/InfoPlist.strings: 5397 fix malformed short version string. 5398 5399 * framework/src/objc/mdl_objwrapper.m: 5400 do not #error on 10.5 (for the moment...). 5401 5402 * post-setup.rb: 5403 fix build by passing the path of the temporary framework build 5404 directory to the dynamic loaded, when generating the bridge 5405 support files. 5406 5407 * framework/src/objc/cocoa/gen_cocoa_wrapper.rb: 5408 do not explicitely call constants with a not-implemented 5409 definition function. 5410 54112006-06-28 kimura wataru <kimuraw@i.nifty.jp> 5412 5413 * install.rb: 5414 fix: test of loading ext/framework for universal binary fails. 5415 54162006-06-23 Laurent Sansonetti <lsansonetti@apple.com> 5417 5418 * framework/src/objc/RBObject.m, framework/src/objc/mdl_osxobjc.m, 5419 framework/src/ruby/osx/objc/oc_wrapper.rb: 5420 introduced the OSX.relaxed_syntax(=[true|false]) config. When false, 5421 only the basic aaa_bbb_(..., ... ) syntax is allowed. When true, all 5422 other syntaxes are allowed. The config is true by default. 5423 5424 * tests/objc_test.m, tests/tc_subclass.rb, tests/tc_wrapper.rb: 5425 added test cases to check that OSX.relaxed_syntax does work. 5426 54272006-06-21 kimura wataru <kimuraw@i.nifty.jp> 5428 5429 * framework/src/objc/mdl_objwrapper.m: 5430 - raise an error for missing arguments in ocm_invoke(). 5431 - disable completion of nil arguments. 5432 54332006-06-20 kimura wataru <kimuraw@i.nifty.jp> 5434 5435 * framework/src/ruby/osx/objc/oc_import.rb: 5436 ignore leading underscore on searching selector to override in 5437 _ns_behavior_method_added(). 5438 54392006-06-16 Laurent Sansonetti <lsansonetti@apple.com> 5440 5441 * post-setup.rb, framework/post-config.rb: 5442 generate the bridge support XML metadata files after the setup phase 5443 as generate_bridge_support.rb now requires rubycocoa. 5444 5445 * framework/tool/generate_bridge_support.rb: 5446 improved the pass-by-ref arguments detection support by doing 5447 Objective-C introspection lookups. 5448 54492006-06-12 kimura wataru <kimuraw@i.nifty.jp> 5450 5451 * framework/src/ruby/osx/objc/cocoa.rb, 5452 framework/src/ruby/osx/objc/oc_import.rb: 5453 keep previous #const_missing method before overwriting it, moved some 5454 code from cocoa.rb to oc_import.rb as it is tied to OSX::ns_import. 5455 5456 * framework/src/ruby/osx/objc/oc_attachments.rb, 5457 framework/src/objc/mdl_osxobjc.m: 5458 add attachments to the right class in the hierarchy. 5459 54602006-06-09 Laurent Sansonetti <lsansonetti@apple.com> 5461 5462 * metaconfig, pre-config.rb, framework/src/objc/mdl_osxobjc.m, 5463 framework/src/ruby/osx/objc/oc_import.rb: 5464 changed the destination of bridge support XML metadata files to 5465 /Library/BridgeSupport. RubyCocoa also looks inside 5466 /System/Library/BridgeSupport and ~/Library/BridgeSupport. The parser 5467 has been rewritten in C using libxml2. At build time we detect if libxml2 5468 is available, if not (Jaguar) the parser is disabled. The old parser 5469 based on REXML was terribly slow, and has been commented. 5470 54712006-06-08 kimura wataru <kimuraw@i.nifty.jp> 5472 5473 * framework/src/ruby/osx/objc/oc_import.rb: 5474 skip internal classes (that starts with '_' or '%') when building the 5475 proxies hierarchy. 5476 5477 * tests/objc_test.m, tests/tc_subclass.rb: 5478 added tests to check that internal classes are skipped in the hierarchy. 5479 54802006-06-08 Laurent Sansonetti <lsansonetti@apple.com> 5481 5482 * framework/tool/generate_bridge_support.rb: 5483 introduced the 'generate_bridge_support' script that generates XML metadata 5484 definition of a target framework. Currently it includes the list of methods 5485 that have arguments to be passed-by-reference. 5486 5487 * metaconfig, framework/post-config.rb, framework/pre-install.rb: 5488 integrated the 'generate_bridge_support.rb' script into the build process, 5489 that generates metadata files for Foundation/AppKit and installs them in 5490 /Developer/BridgeSupport by default. 5491 5492 * framework/src/objc/mdl_objwrapper.m, framework/src/ruby/osx/objc/cocoa.rb, 5493 framework/src/ruby/osx/objc/oc_import.rb: 5494 read the metadata files at runtime and register the methods with pass-by-ref 5495 arguments. 5496 5497 * tests/tc_passbyref.rb: 5498 when testing NSString's methods with pass-by-reference arguments, do not 5499 register manually the methods as they are now automatically handled. 5500 55012006-06-07 Laurent Sansonetti <lsansonetti@apple.com> 5502 5503 * tc_subclass.rb: 5504 added another test case to check correct ObjC hierarchy. 5505 5506 * framework/src/objc/cls_objcid.m: 5507 fixed inspection message of objects from classes that do not directly 5508 inherit from OSX::ObjcID (reported by Jonathan Paisley). 5509 5510 * framework/src/ruby/osx/objc/oc_wrapper.rb: 5511 added a new way to call Objective-C methods from Ruby, passing an inline Hash 5512 after the first argument (e.g. #initWithScheme('http', :host => 'myhost', 5513 :path => 'mypath') similar to what Rails does. 5514 5515 * tests/tc_wrapper.rb: 5516 added test cases to check inline Hash calling pattern. 5517 55182006-06-06 Laurent Sansonetti <lsansonetti@apple.com> 5519 5520 * framework/src/objc/RBObject.m, framework/src/objc/cls_objcid.m, 5521 framework/src/objc/ocdata_conv.h, framework/src/objc/ocdata_conv.m: 5522 renamed the objects mapping caches (oc2rb -> rb2oc and vice-versa), checkout 5523 that the hash table is still empty for us before inserting the value to avoid 5524 a possible race condition (thanks Jonathan Paisley). 5525 55262006-06-05 Laurent Sansonetti <lsansonetti@apple.com> 5527 5528 * framework/src/objc/OverrideMixin.m: 5529 moved to the new debug logging facility (though it's not used yet in that file). 5530 5531 * framework/src/objc/mdl_objwrapper.m, framework/src/objc/mdl_osxobjc.m, 5532 framework/src/ruby/osx/objc/cocoa.rb, framework/src/ruby/osx/objc/oc_import.rb: 5533 translate the real Objective-C class hierarchy when creating Ruby proxies classes, 5534 so that for example OSX::NSString inherits from OSX::NSObject. Take into account 5535 CoreFoundation toll-free bridged classes. Various small optimizations elsewhere. 5536 5537 * framework/src/objc/ocdata_conv.m: 5538 fixed a bug that caused all cached objects (both Ruby and ObjC) to never be removed 5539 from the internal caches. 5540 5541 * tests/tc_passbyref.rb: 5542 register the instance method on the NSString class and not NSCFString anymore. 5543 5544 * tests/tc_subclass.rb: 5545 added a test case to check for real Objective-C class hierarchy. 5546 55472006-06-02 kimura wataru <kimuraw@i.nifty.jp> 5548 5549 * framework/src/objc/mdl_objwrapper.m, tests/tc_retaincount.rb: 5550 fixed object retention bug from allocWithZone. 5551 55522006-06-02 Laurent Sansonetti <lsansonetti@apple.com> 5553 5554 * framework/src/objc/mdl_objwrapper.m, framework/src/objc/mdl_osxobjc.m, 5555 framework/src/objc/ocdata_conv.m, framework/src/ruby/osx/objc/oc_import.rb: 5556 added experimental support of pass-by-reference methods. 5557 5558 * tests/tc_passbyref.rb, tests/objc_test.m: 5559 added a test to check the pass-by-reference methods support. 5560 55612006-06-01 Laurent Sansonetti <lsansonetti@apple.com> 5562 5563 * framework/src/objc/RBObject.m, framework/src/objc/RBRuntime.h, framework/src/objc/mdl_objwrapper.m: 5564 refactored the debug logging facility. 5565 5566 * framework/src/objc/RBObject.m, framework/src/objc/RBRuntime.m, framework/src/objc/ocdata_conv.h, 5567 framework/src/objc/ocdata_conv.m: 5568 map Ruby-to-Objective-C object addresses in an internal cache instead of an instance variable in the 5569 new Ruby object, as this does not work in the object is frozen. 5570 5571 * tests/tc_uniqobj.rb: 5572 added a test to check that frozen Ruby objects are unique when crossing the bridge. 5573 55742006-05-31 Laurent Sansonetti <lsansonetti@apple.com> 5575 5576 * framework/src/objc/ocdata_conv.m: 5577 changed the Objective-C-to-Ruby internal cache from CFDictionary to Ruby's bundled st.h. 5578 5579 * tests/objc_test.m, tests/tc_uniqobj.rb: 5580 added new tests to check that objects are not copied when they cross the bridge. 5581 55822006-05-30 Laurent Sansonetti <lsansonetti@apple.com> 5583 5584 * tests/tc_constants.rb: 5585 removed duplicated test cases. 5586 5587 * framework/src/objc/RBObject.m, framework/src/objc/RBRuntime.m, framework/src/objc/mdl_objwrapper.m, 5588 framework/src/objc/ocdata_conv.h, framework/src/objc/ocdata_conv.m, framework/src/objc/cls_objcid.m: 5589 make sure objects are not copied each time they cross the bridge (either from ObjC to Ruby and vice-versa). 5590 5591 * framework/src/ruby/osx/cocoa.rb, framework/src/ruby/osx/foundation.rb, framework/src/ruby/osx/appkit.rb, 5592 framework/src/ruby/osx/objc/cocoa.rb, framework/src/ruby/osx/objc/cocoa_macros.rb, 5593 framework/src/ruby/osx/objc/oc_import.rb, framework/post-config.rb, 5594 framework/RubyCocoa.pbproj/project.pbxproj.in: 5595 removed generated appkit.rb/foundation.rb files and ns_import classes at demand. 5596 5597 * framework/src/objc/mdl_objwrapper.m: 5598 faster message forwarding, relying on objc_msgSend when possible. 5599 5600 * framework/src/objc/RBObject.m: 5601 fixed memory leaks. 5602 5603 * framework/src/objc/mdl_osxobjc.m (osx_mf_objc_derived_class_new): 5604 cheap ObjC class lookup. 5605 5606 * framework/src/objc/RBObject.m, framework/src/objc/mdl_osxobjc.m, framework/src/objc/mdl_objwrapper.m, 5607 framework/src/objc/ocdata_conv.h, framework/src/objc/ocdata_conv.m, framework/src/objc/OverrideMixin.m: 5608 cheap selectors conversions. 5609 5610 * pre-config.rb, framework/src/objc/cocoa/gen_cocoa_wrapper.rb, framework/src/objc/mdl_objwrapper.m: 5611 migrated NS_DURING/NS_HANDLER/... old macros to the newer @try/@catch syntax. 5612 56132006-05-29 FUJIMOTO Hisa <hisa@fobj.com> 5614 5615 * COPYING, COPYING.ja, LEGAL, ReadMe.ascii.html, ReadMe.sjis.html, ext/rubycocoa/rubycocoa.m, ext/rubycocoa/rubycocoa.m.in, framework/src/objc/DummyProtocolHandler.h, framework/src/objc/DummyProtocolHandler.m, framework/src/objc/DummyProtocolHandler.m.erb, framework/src/objc/OverrideMixin.h, framework/src/objc/OverrideMixin.m, framework/src/objc/RBClassUtils.h, framework/src/objc/RBClassUtils.m, framework/src/objc/RBObject.h.in, framework/src/objc/RBObject.m, framework/src/objc/RBRuntime.h, framework/src/objc/RBRuntime.m, framework/src/objc/RBSlaveObject.h.in, framework/src/objc/RBSlaveObject.m, framework/src/objc/RBThreadSwitcher.h, framework/src/objc/RBThreadSwitcher.m, framework/src/objc/RubyCocoa.h.in, framework/src/objc/cls_objcid.h, framework/src/objc/cls_objcid.m, framework/src/objc/cls_objcptr.h, framework/src/objc/cls_objcptr.m, framework/src/objc/cocoa/gen_cocoa_wrapper.rb, framework/src/objc/cocoa/init_cocoa.m, framework/src/objc/cocoa/init_cocoa.m.erb, framework/src/objc/gen_dummy_handler.rb, framework/src/objc/mdl_objwrapper.h, framework/src/objc/mdl_objwrapper.m, framework/src/objc/mdl_osxobjc.h, framework/src/objc/mdl_osxobjc.m, framework/src/objc/ocdata_conv.h, framework/src/objc/ocdata_conv.m, framework/src/ruby/osx/addressbook.rb, framework/src/ruby/osx/appkit.rb, framework/src/ruby/osx/cocoa.rb, framework/src/ruby/osx/coredata.rb, framework/src/ruby/osx/foundation.rb, framework/src/ruby/osx/objc/addressbook.rb, framework/src/ruby/osx/objc/application.rb, framework/src/ruby/osx/objc/cocoa.rb, framework/src/ruby/osx/objc/cocoa_macros.rb, framework/src/ruby/osx/objc/coredata.rb, framework/src/ruby/osx/objc/oc_all.rb, framework/src/ruby/osx/objc/oc_attachments.rb, framework/src/ruby/osx/objc/oc_exception.rb, framework/src/ruby/osx/objc/oc_import.rb, framework/src/ruby/osx/objc/oc_types.rb, framework/src/ruby/osx/objc/oc_wrapper.rb, framework/src/ruby/osx/objc/ruby_addition.rb, framework/src/ruby/osx/webkit.rb, lib/osx/addressbook.rb, lib/osx/appkit.rb, lib/osx/cocoa.rb, lib/osx/coredata.rb, lib/osx/foundation.rb, lib/osx/webkit.rb, package/pre-package.rb, sample/Hakoiri-Musume/main_0.3.m, sample/MyViewer/main.m, sample/Pong/main.m, sample/RubyRaiseMan/main.m, sample/RubyTypingTutor/main.m, sample/dotview/main.m, sample/mk_app0/main.m, sample/mk_app1/main.m, sample/multinib/main.m, sample/pb_app0/main.m, sample/simpleapp/main.m, sample/thread0/main.m, template/MakefileBased/main.m, tests/tc_attachments.rb, tests/tc_exception.rb, tests/tc_nsattributedstring.rb, tests/tc_nsdata.rb, tests/tc_nsstring.rb, tests/tc_objcptr.rb, tests/tc_rubystring.rb, tests/tc_subclass.rb, tests/tc_wrapper.rb, tool/install-ruby.rb, tool/och_analyzer.rb, tool/och_analyzer3.rb: 5616 change the new license as dual (the Ruby License and LGPL). 5617 56182006-05-16 kimura wataru <kimuraw@i.nifty.jp> 5619 5620 * tests/objc_test.m, tests/tc_retaincount.rb: 5621 add tests for retainCount. 5622 56232006-05-16 Laurent Sansonetti <lsansonetti@apple.com> 5624 5625 * framework/src/objc/cls_objcid.h, framework/src/objc/cls_objcid.m, framework/src/objc/mdl_objwrapper.m: 5626 explicitely retain all ObjC objects that were not issued from alloc/new/copy/mutableCopy. 5627 56282006-05-05 kimura wataru <kimuraw@i.nifty.jp> 5629 5630 * VERSION: 5631 set version to 0.4.3d2(snapshot). 5632 56332006-05-02 kimura wataru <kimuraw@i.nifty.jp> 5634 5635 * framework/src/ruby/osx/objc/cocoa_macros.rb: 5636 add utility method: NSApplication.run_with_temp_app. 5637 56382006-04-10 kimura wataru <kimuraw@i.nifty.jp> 5639 5640 * framework/src/objc/mdl_osxobjc.m, framework/src/ruby/osx/objc/cocoa.rb, framework/src/ruby/osx/objc/oc_import.rb: 5641 fix: after the change of 2006-03-24, any app cannot launch. there is a 5642 problem in initialization process. definition step of cocoa functions 5643 and constants is moved into osx/objc/cocoa.rb(OSX.init_cocoa). 5644 5645 * framework/src/objc/cocoa/gen_cocoa_wrapper.rb: 5646 remove rb_require(). 5647 56482006-04-05 kimura wataru <kimuraw@i.nifty.jp> 5649 5650 * tool/och_analyzer3.rb: 5651 fix: config step fails on intel Mac. 5652 56532006-03-24 kimura wataru <kimuraw@i.nifty.jp> 5654 5655 * framework/src/objc/cocoa/gen_cocoa_wrapper.rb, framework/src/objc/RBRuntime.m, framework/src/objc/mdl_osxobjc.m, tests/tc_constants.rb: 5656 define ruby constants of Cocoa constants. 5657 5658 * framework/src/ruby/osx/objc/oc_object.rb, framework/src/ruby/osx/objc/oc_all.rb, framework/RubyCocoa.pbproj/project.pbxproj.in: 5659 remove oc_object.rb. 5660 56612006-03-15 FUJIMOTO Hisa <hisa@fobj.com> 5662 5663 * framework/src/objc/ocdata_conv.h, framework/src/objc/ocdata_conv.m, tool/och_analyzer.rb, tool/och_analyzer3.rb: 5664 support for the "long long" type. (e.g. the return value of 5665 NSURLResponse::expectedContentLength) (patch from Jakob Olesen, 5666 thanks!) 5667 56682006-03-13 kimura wataru <kimuraw@i.nifty.jp> 5669 5670 * framework/src/objc/mdl_osxobjc.m: 5671 use objc_class->name to get class name of Objective-C class. 5672 56732006-03-10 kimura wataru <kimuraw@i.nifty.jp> 5674 5675 * framework/src/ruby/osx/objc/oc_import.rb: 5676 ns_inherited() in ns_override is not needed. 5677 56782006-03-09 kimura wataru <kimuraw@i.nifty.jp> 5679 5680 * sample/: 5681 remove ns_override from sample codes. 5682 56832006-03-07 Jonathan Paisley <jp-www@dcs.gla.ac.uk> 5684 * framework/src/mdl_osxobjc.m, tests/tc_attachments.rb 5685 Re-enable RCArrayAttachment, RCDictionaryAttachment, 5686 RCDataAttachment. 5687 56882006-03-03 kimura wataru <kimuraw@i.nifty.jp> 5689 5690 * tests/tc_subclass.rb, tests/objc_test.m: 5691 add test of about ns_override. 5692 5693 * framework/src/objc/mdl_objwrapper.m: 5694 fix: _objc_method_type() sometimes not correctly. 5695 5696 * framework/src/ruby/osx/objc/oc_import.rb: 5697 new feature: automatic ns_overrde. 5698 56992006-02-23 kimura wataru <kimuraw@i.nifty.jp> 5700 5701 * framework/src/objc/OverrideMixin.m: 5702 fix: exception on invoking super raises after ns_override twice. 5703 57042006-02-22 kimura wataru <kimuraw@i.nifty.jp> 5705 5706 * framework/src/objc/cls_objcptr.m: 5707 suppress warning "target of assignment not really an lvalue" 5708 57092006-02-13 kimura wataru <kimuraw@i.nifty.jp> 5710 5711 * template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/AppDelegate.rb: 5712 fix typo of managedObjectModel. 5713 57142006-02-12 kimura wataru <kimuraw@i.nifty.jp> 5715 5716 * framework/src/objc/mdl_objwrapper.m: 5717 - add module OSX::OCClsWrapper 5718 - move objc_instance|class_methods, objc_instance|class_method_type to 5719 OSX::OCClsWrapper from OSX::OCObjWrapper. 5720 5721 * framework/src/ruby/osx/objc/oc_import.rb: 5722 extend OSX::OCClsWrapper at ns_import. 5723 5724 * tests/tc_wrapper.rb: 5725 modify testcase for above change. 5726 57272006-02-09 kimura wataru <kimuraw@i.nifty.jp> 5728 5729 * framework/src/objc/OverrideMixin.m: 5730 fix: incorrectly handling args in handle_ruby_method(). 5731 57322006-02-08 kimura wataru <kimuraw@i.nifty.jp> 5733 5734 * install.rb: 5735 add to "test" task validation about rubycocoa.bundle and 5736 RubyCocoa.framework 5737 5738 * package/post-package.rb: 5739 support package task on 10.3. 5740 57412006-02-07 kimura wataru <kimuraw@i.nifty.jp> 5742 5743 * template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/AppDelegate.rb: 5744 remove bad line "//0/dummy timestamp//" 5745 57462006-02-06 kimura wataru <kimuraw@i.nifty.jp> 5747 5748 * framework/src/objc/OverrideMixin.m: 5749 suppress warning "pointer type mismatch" in get_handler_ruby_method() 5750 5751 * framework/src/objc/RBObject.m: 5752 suppress warning "comparison between pointer and integer" in 5753 - [RBObject methodSignatureForSelector:] 5754 57552006-02-05 kimura wataru <kimuraw@i.nifty.jp> 5756 5757 * framework/src/objc/mdl_objwrapper.m: 5758 add methods objc_class_method_type and objc_instance_method_type to 5759 OSX::OCObjWrapper. 5760 5761 * tests/tc_wrapper.rb 5762 add tests for objc_class_method_type and objc_instance_method_type. 5763 57642006-02-02 kimura wataru <kimuraw@i.nifty.jp> 5765 5766 * framework/src/objc/mdl_objwrapper.m: 5767 fix: objc_method_type crashes when passed method does not exists. 5768 5769 * pre-cofig.rb: 5770 add "-g" to CFLAGS. 5771 5772 * lib/osx/objc/oc_types.rb: 5773 add NSPoint#==, NSSize#==, NSRect#==, NSRange#== 5774 57752006-01-31 kimura wataru <kimuraw@i.nifty.jp> 5776 5777 * framework/src/objc/OverrideMixin.m: 5778 fix: handle_ruby_method() crashes when size of return type is larger 5779 than size of id. (patch form Jonathan Paisley) 5780 57812006-01-30 kimura wataru <kimuraw@i.nifty.jp> 5782 5783 * package/post-package.rb: 5784 ensure revert owner when packagemaker fails. 5785 57862006-01-29 kimura wataru <kimuraw@i.nifty.jp> 5787 5788 * package/: 5789 tool for making binary package. 5790 5791 * install.rb: 5792 add task "package". 5793 5794 * package/post-package.rb: 5795 set owner and group of install files. 5796 5797 * VERSION: 5798 set version to 0.4.3d1(snapshot). 5799 58002006-01-27 kimura wataru <kimuraw@i.nifty.jp> 5801 5802 * metaconfig.rb: 5803 - add RubyCocoa.system_version 5804 - add config 'macosx-deployment-target' 5805 58062006-01-25 kimura wataru <kimuraw@i.nifty.jp> 5807 5808 * tests/tc_wrapper.rb 5809 add test for module OCObjWrapper. 5810 58112006-01-22 kimura wataru <kimuraw@i.nifty.jp> 5812 5813 * metaconfig: 5814 add config 'build-universal' 5815 5816 * pre-config.rb: 5817 - support config 'build-universal' 5818 - ignore environment SDKROOT, CFLAGS and LDFLAGS. 5819 58202006-01-19 kimura wataru <kimuraw@i.nifty.jp> 5821 5822 * pre-config.rb: 5823 apply environment SDKROOT 5824 58252006-01-18 kimura wataru <kimuraw@i.nifty.jp> 5826 5827 * framework/src/objc/ocdata_conv.m: 5828 suppress warning "may be used uninitialized" with gcc-4.0. 5829 5830 * metaconfig: 5831 add RubyCocoaConfig.libruby_path 5832 5833 * pre-config.rb, ext/rubycocoa/extconf.rb.in, framework/RubyCocoa.pbproj/project.pbxproj.in: 5834 apply environment CFLAGS and LDFLAGS 5835 58362006-01-14 kimura wataru <kimuraw@i.nifty.jp> 5837 5838 * framework/src/objc/mdl_objwrapper.m: 5839 fix: objc_methods not lookup superclass when the receiver is a instance. 5840 5841 * framework/src/objc/mdl_objwrapper.m: 5842 add methods objc_class_methods and objc_instance_methods to OSX::OCObjWrapper. 5843 58442006-01-12 kimura wataru <kimuraw@i.nifty.jp> 5845 5846 * install.rb: 5847 suppress warning "Object#type is deprecated". 5848 5849 * framework/src/objc/mdl_objwrapper.m: 5850 fix: objc_methods returns mixture value of class/instance methods. 5851 58522006-01-11 kimura wataru <kimuraw@i.nifty.jp> 5853 5854 * framework/src/objc/mdl_objwrapper.m: 5855 fix: invoking OSX::OCObjWrapper#objc_methods crashes. 5856 5857 * framework/src/objc/mdl_objwrapper.m: 5858 fix: invoking OSX::OCObjWrapper#objc_method_type crashes. 5859 58602006-01-03 kimura wataru <kimuraw@i.nifty.jp> 5861 5862 * sample/Hakoiri-Musume/cocoa_hako.rb, sample/Hakoiri-Musume/rb_main.rb: 5863 fix: Hakoiri-Musume does not run with RubyCocoa 0.4.2. 5864 58652005-12-26 kimura wataru <kimuraw@i.nifty.jp> 5866 5867 * framework/src/objc/OverrideMixin.m: 5868 fix: imp_c_allocWithZone() crashes when the parameter zone is NULL. 5869 (patch form Jonathan Paisley) 5870 58712005-12-23 kimura wataru <kimuraw@i.nifty.jp> 5872 5873 * framework/src/ruby/osx/objc/oc_import.rb: 5874 suppress warning "default `to_a' will be obsolete" when one Symbol 5875 passed to kvc_depends_on(). 5876 58772005-12-12 kimura wataru <kimuraw@i.nifty.jp> 5878 5879 * framework/src/objc/ocdata_conv.m: 5880 fix: leaks at rbnum_to_nsnum(). 5881 58822005-12-08 kimura wataru <kimuraw@i.nifty.jp> 5883 5884 * install.rb: 5885 fix: config step fails when working directory contains space. 5886 58872005-11-23 kimura wataru <kimuraw@i.nifty.jp> 5888 5889 * metaconfig, ext/rubycocoa/extconf.rb.in, framework/post-config.rb 5890 Xcode 2.2 moved ruby.h, but ruby command reports old path. 5891 58922005-11-10 kimura wataru <kimuraw@i.nifty.jp> 5893 5894 * release 0.4.2 (release-0_4_2) 5895 58962005-11-07 kimura wataru <kimuraw@i.nifty.jp> 5897 5898 * framework/src/ruby/osx/objc/oc_import.rb: 5899 fix: kvc_wrapper fails when nil is passed as a parameter. 5900 59012005-11-06 kimura wataru <kimuraw@i.nifty.jp> 5902 5903 * framework/src/ruby/osx/objc/oc_import.rb: 5904 add method kvc_wrapper. 5905 5906 * framework/src/ruby/osx/objc/coredata.rb: 5907 add OSX::CoreData.define_wrapper. this method defines accessors from 5908 NSManagedObjectModel. 5909 5910 * template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/MyDocument.rb: 5911 call OSX::CoreData.define_wrapper at initializing a document. 5912 5913 * framework/src/ruby/osx/objc/oc_import.rb: 5914 fix: kvc_writer and kvc_depends_on do not work correctly about "*args". 5915 5916 * template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/AppDelegate.rb 5917 call OSX::CoreData.define_wrapper when an application is launched. 5918 59192005-11-03 kimura wataru <kimuraw@i.nifty.jp> 5920 5921 * sample/Pong/Model.rb: 5922 fix: Pong.app with ruby 1.8 stops when a ball bounds at top. 5923 59242005-11-02 kimura wataru <kimuraw@i.nifty.jp> 5925 5926 * tests/tc_subclass.rb: 5927 testunit-0.1.8 has "assert_raises" not "assert_raise". 5928 5929 * tests/tc_nsstring.rb: 5930 fix test failure: nkf version 1 does not support UTF8. 5931 5932 * install.rb, framework/RubyCocoa.pbproj/project.pbxproj.in: 5933 fix: on 10.2, build step fails with libtool error. 5934 59352005-11-01 kimura wataru <kimuraw@i.nifty.jp> 5936 5937 * install.rb: 5938 suppress error message about `xcodebuild -version' on panther. 5939 5940 * sample/Pong/Model.rb: 5941 fix: not work with ruby-1.8. 5942 5943 * framework/src/objc/ocdata_conv.m: 5944 NSString#initWithBytes:length:encoding: is not declared in 10.2. 5945 59462005-10-31 kimura wataru <kimuraw@i.nifty.jp> 5947 5948 * sample/RubyRaiseMan/MyDocument.rb: 5949 suppress warning about method "isKindOf:". 5950 59512005-10-27 kimura wataru <kimuraw@i.nifty.jp> 5952 5953 * template/ProjectBuilder/Application/Cocoa-Ruby Core Data Document-based Application/: 5954 add template for CoreData. 5955 5956 * pre-install.rb: 5957 install template "Cocoa-Ruby Core Data Document-based Application". 5958 59592005-10-26 kimura wataru <kimuraw@i.nifty.jp> 5960 5961 * lib/src/ruby/osx/coredata.rb: 5962 add files to support CoreData(requires MacOS X 10.4 or later) 5963 5964 * framework/RubyCocoa.pbproj/project.pbxproj.in: 5965 packaging coredata.rb into framework. 5966 5967 * template/ProjectBuilder/Application/Cocoa-Ruby Core Data Application/: 5968 add template for CoreData. 5969 5970 * pre-install.rb: 5971 install template "Cocoa-Ruby Core Data Application". 5972 59732005-10-24 kimura wataru <kimuraw@i.nifty.jp> 5974 5975 * install.rb: 5976 do not create "InstalledFiles" file at install task. 5977 59782005-10-18 kimura wataru <kimuraw@i.nifty.jp> 5979 5980 * sample/RubySpotlight/: 5981 add samle of CocoaBindings contributed by Norberto Ortigoza. 5982 59832005-10-17 kimura wataru <kimuraw@i.nifty.jp> 5984 5985 * sample/CurrencyConverter/Converter.rb: 5986 replace setKeys:triggerChangeNotificationsForDependentKey: to kvc_depends_on. 5987 59882005-10-15 kimura wataru <kimuraw@i.nifty.jp> 5989 5990 * framework/src/ruby/osx/coredata.rb, framework/src/ruby/osx/objc/coredata.rb: 5991 add files to support CoreData(requires MacOS X 10.4 or later) 5992 59932005-10-04 kimura wataru <kimuraw@i.nifty.jp> 5994 5995 * framework/src/objc/OverrideMixin.m: 5996 fix: sub-subclass of a Cocoa class in a ruby script leads a crash. 5997 5998 * framework/src/ruby/osx/objc/oc_import.rb: 5999 add kvc_depends_on. suggested by Sean Legassick and Jonathan Paisley. 6000 60012005-09-27 kimura wataru <kimuraw@i.nifty.jp> 6002 6003 * framework/src/ruby/osx/objc/RBObject.h.in, framework/src/ruby/osx/objc/RBObject.m: 6004 add method -isRBObject to NSProxy and RBObject. 6005 6006 * framework/src/objc/mdl_osxobjc.m: 6007 use "isRBObject" to know receiver is instance of RBObject or not. 6008 60092005-09-19 kimura wataru <kimuraw@i.nifty.jp> 6010 6011 * framework/src/ruby/osx/objc/cocoa_macros.rb: 6012 fix: wrong code at 2005-09-15(error "`respond_to?': true is not a symbol (TypeError)") 6013 60142005-09-15 kimura wataru <kimuraw@i.nifty.jp> 6015 6016 * framework/src/ruby/osx/objc/cocoa_macros.rb: 6017 nkf of 1.8.3 works fine. we can use NKF.guess2. 6018 60192005-09-11 kimura wataru <kimuraw@i.nifty.jp> 6020 6021 * framework/src/ruby/osx/objc/oc_wrapper.rb: 6022 keep ownership by "retain" in ruby script. 6023 6024 * framework/src/ruby/osx/objc/oc_wrapper.rb: 6025 fix: retainCount of a string generated by "alloc.init" is two. 6026 60272005-09-08 kimura wataru <kimuraw@i.nifty.jp> 6028 6029 * tool/och_analyzer3.rb: 6030 support cpp-4.0. 6031 6032 * tool/och_analyzer.rb, tool/och_analyzer3.rb, framework/src/objc/cocoa/gen_cocoa_wrapper.rb: 6033 suppress warning "Object#type is deprecated". 6034 60352005-08-30 kimura wataru <kimuraw@i.nifty.jp> 6036 6037 * framework/src/objc/OverrideMixin.m: 6038 suppress warning "cannot find method" 6039 60402005-08-10 kimura wataru <kimuraw@i.nifty.jp> 6041 6042 * framework/src/objc/RBObject.m, framework/src/objc/RBObject.m: 6043 convert ruby exception to NSException. patch from Jonathan Paisley. 6044 6045 * tests/tc_exception.rb, tests/Makefile, tests/objc_test.m 6046 add files. test for exception handling, includes above changes. 6047 60482005-08-01 kimura wataru <kimuraw@i.nifty.jp> 6049 6050 * framework/post-config.rb: 6051 chdir in ruby. 6052 6053 * framework/src/objc/cocoa/gen_cocoa_wrapper.rb: 6054 remove rb_Xxxx.m when gen_cocoa_wrapper.rb fails. 6055 6056 * install.rb: 6057 new task: `test' enables "ruby install.rb test". 6058 60592005-07-31 kimura wataru <kimuraw@i.nifty.jp> 6060 6061 * tool/och_analyzer.rb, tool/och_analyzer3.rb: 6062 check status of CPP command. 6063 60642005-07-27 kimura wataru <kimuraw@i.nifty.jp> 6065 6066 * install.rb: 6067 use fullpath of build-command. 6068 60692005-07-21 kimura wataru <kimuraw@i.nifty.jp> 6070 6071 * ext/osxobjc/extconf.rb.in: 6072 fix: wrong change at 2005-04-18 6073 6074 * install.rb, pre-config.rb, ext/osxobjc/extconf.rb.in, framework/pre-install.rb: 6075 support installation with XcodeTools 2.1. 6076 60772005-07-19 kimura wataru <kimuraw@i.nifty.jp> 6078 6079 * framework/pre-install.rb: 6080 support installation with XcodeTools 2.1. 6081 60822005-07-16 kimura wataru <kimuraw@i.nifty.jp> 6083 6084 * tool/och_analyzer.rb, tool/och_analyzer3.rb: 6085 support constants about window level, such as NSNormalWindowLevel. 6086 60872005-07-15 kimura wataru <kimuraw@i.nifty.jp> 6088 6089 * framework/RubyCocoa.pbproj/project.pbxproj.in, framework/pre-install.rb: 6090 add "-Wl,-x" to OTHER_LDFLAGS. remove `strip' at install phase. 6091 60922005-06-13 kimura wataru <kimuraw@i.nifty.jp> 6093 6094 * framework/src/objc/ocdata_conv.m: 6095 code fix on comparing kcode. 6096 60972005-06-11 kimura wataru <kimuraw@i.nifty.jp> 6098 6099 * tests/tc_subclass.rb: 6100 add test for +[(id) addRubyMethod:withType:] 6101 6102 * framework/src/ruby/osx/objc/oc_import.rb: 6103 suppress warning "@inherited not initialized" in debug mode. 6104 61052005-06-07 kimura wataru <kimuraw@i.nifty.jp> 6106 6107 * framework/src/ruby/osx/objc/oc_import.rb: 6108 add kvc_array_accessor. patch from Jonathan Paisley. 6109 6110 * framework/src/objc/OverrideMixin.m: 6111 add method +[(id) addRubyMethod:withType:]. patch from Jonathan Paisley. 6112 61132005-05-04 kimura wataru <kimuraw@i.nifty.jp> 6114 6115 * pre-install.rb: 6116 fix installataion of Project Builder's templates. 6117 61182005-04-30 kimura wataru <kimuraw@i.nifty.jp> 6119 6120 * framework/src/ruby/osx/objc/oc_import.rb: 6121 add kvc_accessor, kvc_reader and kvc_writer. suggested by Jonathan Paisley. 6122 fix: infinite loop when kvc-accessor is not found. 6123 6124 * sample/CurrencyConverter/: 6125 new sample for Key-Value Coding 6126 61272005-04-29 kimura wataru <kimuraw@i.nifty.jp> 6128 6129 * ext/osxobjc/extconf.rb.in: 6130 fix: wrong change at 2005-04-18 6131 61322005-04-28 kimura wataru <kimuraw@i.nifty.jp> 6133 6134 * framework/src/ruby/osx/objc/oc_import.rb: 6135 include OSX::NSKeyValueCodingAttachment, not extend 6136 61372005-04-22 kimura wataru <kimuraw@i.nifty.jp> 6138 6139 * framework/src/objc/overridemixin.m: 6140 KVC support: add override valueForUndefinedKey: and setValue:forUndefinedkey: 6141 6142 * framework/src/ruby/osx/objc/oc_import.rb: 6143 KVC support: add module OSX::NSKeyValueCodingAttachment 6144 61452005-04-20 kimura wataru <kimuraw@i.nifty.jp> 6146 6147 * framework/src/objc/RBClassUtils.m, framework/src/objc/RBRuntime.m, framework/src/objc/cls_objcid.m, framework/src/objc/mdl_objwrapper.m, framework/src/objc/mdl_osxobjc.m, 6148 use UTF8, not default encoding 6149 61502005-04-19 kimura wataru <kimuraw@i.nifty.jp> 6151 6152 * framework/src/objc/RBObject.m, framework/src/objc/ocdata_conv.m: 6153 use UTF8, not default encoding, to getting symbol and number 6154 6155 * framework/src/objc/ocdata_conv.h, framework/src/objc/ocdata_conv.m: 6156 add rbstr_to_ocstr(), ocstr_to_rbstr(): converting string with $KCODE 6157 6158 * framework/src/objc/mdl_objwrapper.m, framework/src/objc/ocdata_conv.m: 6159 fix: [ruby-talk:135308] use invalind encoding in converting string 6160 61612005-04-18 kimura wataru <kimuraw@i.nifty.jp> 6162 6163 * ext/osxobjc/extconf.rb.in: 6164 suppress warning "linker input file unused because linking not done" 6165 61662005-04-16 kimura wataru <kimuraw@i.nifty.jp> 6167 6168 * framework/src/objc/mdl_osxobjc.m: 6169 fix: ocid_get_rbobj() - pure ruby object becomes instance of OSX::OCObject 6170 61712005-04-12 kimura wataru <kimuraw@i.nifty.jp> 6172 6173 * framework/src/objc/RBObject.m: 6174 fix bad classname in debug mesage at -[RBObject isKindOfClass:]. 6175 61762005-03-25 kimura wataru <kimuraw@i.nifty.jp> 6177 6178 * release 0.4.1 (release-0_4_1) 6179 61802005-03-23 kimura wataru <kimuraw@i.nifty.jp> 6181 6182 * doc/build.en.html, doc/build.ja.html, doc/changes.en.html, doc/changes.ja.html, doc/getting.en.html, doc/getting.ja.html, doc/index.en.html, doc/index.ja.html, doc/programming.en.html, doc/programming.ja.html: 6183 update for 0.4.1 6184 6185 * doc/rubycocoasite.css: 6186 fix hover on name-anchor 6187 6188 * doc/links.en.html, doc/links.ja.html: 6189 mantenance links 6190 6191 * ReadMe.ascii.html, ReadMe.sjis.html: 6192 update date of copyright 6193 61942005-03-21 kimura wataru <kimuraw@i.nifty.jp> 6195 6196 * ReadMe.ascii.html, ReadMe.sjis.html: 6197 change about contacting 6198 61992005-03-18 kimura wataru <kimuraw@i.nifty.jp> 6200 6201 * framework/src/objc/RBRuntime.m: 6202 add import <Foundation/NSPathUtilities.h> 6203 6204 * tool/och_analyzer3 6205 suppress the warning "regexp has `}' without escape". 6206 6207 * framework/RubyCocoa.pbproj/project.pbxproj.in: 6208 add setting OBJROOT and SYMROOT. 6209 6210 * install.rb: 6211 remove setting OBJROOT and SYMROOT. 6212 62132005-02-27 kimura wataru <kimuraw@i.nifty.jp> 6214 6215 * sample/HybridLangApp/rb_main.rb, sample/Pong/rb_main.rb, sample/RubyRaiseMan/rb_main.rb, sample/RubyTypingTutor/rb_main.rb, sample/SimpleApp.app/Contents/Resources/rb_main.rb, sample/dotview/rb_main.rb, sample/mk_app0/rb_main.rb, sample/mk_app1/rb_main.rb, sample/multinib/rb_main.rb, sample/pb_app0/rb_main.rb, sample/simpleapp/rb_main.rb, sample/thread0/rb_main.rb, template/EmptyApp.app/Contents/Resources/rb_main.rb, template/MakefileBased/rb_main.rb, template/ProjectBuilder/Application/Cocoa-Ruby Application/rb_main.rb, template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/rb_main.rb 6216 support non-ascii path. 6217 62182005-02-23 kimura wataru <kimuraw@i.nifty.jp> 6219 6220 * framework/src/objc/RBRuntime.m: 6221 support non-ascii path. 6222 62232005-02-18 kimura wataru <kimuraw@i.nifty.jp> 6224 6225 * install.rb: 6226 ignore Xcode preferences: OBJROOT, SYMROOT. 6227 62282005-01-10 kimura wataru <kimuraw@i.nifty.jp> 6229 6230 * install.rb, framework/RubyCocoa.pbproj/project.pbxproj.in: 6231 enable build with libruby-static.a or libruby.a. 6232 6233 * metaconfig, pre-install.rb: 6234 remove config option 'other-ldflags'. 6235 62362005-01-06 kimura wataru <kimuraw@i.nifty.jp> 6237 6238 * framework/src/ruby/osx/objc/cocoa_macros.rb, framework/src/ruby/osx/objc/ruby_additon.rb: 6239 support ruby-1.8.2. ruby-1.8.2's NKF.guess fails in some case. 6240 62412004-12-09 kimura wataru <kimuraw@i.nifty.jp> 6242 6243 * merged branch-devel-panther 6244 62452004-11-07 kimura wataru <kimuraw@i.nifty.jp> 6246 6247 * sample/HybridLangApp/rb_main.rb, sample/Pong/rb_main.rb, sample/RubyRaiseMan/rb_main.rb, sample/RubyTypingTutor/rb_main.rb, sample/SimpleApp.app/Contents/Resources/rb_main.rb, sample/dotview/rb_main.rb, sample/mk_app0/rb_main.rb, sample/mk_app1/rb_main.rb, sample/multinib/rb_main.rb, sample/pb_app0/rb_main.rb, sample/simpleapp/rb_main.rb, sample/thread0/rb_main.rb, template/EmptyApp.app/Contents/Resources/rb_main.rb, template/MakefileBased/rb_main.rb, template/ProjectBuilder/Application/Cocoa-Ruby Application/rb_main.rb, template/ProjectBuilder/Application/Cocoa-Ruby Document-based Application/rb_main.rb 6248 Fix application works not well, when pathname contains whitespace.(thanks to Chris Thomas) 6249 62502003-08-09 FUJIMOTO Hisakuni <hisa@fobj.com> 6251 6252 * tests/tc_nsdata.rb: 6253 suppress the warning "parenthesize argument(s) for future version". 6254 6255 * framework/src/ruby/osx/objc/oc_types.rb, framework/src/objc/ocdata_conv.m: 6256 Fix an inconvenient issue for that Range#length was obsoleted in ruby 1.8. 6257 62582003-08-04 FUJIMOTO Hisakuni <hisa@fobj.com> 6259 6260 * metaconfig: 6261 To suppress warning, remove spaces between method name and argument list. 6262 6263 * install.rb: specify false to parameter of Module#instance_methods 6264 62652003-07-28 FUJIMOTO Hisakuni <hisa@fobj.com> 6266 6267 * framework/src/objc/RBSlaveObject.h.in, framework/src/objc/RBSlaveObject.m: 6268 Remove definition of initializer method "init". This fixes an 6269 error which occurs when an intializer method is overridden with 6270 invocation of "super_init". 6271 6272 * framework/RubyCocoa.pbproj/project.pbxproj.in, framework/src/ruby/osx/webkit.rb, lib/osx/webkit.rb: 6273 add new library to support the WebKit.framework 6274 62752003-07-28 kimura wataru <kimuraw@i.nifty.jp> 6276 6277 * framework/src/ruby/osx/objc/webkit.rb 6278 add new library to support the WebKit.framework 6279 62802003-07-25 FUJIMOTO Hisakuni <hisa@fobj.com> 6281 6282 * framework/RubyCocoa.pbproj/project.pbxproj.in: 6283 for bundling within an application bundle, set INSTALL_PATH to 6284 "@executable_path/../Frameworks". suggested by Rod Schmidt. 6285 62862003-02-28 Shirai,Kaoru <shirai@korinkan.co.jp> 6287 6288 * framework/src/objc/ocdata_conv.m: 6289 In framework/src/objc/ocdata_conv.m, nil is converted into empty 6290 selctor "", so we cannot pass NULL to Objective-C function. 6291 (Example. didDismissSelector argument of NSApplication.beginAlertSheet) 6292 62932003-01-23 FUJIMOTO Hisakuni <hisa@fobj.com> 6294 6295 * doc/index.en.html, doc/index.ja.html, doc/links.en.html, doc/programming.en.html, doc/references.en.html, doc/trysamples.en.html, doc/changes.en.html, doc/faq.en.html, doc/getting.en.html, doc/changelog.html, doc/build.en.html: 6296 applied a patch by John Platte 6297 62982003-01-17 FUJIMOTO Hisakuni <hisa@fobj.com> 6299 6300 * framework/src/objc/RBThreadSwitcher.m: 6301 define DEFAULT_WAIT (default is 0) and DEFAULT_INTERVAL (defualt is 0.050). 6302 6303 * framework/src/objc/ocdata_conv.m: 6304 rbobj_to_nsobj() - change to the same as behavior of 0.4.0 for "to_nsobj(ect)". 6305 6306 * framework/src/objc/mdl_osxobjc.m: 6307 rbobj_get_ocid() - change to the same as behavior of 0.4.0 for "to_nsobj". 6308 63092003-01-16 FUJIMOTO Hisakuni <hisa@fobj.com> 6310 6311 * sample, template: rb_main_init() in every rb_main.rb - wrap an 6312 argument of 'require' in 'File.basename'. This fixes loading a 6313 library twice as the other library. 6314 63152003-01-15 FUJIMOTO Hisakuni <hisa@fobj.com> 6316 6317 * framework/src/ruby/osx/objc/oc_attachments.rb: 6318 define module RCDataAttachment and RCDataAttachment#rubyString. 6319 6320 * framework/src/ruby/osx/objc/cocoa_macros.rb: 6321 define NSData.dataWithRubyString and NSMutableData.dataWithRubyString. 6322 6323 * framework/src/objc/ocdata_conv.m: 6324 rbobj_to_nsobj() - call a method named "to_nsobject" if it is 6325 defined, to convert aruby object into an objective-c object. 6326 6327 * framework/src/objc/mdl_osxobjc.m: 6328 rbobj_get_ocid() - relocate invocation of "to_nsobject" into rbobj_to_nsobj(). 6329 6330 * framework/src/objc/mdl_osxobjc.m: 6331 ocobj_s_new() - add an attachment into a new object if it is a 6332 NSArray, NSDictionary or NSData. 6333 6334 * tests/tc_nsdata.rb, tests/tc_objcptr.rb: add some unit tests 6335 6336 * framework/src/objc/cls_objcptr.m: add taint mark handling. 6337 63382003-01-14 FUJIMOTO Hisakuni <hisa@fobj.com> 6339 6340 * tests/tc_rubystring.rb, tests/tc_nsstring.rb: 6341 test for ruby_addition.rb and NSString extended facility 6342 6343 * framework/RubyCocoa.pbproj/project.pbxproj.in: add ruby_addition.rb 6344 6345 * framework/src/ruby/osx/objc/oc_all.rb: require 'ruby_addition' 6346 6347 * framework/src/ruby/osx/objc/cocoa_macros.rb: 6348 define NSData.dataWithString, NSString.guess_nsencoding, 6349 NSString.stringWithRubyString, 6350 NSMutableString.stringWithRubyString 6351 6352 * framework/src/ruby/osx/objc/ruby_addition.rb: 6353 define to_nsstring, to_nsmutablestring and nsencoding as instance 6354 method of String. 6355 6356 * framework/src/objc/ocdata_conv.m: 6357 Use a method named 'to_nsobject' if it is defined, to convert a ruby 6358 object into an objective-c object. 6359 6360 * framework/src/ruby/osx/objc/oc_import.rb: 6361 fix conflict of here document label 6362 6363 * framework/src/ruby/osx/objc/addressbook.rb: 6364 modify here document label 6365 63662003-01-11 FUJIMOTO Hisakuni <hisa@fobj.com> 6367 6368 * framework/post-config.rb: 6369 fix a config phase error in rb_gc_mark() of ruby 1.6.8. 6370 63712003-01-05 FUJIMOTO Hisakuni <hisa@fobj.com> 6372 6373 * framework/src/ruby/osx/objc/oc_import.rb, framework/src/ruby/osx/objc/addressbook.rb: 6374 add a filename and line number to module_eval arguments 6375 63762002-12-28 FUJIMOTO Hisakuni <hisa@fobj.com> 6377 6378 * release 0.4.0 (release-0_4_0) 6379 6380 * pre-install.rb: add 'chmod -R g+w /Developer/Examples/RubyCocoa'. 6381 6382 * README.en.txt, README.sjis.txt, ReadMe.ascii.html, ReadMe.sjis.html: 6383 rewrite ReadMe documents for binary package 6384 63852002-12-27 FUJIMOTO Hisakuni <hisa@fobj.com> 6386 6387 * framework/pre-install.rb: fix 'strip -x' failed. 6388 6389 * sample/speak_me.txt: text for speak.rb 6390 6391 * framework/pre-install.rb, metaconfig, pre-install.rb: add 6392 installation of template, examples and documents. add option 6393 'install-root' which make convenient for packaging. 6394 6395 * README.en.txt, README.sjis.txt: revise for 0.4 6396 6397 * apply downcase to all html document names. 6398 63992002-12-26 FUJIMOTO Hisakuni <hisa@fobj.com> 6400 6401 * framework/src/objc/cls_objcptr.m: 6402 remove ObjcPtr.allocate, because the method conflict with 6403 Class#allocate in ruby 1.7. 6404 64052002-12-22 FUJIMOTO Hisakuni <hisa@fobj.com> 6406 6407 * sample/itunes_albums.rb: 6408 modify ambiguous ruby code to suppress warning by Ruby interpreter. 6409 6410 * tests/testall.rb: replace CRLF to LF as line delimiter 6411 6412 * framework/src/ruby/osx/objc/oc_import.rb: 6413 define constant OSX::NSBehaviorAttachment::ERRMSG_FOR_RESTRICT_NEW as 6414 exception message when NSObject.new invoked. 6415 6416 * 0.4.0a5 (alpha-0_4_0a5) 6417 6418 * tests/alltest.sh, tests/tc_nsattributedstring.rb, tests/tc_nsstring.rb, tests/tc_subclass.rb, tests/test_nsattributedstring.rb, tests/test_nsstring.rb, tests/testall.rb: 6419 rewrite some unit tests using Test::Unit 6420 6421 * framework/src/ruby/osx/objc/oc_import.rb: 6422 In Ruby 1.8 (after 2002.9.27), 'NSObject#ns_overrides' may be called 6423 earlier than 'Class#inherited'. 6424 define constant OSX::NSBehaviorAttachment::ERRMSG_FOR_RESTRICT_NEW as 6425 exception message when NSObject.new invoked. 6426 64272002-12-20 FUJIMOTO Hisakuni <hisa@fobj.com> 6428 6429 * metaconfig, pre-config.rb, VERSION, framework/src/objc/Version.h, framework/src/objc/Version.h.in: 6430 create 'Version.h' at the time of config 6431 6432 * install.rb: clean_dir_framework - command 'rm -rf build' 6433 6434 * sample/SimpleApp.app/Contents/Resources/AppController.rb, sample/SimpleApp.app/Contents/MacOS/SimpleApp: 6435 print ruby version in the About Box 6436 6437 * framework/src/ruby/osx/objc/oc_import.rb: 6438 add comment for some methods which is defined in NSBehaviorAttachment. 6439 64402002-12-19 FUJIMOTO Hisakuni <hisa@fobj.com> 6441 6442 * sample/simpleapp/AppController.rb: display Ruby's version in AboutBox 6443 6444 * sample/simpleapp/main.m: replace main.m for RubyCocoa 0.4 6445 6446 * sample/speak.rb: modify for Ruby 1.7 6447 6448 * framework/src/objc/RBRuntime.m: 6449 change return type of load_path_unshift to void 6450 6451 * add a new config option '--framework-name' for multiple 6452 installing of RubyCocoa framework. 6453 64542002-12-18 FUJIMOTO Hisakuni <hisa@fobj.com> 6455 6456 * 0.4.0a1 (alpha-0_4_0a1) 6457 6458 * modify ambiguous ruby code to suppress warning by Ruby 6459 interpreter. 6460 64612002-12-17 FUJIMOTO Hisakuni <hisa@fobj.com> 6462 6463 * sample/Hakoiri-Musume/cocoa_hako.rb: bug fix - bring the window 6464 to front when the program is launched on command line. 6465 6466 * sample/TransparentHello.rb: add a new example by Chris Thomas, 6467 the article on DDJ May 2002. 6468 6469 * sample/HelloWorld.rb: add a new example - translate 6470 HelloWorld.py of PyObjc example to ruby with RubyCocoa. 6471 6472 * sample/HybridLangApp: 6473 add a new example of using both Ruby and Objective-C. 6474 64752002-12-17 FUJIMOTO Hisakuni <hisa@fobj.com> 6476 6477 * template/*: 6478 modify for RubyCocoa 0.4. 6479 move a Makefile based template to directory named MakefileBased. 6480 move templates for ProjectBuilder to directory named ProjectBuilder. 6481 64822002-12-16 FUJIMOTO Hisakuni <hisa@fobj.com> 6483 6484 * framework/RubyCocoa.pbproj/project_tmpl.pbxproj: 6485 remove framework path entries. 6486 6487 * sample/*: 6488 change for RubyCocoa 0.4 6489 simplify the function 'main' of main.m with using RBApplicationMain. 6490 add libobjc and RubyCocoa.framework to LIBS in Makefile. 6491 6492 * framework/src/objc/mdl_objwrapper.m: 6493 modify a little to suppress a compiling warning. 6494 6495 * framework/src/objc/RBRuntime.m: 6496 change 3rd argument type of RBApplicationMain to 'const'. 6497 clean up on initialization of arguments of RBApplicationMain. 6498 6499 * framework/src/objc/RBRuntime.h: 6500 change 3rd argument type of RBApplicationMain to 'const' 6501 65022002-12-12 FUJIMOTO Hisakuni <hisa@fobj.com> 6503 6504 * merged branch-devel-0_4 6505 65062002-12-10 FUJIMOTO Hisakuni <hisa@fobj.com> 6507 6508 * framework/src/ruby/osx/objc/addressbook.rb, framework/src/ruby/osx/objc/application.rb, framework/src/ruby/osx/objc/cocoa_macros.rb, framework/src/ruby/osx/objc/oc_attachments.rb, framework/src/ruby/osx/objc/oc_exception.rb, framework/src/ruby/osx/objc/oc_import.rb, framework/src/ruby/osx/objc/oc_wrapper.rb: 6509 fixed ambiguous method call with arguments. 6510 65112002-12-09 FUJIMOTO Hisakuni <hisa@fobj.com> 6512 6513 * framework/post-config.rb: 6514 add 'create appkit.rb and foundation.rb' and 'create osx_ruby.h and osx_intern.h' 6515 6516 * framework/pre-install.rb: add a comment. 6517 6518 * framework/src/objc: add framework sources 6519 6520 * framework/src/ruby/osx/objc/foundation.rb, framework/src/ruby/osx/objc/appkit.rb: 6521 remove objc/appkit.rb and objc/foundation.rb 6522 65232002-12-04 FUJIMOTO Hisakuni <hisa@fobj.com> 6524 6525 * framework/tool/create-appkit-and-foundation.rb: 6526 script to create appkit.rb & foundation.rb 6527 6528 * framework/src/ruby: add a ruby part of framework 6529 6530 * RubyCocoa.framework again. change directory tree largely. 6531 65322002-10-16 FUJIMOTO Hisakuni <hisa@fobj.com> 6533 6534 * lib/osx/addressbook.rb, lib/osx/appkit.rb, lib/osx/cocoa.rb, lib/osx/foundation.rb: 6535 move all into framework 6536 65372002-10-04 FUJIMOTO Hisakuni <hisa@fobj.com> 6538 6539 * release 0.3.2 6540 65412002-10-03 FUJIMOTO Hisakuni <hisa@fobj.com> 6542 6543 * lib/osx/addressbook.rb, lib/osx/objc/addressbook.rb: 6544 add a library for AddressBook.framework 6545 6546 * ext/osx_objc/osx_objc.m: define objc_symbol_to_obj 6547 6548 * lib/osx/objc/oc_import.rb: OSX.ns_import become module function 6549 6550 * tool/och_analyzer3.rb: independent from AppKit and Foundation 6551 65522002-09-26 FUJIMOTO Hisakuni <hisa@fobj.com> 6553 6554 * release 0.3.1 6555 6556 * sample, template: 6557 unnecessary to modify rb_main.rb in RubyCocoa application 6558 development. 6559 6560 * ext/osx_objc/RBThreadSwitcher.m: 6561 RBThreadSwitcher.start restart when it's running already. 6562 6563 * ext/osx_objc/osx_objc.m: 6564 define ruby_thread_switcher_start without argments. 6565 thread_switcher_start() when load this library. 6566 6567 * ext/osx_objc/RBThreadSwitcher.h, ext/osx_objc/RBThreadSwitcher.m: 6568 define RBThreadSwitcher#start. interval time is 0.005 second. 6569 6570 * ext/osx_objc/RBObject.m: 6571 Fix a bug that a wrapped Ruby object may be done GC. use 6572 rb_gc_register_address() when init, and use rb_gc_unregister_address() 6573 when dealloc. 6574 6575 * lib/osx/objc/oc_types.rb: 6576 define NSRect#x, NSRect#y, NSRect#width, NSRect#height 6577 65782002-09-25 FUJIMOTO Hisakuni <hisa@fobj.com> 6579 6580 * ext/osx_objc/cocoa-10.1/*, ext/osx_objc/cocoa-10.2/*: 6581 improve exception message description. exception handler for function call. 6582 6583 * lib/osx/objc/oc_exception.rb: 6584 define class OCMessageSendException. add argument to OCException#initialize. 6585 65862002-09-24 FUJIMOTO Hisakuni <hisa@fobj.com> 6587 6588 * ext/osx_objc/mdl_objwrapper.m: 6589 defined OCObjWrapper#objc_methods, OCObjWrapper#objc_method_type 6590 65912002-09-13 FUJIMOTO Hisakuni <hisa@fobj.com> 6592 6593 * release 0.3.0 6594 6595 * sample/itunes_albums.rb, sample/speak.rb: add NSAppleScript sample 6596 6597 * lib/osx/objc/oc_wrapper.rb: define ocnil? - Objective-C nil object? 6598 6599 * app_mains/main_for_pure_ruby.rb: 6600 set Ruby String value into @ruby_program 6601 66022002-09-12 FUJIMOTO Hisakuni <hisa@fobj.com> 6603 6604 * app_mains/main_for_pure_ruby.rb: 6605 CFBundleExecutable for pure ruby application. 6606 6607 * lib/osx/objc/application.rb: 6608 define APP_BUNDLE which is behavior like a mainBundle instead of 6609 "NSBundle </usr/bin> (loaded)" 6610 6611 * ext/osx_objc/osx_objc.m: 6612 move method like functions for ObjcID and OCObject to appropriate file. 6613 6614 * ext/osx_objc/RBSlaveObject.m, ext/osx_objc/RBObject.m: 6615 add objcid public interface. 6616 all-in-one header file. 6617 6618 * ext/osx_objc/OverrideMixin.m: Add cast to restrain warning 6619 6620 * ext/osx_objc/cls_objcid.m: 6621 move method like functions for ObjcID and OCObject to appropriate file. 6622 6623 * ext/osx_objc/osx_objc.h: add objcid public interface. 6624 all-in-one header file. 6625 6626 * ext/osx_objc/cls_objcid.h: add objcid public interface. 6627 6628 * ext/osx_objc/mdl_objwrapper.m: 6629 move method like functions for ObjcID and OCObject to appropriate file. 6630 Move most of procedure about argument of _PRIV_C_ID_PTR to ocdata_conv.m. 6631 6632 * ext/osx_objc/ocdata_conv.m, ext/osx_objc/ocdata_conv.h: 6633 move method like functions for ObjcID and OCObject to appropriate file. 6634 66352002-09-11 FUJIMOTO Hisakuni <hisa@fobj.com> 6636 6637 * tool/och_analyzer3.rb: NSWindowDepth and NSComparisonResult as int 6638 remove 'const' 6639 '[]' as pointer 6640 remve <.*> 6641 6642 * ext/osx_objc/gen_dummy_handler.rb: use och_analyzer3.rb 6643 6644 * ext/osx_objc/cls_objcptr.m: 6645 add methods for bool,int, uint, int8, uint8, int16, uint16, int32 and uint32. 6646 6647 * ext/osx_objc/DummyProtocolHandler.m: 6648 generated by och_analyzer3.rb with cpp3 6649 6650 * sample: 6651 add samples. Hakoiri-Musume, simpleapp, SimpleApp.app 6652 6653 * tool/och_analyzer3.rb: fix a bug that it's judged C_PTR to be ID_PTR. 6654 6655 * ext/osx_objc/mdl_objwrapper.m: Remove unnecessary NSAutoreleasePool 6656 6657 * ext/osx_objc/cls_objcptr.m, ext/osx_objc/cls_objcptr.h, ext/osx_objc/MANIFEST: 6658 add class OSX::ObjcPtr as a C pointer wrapper class. 6659 6660 * ext/osx_objc/ocdata_conv.m: 6661 Undefined _PRIV_C_ARY_UI and defined _PRIV_C_PTR for ObjcPtr class as 6662 a C pointer wrapper class. 6663 6664 Implement translating Ruby's Hash into NSDictionary for a method 6665 argument. 6666 6667 * ext/osx_objc/ocdata_conv.h: 6668 undefined _PRIV_C_ARY_UI and defined _PRIV_C_PTR for ObjcPtr class as 6669 a C pointer wrapper class. 6670 6671 * ext/osx_objc/cls_objcid.m: modify a little 6672 66732002-09-10 FUJIMOTO Hisakuni <hisa@fobj.com> 6674 6675 * ext/osx_objc/osx_objc.m: 6676 add class OSX::ObjcPtr as a C pointer wrapper class. 6677 6678 * ext/osx_objc/cocoa-10.2/rb_NS*.m: 6679 generated by gen_cocoa_wrapper.rb with cpp3 6680 6681 * ext/osx_objc/cocoa-10.2/init_cocoa.m: 6682 add rb_NSAppleEventManager.m and rb_NSScriptKeyValueCoding.m by 6683 gen_cocoa_wrapper.rb with cpp3 6684 6685 * lib/osx/objc/oc_attachments.rb: 6686 add method size, key and values for RCDictionaryAttachment 6687 add method size for RCArrayAttachment 6688 6689 * tool/och_analyzer3.rb: support _PRIV_C_PTR. 6690 modify CPPFLAGS configuration 6691 66922002-09-07 FUJIMOTO Hisakuni <hisa@fobj.com> 6693 6694 * ext/osx_objc/cocoa-10.2/rb_NS*.m: 6695 regenerate with /usr/bin/cpp3 6696 6697 * ext/osx_objc/cocoa-10.2/gen_cocoa_wrapper.rb: 6698 In OS X 10.2, use och_analyzer3 instead of old och_analyzer. 6699 6700 * tool/och_analyzer3.rb: new och_analyzer using "/usr/bin/cpp3". 6701 6702 * tool/och_analyzer.rb: 6703 a type defined by typedef enum is treated as int. 6704 67052002-09-06 FUJIMOTO Hisakuni <hisa@fobj.com> 6706 6707 * app_mains/Makefile: comment out AppMain_LibrubyDylib 6708 67092002-09-05 FUJIMOTO Hisakuni <hisa@fobj.com> 6710 6711 * memo-0_3_0-a1 6712 67132002-09-04 FUJIMOTO Hisakuni <hisa@fobj.com> 6714 6715 * app_mains/Makefile, app_mains/main_using_exec.m, app_mains/main_using_libruby.m: 6716 application main variations 6717 6718 * template/tmpl_pb_RubyProjects: 6719 Jaguar aware template 6720 6721 * template/rubycocoa_app_main, template/rubycocoa_app_main.m: 6722 move it into app_mains directory 6723 6724 * template/EmptyApp.app, template/PureEmptyApp.app, sample/Expenses.app, sample/SimpleApp1.app: 6725 strip -x 6726 6727 * sample/RubyRaiseMan, sample/RubyTypingTutor: 6728 add samples TypingTutor and RaiseMan 6729 67302002-09-03 FUJIMOTO Hisakuni <hisa@fobj.com> 6731 6732 * sample/Expenses.app, sample/MyViewer, sample/Pong, sample/SimpleApp1.app, sample/dotview, sample/mk_app0, sample/mk_app1, sample/multinib, sample/pb_app0, sample/pb_app1, sample/thread0, template/EmptyApp.app, template/PureEmptyApp.app, template/tmpl_make_based: 6733 use execvp("ruby") instead of execv("/usr/bin/ruby") 6734 6735 * template/rubycocoa_app_main, template/rubycocoa_app_main.m: 6736 rename templates 6737 6738 * sample/SimpleApp1.app, sample/dotview, sample/mk_app1, sample/multinib, sample/thread0, template/EmptyApp, template/PureEmptyApp.app, template/tmpl_make_based, sample/Expenses.app: 6739 Info.plist - add key RubyAppConfig 6740 6741 * README.en.txt, README.sjis.txt: 6742 move html documents into doc directory 6743 6744 * sample/Pong, sample/pb_app0, sample/pb_app1: 6745 project.pbxproj, main.m - Jaguar aware 6746 67472002-09-02 FUJIMOTO Hisakuni <hisa@fobj.com> 6748 6749 * sample/*: 6750 Jaguar aware 6751 6752 * now executable with pre-installed ruby in Mac OS X 10.2 (Jaguar). 6753 6754 * ext/osx_objc/*, framework/*: 6755 remove LibRuby.framekwork and move old RubyCocoa.framework sources into bundle source directory 6756 6757 * post-clean.rb, post-config.rb, post-install.rb, tool/install-libruby-frmwk.rb, metaconfig, pre-setup.rb: 6758 dispose LibRuby.framework and RubyCocoa.framework 6759 67602002-08-30 FUJIMOTO Hisakuni <hisa@fobj.com> 6761 6762 * misc/ruby-1.6.7-osx10.2.patch: fix line number bug. (thanks goto-san) 6763 67642002-08-28 FUJIMOTO Hisakuni <hisa@fobj.com> 6765 6766 * release 0.2.7 6767 6768 * post-config.rb: improved libruby_installed? 6769 6770 * tool/och_analyzer.rb: support OSX 10.2 cpp 6771 6772 * ext/osx_objc/cocoa-10.1/*, ext/osx_objc/cocoa-10.2/*, ext/osx_objc/cocoa/*: 6773 separate cocoa directory for OS version 10.2 and 10.1.x 6774 6775 * sample/sndplay.rb, sample/sndplay2.rb, sample/sndplay3.rb: 6776 support 10.2 and 10.1.5 6777 6778 * misc/ruby-1.6.7-osx10.2.patch: ruby-1.6.7 patch for Mac OS X 10.2 6779 6780 * sample/Pong/Model.rb: 6781 fix problem that sound "Bonk" is missing on Mac OS X 10.2. 6782 67832002-08-26 FUJIMOTO Hisakuni <hisa@fobj.com> 6784 6785 * ext/osx_objc/mdl_objwrapper.m: 6786 wrapper_to_s() - fix NSAutoreleasePool memory leak 6787 67882002-08-25 FUJIMOTO Hisakuni <hisa@fobj.com> 6789 6790 * tool/install-ruby.rb: bug fix - File.directory? was nothing. 6791 67922002-08-19 FUJIMOTO Hisakuni <hisa@fobj.com> 6793 6794 * framework/RBRuntime.m: 6795 bugfix for modification RBApplicationMain(argc, argv) 6796 6797 * framework/ocdata_conv.m: use @encode 6798 6799 * framework/RBRuntime.m: modify RBApplicationMain(argc, argv) 6800 6801 * framework/RBObject.h, framework/RBObject.m: 6802 implement initWithRubyScriptCString, initWithRubyScriptString, _copyDescription 6803 6804 * lib/osx/objc/oc_import.rb, ext/osx_objc/osx_objc.m, framework/RBRuntime.m, framework/RBRuntime.h, framework/RBSlaveObject.m: 6805 new mechanism for searching a Ruby class from an OBJC class. 6806 6807 * ext/osx_objc/osx_objc.m: implement OSX.ns_autorelease_pool. 6808 68092002-08-16 FUJIMOTO Hisakuni <hisa@fobj.com> 6810 6811 * framework/ocdata_conv.m: 6812 In rbobj_convert_to_nsobj(), use NSString#stringWithCString:length: 6813 for converting T_STRING. 6814 6815 * lib/osx/objc/oc_wrapper.rb, ext/osx_objc/mdl_objwrapper.m: 6816 moved definition of OCObjWrapper#to_s to mdl_objwrapper.m 6817 68182002-04-07 FUJIMOTO Hisakuni <hisa@fobj.com> 6819 6820 * tool/install-libruby-frmwk.rb: add version and license term 6821 68222002-02-23 FUJIMOTO Hisakuni <hisa@fobj.com> 6823 6824 * tests/alltest.sh: fix wrong path of extention library 6825 68262002-02-22 FUJIMOTO Hisakuni <hisa@fobj.com> 6827 6828 * tests/alltest.sh, tests/test_nsattributedstring.rb, tests/test_nsstring.rb: 6829 prepared unit test framework 6830 6831 * ext/osx_objc/mdl_objwrapper.m: 6832 - ocm_perform(): add the code for _PRIV_C_ID_PTR from 6833 framework/ocdata_conv.m. support OSX::OCDataConvException. 6834 6835 * lib/osx/objc/oc_exception.rb: defined OSX::OCDataConvException 6836 6837 * framework/ocdata_conv.m: 6838 - rb_mdl_osx(), rb_cls_objcid(), rb_cls_ocobj(const char* name): became global functions. 6839 - rbobj_to_ocdata(): moved the code for _PRIV_C_ID_PTR into mdl_objcwrapper.m. 6840 6841 * framework/ocdata_conv.h: 6842 rb_mdl_osx(), rb_cls_objcid(), rb_cls_ocobj(const char* name): became global functions. 6843 68442002-02-12 FUJIMOTO Hisakuni <hisa@fobj.com> 6845 6846 * framework/ocdata_conv.m: 6847 - to_octype(): avoid first character 'r' which is const meaning. 6848 - rbobj_to_ocdata(): modified for _PRIV_C_ID_PTR "^@". 6849 6850 * framework/ocdata_conv.h: 6851 - add the definition of "struct _objcid_data" from "framework/ocdata_conv.h". 6852 - defined _PRIV_C_ID_PTR for "^@" 6853 6854 * ext/osx_objc/cls_objcid.m: 6855 - changed the behavior of ObjcID.new into just only doing allocation. 6856 - moved the definition of "struct _objcid_data" to "framework/ocdata_conv.h". 6857 68582002-02-07 FUJIMOTO Hisakuni <hisa@fobj.com> 6859 6860 * release 0.2.6 6861 6862 * framework/OverrideMixin.m: 6863 handle_ruby_method(): fixed a bug of case that size of return value is 6864 less than sizeof(id). 6865 6866 * ext/osx_objc/cocoa/rb_*.m: 6867 renew with 'const' and 'unsigned' supported auto wrapper generator. 6868 6869 * ext/osx_objc/cocoa/gen_cocoa_wrapper.rb: fix 'const' bug. 6870 6871 * tool/och_analyzer.rb: - fix a type checking bug for 'unsigned'. 6872 - improve type checking for 'const'. 6873 6874 * lib/osx/objc/oc_types.rb: 6875 added constant ZERO for NSPoint,Size,Rect,Range 6876 68772002-02-06 FUJIMOTO Hisakuni <hisa@fobj.com> 6878 6879 * template/tmpl_pb_: add PB Document-based template. rename PB 6880 template directory names 6881 68822002-02-05 FUJIMOTO Hisakuni <hisa@fobj.com> 6883 6884 * framework/ocdata_conv.m: rbobj_convert_to_nsobj(): added 6885 autorelease invocation with RBObject instantiation. 6886 6887 * framework/ocdata_conv.m: rbobj_convert_to_nsobj(): default 6888 behavior was changed into RBObject instantiation. 6889 68902002-02-04 FUJIMOTO Hisakuni <hisa@fobj.com> 6891 6892 * lib/osx/objc/oc_attachments.rb: 6893 - changed a prefix of attachment in "RC" from "NS". 6894 - add RCImageAttachment. 6895 6896 * template/tmpl_pb_based: 6897 support 'PROJECTNAME' 6898 68992002-02-02 FUJIMOTO Hisakuni <hisa@fobj.com> 6900 6901 * template/tmpl_pb_file: 6902 add ProjectBuilder template files 6903 69042002-01-31 FUJIMOTO Hisakuni <hisa@fobj.com> 6905 6906 * framework/RBObject.m, framework/DummyProtocolHandler.m, framework/DummyProtocolHandler.m.erb: 6907 better sheet panel support. The callback method needs to have the name 6908 end with "_returnCode_contextInfo." 6909 6910 * lib/osx/objc/cocoa.rb, lib/osx/objc/cocoa_macros.rb: 6911 defined NSLocalizedStringFromTableInBundle(), 6912 NSLocalizedStringFromTable() and NSLocalizedString(). 6913 69142002-01-28 FUJIMOTO Hisakuni <hisa@fobj.com> 6915 6916 * framework/ocdata_conv.m: 6917 rbobj_to_nsselstr(): fix a bug that invocation of a method name which 6918 start with '_' failed. 6919 6920 * framework/OverrideMixin.m: 6921 imp_c_addRubyMethod(): correct rb_raise's wrong message. (thanks Ogino-san) 6922 6923 * ext/osx_objc/osx_objc.m, framework/RubyCocoa.frmwk.pbproj/project.pbxproj, framework/RubyCocoa.h, framework/Version.h: 6924 version info support 6925 69262002-01-25 FUJIMOTO Hisakuni <hisa@fobj.com> 6927 6928 * release 0.2.5 6929 69302002-01-24 FUJIMOTO Hisakuni <hisa@fobj.com> 6931 6932 * framework/ocdata_conv.m, framework/ocdata_conv.h: 6933 - define _PRIV_C_ARY_UI for 'const unsigned *' 6934 - ocdata_size(), ocdata_malloc(), OCDATA_ALLOCA(): change arguments spec. 6935 6936 * framework/RBRuntime.m: 6937 install_ivar_list(): ocdata_size() arguments spec. changed. 6938 6939 * framework/OverrideMixin.m: 6940 imp_c_addRubyMethod(): use rb_raise instead of rb_warning. 6941 6942 * framework/RBObject.m, ext/osx_objc/mdl_objwrapper.m: 6943 - use alloca instead of malloc for arguments and return data. 6944 - fix the return length bug of ocm_invoke (NSString.availableStringEncodings). 6945 69462002-01-23 Chris Thomas <kenshin@apple.com> 6947 6948 * framework/OverrideMixin.m: 6949 Do not crash when ns_overrides specifies a non-existent method. 6950 69512002-01-22 Ralph Broom <rbroom@broom.org> 6952 6953 * README.en.txt, doc/FAQ.en: 6954 Several text expression was corrected. 6955 69562002-01-21 FUJIMOTO Hisakuni <hisa@fobj.com> 6957 6958 * template/PureEmptyApp.app: 6959 added a new template named PureEmptyApp.app 6960 69612002-01-20 Michael Miller <blackmariah@techie.com> 6962 6963 * doc/FAQ.en, doc/INDEX.en, doc/INSTALL.en: 6964 Expression was corrected. 6965 69662002-01-13 FUJIMOTO Hisakuni <hisa@fobj.com> 6967 6968 * lib/osx/objc/oc_all.rb, lib/osx/objc/oc_attachments.rb: 6969 prepare implementation of mix-in modules named OSX::NSArrayAttachment 6970 and OSX::NSDictionaryAttachment. These modules are add behavior like 6971 Array or Hash to NSArray and NSDictionary. 6972 6973 * framework/DummyProtocolHandler.m.erb, framework/DummyProtocolHandler.m: 6974 panelDidEnd: support the method signature for sheet panels 6975 (NSOpenPanel, NSSavePanel and NSPrintPanel). 6976 6977 * framework/RBObject.m: forwardInvocation: correct a wrong log message. 6978 69792002-01-10 FUJIMOTO Hisakuni <hisa@fobj.com> 6980 6981 * release 0.2.4 6982 69832002-01-10 Chris Thomas <kenshin@apple.com> 6984 6985 * framework/OverrideMixin.m: 6986 handle_ruby_method(): using NSGetSizeAndAlignment for va_arg offset. 6987 69882002-01-10 FUJIMOTO Hisakuni <hisa@fobj.com> 6989 6990 * framework/RBObject.m: 6991 stuffForwardResult: modify return value when methodReturnType is 6992 _C_ID or _C_CLASS. This modification is for solving the problem 6993 which returns "self" from override method of inherited class. 6994 69952002-01-09 FUJIMOTO Hisakuni <hisa@fobj.com> 6996 6997 * release 0.2.3 6998 69992002-01-09 Chris Thomas <kenshin@apple.com> 7000 7001 * ext/osx_objc/cls_objcid.m: 7002 _objcid_initialize_for_new_with_ocid was passing the argument 7003 signature "10*" to rb_scan_args, but was only passing a pointer to 7004 one output argument and was thus missing a second argument for the 7005 array. This caused rb_scan_args to overwrite the next four bytes 7006 off the end of the argument array with the VALUE for an empty 7007 array. Fixed by changing the method signature to "10". 7008 70092002-01-09 FUJIMOTO Hisakuni <hisa@fobj.com> 7010 7011 * ext/osx_objc/osx_objc.m: 7012 change OSX.ruby_thread_switcher_start() arguments. "interval" is 7013 specified NSTimer interval, "wait" 7014 (optional) is rb_thread_wait_for(). 7015 7016 * framework/RBThreadSwitcher.m, framework/RBThreadSwitcher.h: 7017 using rb_thread_schedule() or rb_thread_wait_for() for Ruby thread 7018 switch is selecatable. 7019 7020 * framework/RubyCocoa.frmwk.pbproj/project.pbxproj: 7021 add files RBThreadSwitcher.[hm] 7022 7023 * framework/RBRuntime.h, framework/RBRuntime.m: 7024 separate files for RBThreadSwitcher 7025 7026 * framework/OverrideMixin.m: 7027 imp_respondsToSelector(): suppress; compile warning by using cast 7028 70292002-01-08 FUJIMOTO Hisakuni <hisa@fobj.com> 7030 7031 * release 0.2.2 7032 7033 * post-config.rb, post-install.rb, install.rb, metaconfig, post-clean.rb: 7034 update setup-3.1.0 and modify installing script. 7035 70362002-01-08 FUJIMOTO Hisakuni <hisa@fobj.com> 7037 7038 * release 0.2.1 7039 7040 * sample/thread0, sample/Pong: add samples for using Ruby thread. 7041 70422002-01-06 FUJIMOTO Hisakuni <hisa@fobj.com> 7043 7044 * ext/osx_objc/osx_objc.m, lib/osx/objc/ruby_thread_switcher.rb, framework/RBRuntime.h, framework/RBRuntime.m, framework/rb_main.rb.tmpl: 7045 implement RubyThreadSwithcerStart and 7046 RubyThreadSwithcerStop. (thanks Takaishi-san) 7047 70482002-01-05 Chris Thomas <cjack@cjack.com> 7049 7050 * framework/OverrideMixin.m: 7051 handle_ruby_method(): return-values from ns_override methods that are 7052 exactly 4 bytes long. This obviously prevents a lot of stuff from 7053 working properly, such as the -[NSDocument windowNibName] method. With 7054 this patch, you can create simple document-based apps entirely in 7055 RubyCocoa. 7056 70572002-01-05 FUJIMOTO Hisakuni <hisa@fobj.com> 7058 7059 * tool/och_analyzer.rb: NSRange support 7060 7061 * post-clean.rb, post-config.rb, post-install.rb: 7062 add installing option to specify the location of RubyCocoa framework 7063 70642002-01-01 FUJIMOTO Hisakuni <hisa@fobj.com> 7065 7066 * framework/OverrideMixin.m: 7067 imp_c_addRubyMethod(): implement super invocation facility in override 7068 method. 7069 7070 * ext/osx_objc/mdl_objwrapper.m: 7071 modify log message for perform and invoke. 7072 7073 * html/Makefile: new file 7074 7075 * html/make_html.rb: corresponds to Makefile. 7076 70772001-12-26 FUJIMOTO Hisakuni <hisa@fobj.com> 7078 7079 * Documents are corrected according to the release of Ruby 1.6.6. 7080 70812001-12-21 FUJIMOTO Hisakuni <hisa@fobj.com> 7082 7083 * doc/REFERENCES: add description about "?" suffix. 7084 70852001-12-20 FUJIMOTO Hisakuni <hisa@fobj.com> 7086 7087 * release 0.2.0 7088 7089 * doc/MINITOUR: rename MINITOUR to USING. 7090 7091 * doc/USING: add description to be related to class definitions. 7092 7093 * doc/REFERENCES: add. 7094 70952001-12-19 FUJIMOTO Hisakuni <hisa@fobj.com> 7096 7097 * global refactoring for release 0.2.x. 7098 7099 * ext/osxobjc/*: remove all 7100 7101 * ext/osx_objc/cls_objcid.m: new file. implement class 7102 OSX::ObjcID. 7103 7104 * ext/osx_objc/mdl_objcwrapper.m: new file. implement a 7105 Objective-C part of mixin module OSX::OCObjWrapper. 7106 7107 * ext/osx_objc/osx_objc.m: new file. implement osx_objc extension 7108 library initializer. 7109 7110 * framework/RBObject.[hm], framework/ocdata_conv.[hm]: modify for 7111 refactoring. 7112 7113 * lib/osx/objc: new directory. 7114 7115 * lib/osx/ocobject.rb: remove. lib/osx/objc/oc_object.rb 7116 7117 * lib/osx/objc/oc_exception.rb: new file. implement class 7118 OSX::OCException. 7119 7120 * lib/osx/objc/oc_import.rb: new file. implement module function 7121 OSX::ns_import and facility of deriving Cocoa class. 7122 7123 * lib/osx/objc/oc_object.rb: new file. implement class 7124 OSX::OCObject. 7125 7126 * lib/osx/objc/oc_types.rb: new file. implement some Foundation 7127 Framework data types. 7128 7129 * lib/osx/objc/oc_wrapper.rb: new file. implement a Ruby part of 7130 mixin module OSX::OCObjWrapper. 7131 7132 * samples/*: rewrite for release 0.2.x. 7133 71342001-12-12 FUJIMOTO Hisakuni <hisa@fobj.com> 7135 7136 * release 0.1.3 7137 7138 * ext/osxobjc/extconf.rb: remove "-no-precomp" flag from the 7139 CFLAGS of Makefile for the setup phase speed-up. 7140 (thanks Chris-san) 7141 7142 * ext/osxobjc/osx_ocobject.m, lib/osx/ocobject.rb: add 7143 OSX::OCException class for Objective-C excepitons. 7144 71452001-12-12 Chris Thomas <kenshin@apple.com> 7146 7147 * ext/osxobjc/osx_ocobject.m: converts Objective-C exceptions into 7148 Ruby exceptions. 7149 71502001-12-07 FUJIMOTO Hisakuni <hisa@fobj.com> 7151 7152 * release 0.1.2 7153 71542001-12-07 Chris Thomas <kenshin@apple.com> 7155 7156 * framework/ocdata_conv.h, framework/ocdata_conv.m, 7157 lib/osx/osxobjc.rb: enable basic support for the NSRange data 7158 structure. 7159 71602001-12-03 FUJIMOTO Hisakuni <hisa@fobj.com> 7161 7162 * framework/OverrideMixin.m, framework/RBRuntime.m: use 7163 NSZoneMalloc instead of malloc when memory allocation. 7164 7165 * framework/OverrideMixin.m: remove overrided 7166 "init/initWithFrame". Add overrided "allocWithZone" for creating 7167 Ruby object. 7168 7169 * framework/RBRuntime.m: method_list_alloc(), BUG FIX, use 7170 END_OF_METHODS_LIST(-1) when initialize allocated memory area. 7171 7172 * lib/osx/ocobject.rb: add OSX.ns_import in 7173 OCStubCreator.ib_loadable. 7174 7175 * lib/osx/ocobject.rb: ib_loadable, ib_outlets, ib_overrides. 7176 71772001-11-30 FUJIMOTO Hisakuni <hisa@fobj.com> 7178 7179 * release 0.1.1 7180 7181 * framework: ocdata_conv.m: modify sel_to_rbobj. 7182 7183 * framework: RBObject.m: using Method#arity for getting argc of 7184 ruby methods. 7185 7186 * framework: OverrideMixin.m: a little improvement for imp_init 7187 and imp_intiWithFrame argument passing. 7188 71892001-11-29 FUJIMOTO Hisakuni <hisa@fobj.com> 7190 7191 * framework: RBObject.h, RBObject.m: hide RBObject#rbobjXXX 7192 methods as private method. With reading 'Learning Cocoa Ch.9'. 7193 7194 * framework: OverrideMixin.m: replace sending method selector for 7195 slave RBObject. Old was 'rbobjXXX' type selecotr. 7196 7197 * framework: RBRuntime.m: change method list allocation size 7198 (magical number) 7199 7200 * framework: ocdata_conv.m: rbobj_convert_to_nsobj() implement 7201 converting Ruby's Numeric to NSDecimalNumber. 7202 72032001-11-28 FUJIMOTO Hisakuni <hisa@fobj.com> 7204 7205 * rewrite the dotview sample with reading 'Learning Cocoa Ch.8' 7206 7207 * add template directory and move template samples to this 7208 directory. 7209 7210 * add FAQ document about StuffIt problem. (thanks Shimura-san) 7211 72122001-11-26 FUJIMOTO Hisakuni <hisa@fobj.com> 7213 7214 * release 0.1.0 7215 7216