You can subscribe to this list here.
2002 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(3) |
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(1) |
Feb
(11) |
Mar
(9) |
Apr
(1) |
May
(5) |
Jun
(5) |
Jul
(4) |
Aug
(3) |
Sep
(15) |
Oct
(8) |
Nov
(9) |
Dec
(11) |
2004 |
Jan
(5) |
Feb
(2) |
Mar
(1) |
Apr
(3) |
May
(6) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
(3) |
2005 |
Jan
(1) |
Feb
(7) |
Mar
(6) |
Apr
(36) |
May
(20) |
Jun
(42) |
Jul
(21) |
Aug
(12) |
Sep
(56) |
Oct
(5) |
Nov
(55) |
Dec
(53) |
2006 |
Jan
(43) |
Feb
(83) |
Mar
(98) |
Apr
(42) |
May
(68) |
Jun
(55) |
Jul
(50) |
Aug
(104) |
Sep
(13) |
Oct
(70) |
Nov
(37) |
Dec
(42) |
2007 |
Jan
(56) |
Feb
(18) |
Mar
(43) |
Apr
(80) |
May
(65) |
Jun
(149) |
Jul
(103) |
Aug
(71) |
Sep
(62) |
Oct
(67) |
Nov
(72) |
Dec
(63) |
2008 |
Jan
(64) |
Feb
(63) |
Mar
(31) |
Apr
(42) |
May
(71) |
Jun
(62) |
Jul
(37) |
Aug
(25) |
Sep
(5) |
Oct
(2) |
Nov
(7) |
Dec
(14) |
2009 |
Jan
(20) |
Feb
(15) |
Mar
(19) |
Apr
(8) |
May
(7) |
Jun
|
Jul
(37) |
Aug
(12) |
Sep
(19) |
Oct
(5) |
Nov
(1) |
Dec
(4) |
2010 |
Jan
(5) |
Feb
(24) |
Mar
(16) |
Apr
(9) |
May
(4) |
Jun
|
Jul
|
Aug
(6) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(7) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(5) |
Dec
|
2016 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Hans-Georg <pan...@ma...> - 2007-08-28 19:26:53
|
Am 28.08.2007 um 21:11 schrieb Laurent Sansonetti: > Did you install any build of WebKit on your Tiger > machine, by any chance? I installed the beta of Safari 3.0.3. Hans-Georg |
From: Laurent S. <lsa...@ap...> - 2007-08-28 19:11:54
|
The CoreGraphics errors are well-known and not important, but the =20 WebKit failures are. Did you install any build of WebKit on your Tiger =20= machine, by any chance? Laurent On Aug 28, 2007, at 9:07 PM, Hans-Georg wrote: > Using the latest trunk version I can't generate the bridge metadata > (G5, 10.4.10). It fails for WebKit and there are some additional > errors for CoreGraphics. > > I successfully configured and installed using "ruby install.rb config > --gen-bridge-support=3Dno", but I don't know if I might miss something > now. > > Hans-Georg > > > Generating BridgeSupport metadata for: CoreGraphics ... > bin-0-23555(25242) malloc: *** error for object 0x301d40: incorrect > checksum for freed object - object was probably modified after being > freed, break at szone_error to debug > bin-0-23555(25242) malloc: *** set a breakpoint in szone_error to =20 > debug > bin-0-23555(25242) malloc: *** error for object 0x303810: incorrect > checksum for freed object - object was probably modified after being > freed, break at szone_error to debug > bin-0-23555(25242) malloc: *** set a breakpoint in szone_error to =20 > debug > Collect metadata (185.659579 seconds) > Write final metadata (386.896391 seconds) > Validate XML (0.192509 seconds) > Generate dylib file (3.682548 seconds) > Done (576.587858 seconds). > > > Generating BridgeSupport metadata for: WebKit ... > ./gen_bridge_metadata.rb:1841:in `generate_precompiled_header': Can't > precompile header... aborting (RuntimeError) > command was: gcc -c -x objective-c-header /tmp/src-0-23555.h -o /tmp/ > src-0-23555.h.gch -F"/System/Library/Frameworks" -framework WebKit - > framework Foundation 2>/tmp/log-0-23555 > > In file included from /System/Library/Frameworks/WebKit.framework/ > Headers/DOMObject.h:27, > from /System/Library/Frameworks/WebKit.framework/ > Headers/DOMAbstractView.h:27, > from /tmp/src-0-23555.h:5: > /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h: > 33: error: redeclaration of enumerator =91DOM_INDEX_SIZE_ERR=92 > > ----- snip many lines --- > > In file included from /tmp/src-0-23555.h:122: > /System/Library/Frameworks/WebKit.framework/Headers/DOMTreeWalker.h: > 35: error: redefinition of =91struct DOMTreeWalker=92 > from ./gen_bridge_metadata.rb:520:in `collect' > from build.rb:101 > from build.rb:50:in `measure' > from build.rb:101 > from build.rb:62:in `each' > from build.rb:62 > config failed > hook /Users/hg/Documents/Ruby/svn/rubycocoa/src/framework/post- > config.rb failed: > 'system BSROOT=3D"/Users/hg/Documents/Ruby/svn/rubycocoa/src/framework/ > bridge-support" CFLAGS=3D"" /usr/local/bin/ruby build.rb' failed > try 'ruby install.rb --help' for usage > > > > > = ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a =20 > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Hans-Georg <pan...@ma...> - 2007-08-28 19:07:13
|
Using the latest trunk version I can't generate the bridge metadata =20 (G5, 10.4.10). It fails for WebKit and there are some additional =20 errors for CoreGraphics. I successfully configured and installed using "ruby install.rb config =20= --gen-bridge-support=3Dno", but I don't know if I might miss something =20= now. Hans-Georg Generating BridgeSupport metadata for: CoreGraphics ... bin-0-23555(25242) malloc: *** error for object 0x301d40: incorrect =20 checksum for freed object - object was probably modified after being =20 freed, break at szone_error to debug bin-0-23555(25242) malloc: *** set a breakpoint in szone_error to debug bin-0-23555(25242) malloc: *** error for object 0x303810: incorrect =20 checksum for freed object - object was probably modified after being =20 freed, break at szone_error to debug bin-0-23555(25242) malloc: *** set a breakpoint in szone_error to debug Collect metadata (185.659579 seconds) Write final metadata (386.896391 seconds) Validate XML (0.192509 seconds) Generate dylib file (3.682548 seconds) Done (576.587858 seconds). Generating BridgeSupport metadata for: WebKit ... ./gen_bridge_metadata.rb:1841:in `generate_precompiled_header': Can't =20= precompile header... aborting (RuntimeError) command was: gcc -c -x objective-c-header /tmp/src-0-23555.h -o /tmp/=20 src-0-23555.h.gch -F"/System/Library/Frameworks" -framework WebKit -=20 framework Foundation 2>/tmp/log-0-23555 In file included from /System/Library/Frameworks/WebKit.framework/=20 Headers/DOMObject.h:27, from /System/Library/Frameworks/WebKit.framework/=20 Headers/DOMAbstractView.h:27, from /tmp/src-0-23555.h:5: /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:=20 33: error: redeclaration of enumerator =91DOM_INDEX_SIZE_ERR=92 ----- snip many lines --- In file included from /tmp/src-0-23555.h:122: /System/Library/Frameworks/WebKit.framework/Headers/DOMTreeWalker.h:=20 35: error: redefinition of =91struct DOMTreeWalker=92 from ./gen_bridge_metadata.rb:520:in `collect' from build.rb:101 from build.rb:50:in `measure' from build.rb:101 from build.rb:62:in `each' from build.rb:62 config failed hook /Users/hg/Documents/Ruby/svn/rubycocoa/src/framework/post-=20 config.rb failed: 'system BSROOT=3D"/Users/hg/Documents/Ruby/svn/rubycocoa/src/framework/=20= bridge-support" CFLAGS=3D"" /usr/local/bin/ruby build.rb' failed try 'ruby install.rb --help' for usage |
From: Laurent S. <lsa...@ap...> - 2007-08-28 16:44:07
|
You need to change the cell of your table view. You can do that either from IB or programmatically. There are some info in http://www.cocoadev.com/index.pl?NSTableViewTutorial Note that this is more a Cocoa question than a RubyCocoa question. Laurent On Aug 27, 2007, at 5:27 PM, Yvon Thoraval wrote: > Hey all, > > i's like having NSButton in place of the textfield of each row, in a > given column, of an NSOutineview. > > i presume i must replace an instance of a supposed to be NSTextfield > by an NSButton (switch in my case) > > this is just to let the user to switch on/off the given row. > > -- > yvon > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Laurent S. <lsa...@ap...> - 2007-08-28 14:47:21
|
Thanks for the report, this issue should be fixed in r2018. Laurent On Aug 28, 2007, at 3:22 PM, Hans-Georg wrote: > I can crash RubyCoca on an iMac G5 running OSX 10.4.10 : > > require 'osx/cocoa' > puts "RubyCocoa #{OSX::RUBYCOCOA_VERSION}" > string = "a\nstring\nwith\nfew\nlines\n" > scanner = OSX::NSScanner.scannerWithString(string) > go, line = scanner.scanUpToString_intoString_("\n") > while go > puts line > go, line = scanner.scanUpToString_intoString_("\n") > end > puts "Done" > > iMac:~ hg$ /usr/bin/ruby crash.rb > RubyCocoa 0.12.0 > a > string > with > few > lines > crash.rb:9: [BUG] Segmentation fault > ruby 1.8.2 (2004-12-25) [universal-darwin8.0] > Abort trap > > Is there a way to use the while condition directly with a function > with several return values? > > Hans-Georg > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Laurent S. <lsa...@ap...> - 2007-08-28 14:40:03
|
Actually, the developer scripts are available within =20 RubyCocoa.framework (in the Tools sub-directory), but I agree that we =20= should make them visible system-wide too (using symlinks). /Developer/=20= Tools is an idea, but it isn't in the $PATH by default. Maybe /usr/=20 local/bin would be more appropriate (it isn't in $PATH by default =20 too, but I suspect most (all?) developers have it). Thanks, Laurent On Aug 28, 2007, at 1:59 PM, Rupert BARROW wrote: > Hi, > > I am afraid that I cannot find the developer tools (standaloneify, > rb_nibtool.rb) installed by this installer. > I can only find it in the sources; it would be nice to have them > installed in /Developer/Tools. > > Cheers, > Rup > > Le 27 ao=FBt 07 =E0 17:23, = rub...@li... > a =E9crit : > >> I am honored to announce the immediate release of RubyCocoa 0.12.0. > > > > = ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a =20 > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Hans-Georg <pan...@ma...> - 2007-08-28 13:22:34
|
I can crash RubyCoca on an iMac G5 running OSX 10.4.10 : require 'osx/cocoa' puts "RubyCocoa #{OSX::RUBYCOCOA_VERSION}" string = "a\nstring\nwith\nfew\nlines\n" scanner = OSX::NSScanner.scannerWithString(string) go, line = scanner.scanUpToString_intoString_("\n") while go puts line go, line = scanner.scanUpToString_intoString_("\n") end puts "Done" iMac:~ hg$ /usr/bin/ruby crash.rb RubyCocoa 0.12.0 a string with few lines crash.rb:9: [BUG] Segmentation fault ruby 1.8.2 (2004-12-25) [universal-darwin8.0] Abort trap Is there a way to use the while condition directly with a function with several return values? Hans-Georg |
From: Rupert B. <rup...@fr...> - 2007-08-28 11:59:39
|
Hi, I am afraid that I cannot find the developer tools (standaloneify, =20 rb_nibtool.rb) installed by this installer. I can only find it in the sources; it would be nice to have them =20 installed in /Developer/Tools. Cheers, Rup Le 27 ao=C3=BBt 07 =C3=A0 17:23, = rub...@li... =20 a =C3=A9crit : > I am honored to announce the immediate release of RubyCocoa 0.12.0. |
From: Lon B. <lo...@sp...> - 2007-08-28 01:50:24
|
On Aug 27, 2007, at 12:04 PM, Tim Perrett wrote: > I've been thinking about ruby latly, and how people cope with > releasing live, production code, in a commercial manner that protects > systems (and code) from abuse. If your goal is to secure your application completely, I think that game is changing rapidly and honestly is becoming a losing battle. The market is becoming more attuned to free software and ad-driven products, so overly harsh licensing and code protection mechanisms will hinder adoption and sales. -- Lon |
From: Brian C. <bm...@sh...> - 2007-08-27 23:12:14
|
On Aug 27, 2007, at 12:04 PM, Tim Perrett wrote: > I've been thinking about ruby latly, and how people cope with > releasing live, production code, in a commercial manner that protects > systems (and code) from abuse. What abuses are you looking to protect? Redistribution? Cloning? Stealing of intellectual property? Before creating a solution, please define your problem a bit more. Most all software is "protected" by having appropriate licenses & EULAs. If you need something more than a simple tool to keep honest people honest, then I'm sorry... thats going to get hard ... fast. Brian |
From: Jon B. <jo...@gm...> - 2007-08-27 22:46:22
|
I was subscribed to #macsb mailing list for a while and the conversation *always* seemed to come up (I think that is where the post by Allan generated from as well) and there were like a few dozen good ideas. You might have more luck subscribing + posting this question to their mailing list ... http://macsb.ironcoder.org/wiki/Main_Page http://macsb.ironcoder.org/wiki/WhoIsWho I have not thought about it yet but from what I have read your idea is pretty much like what the Aquatic Prime key generation does. http://www.aquaticmac.com/ - Jon On Aug 27, 2007, at 12:04 PM, Tim Perrett wrote: > Hey all > > Firstly, I apologize that in this post I ramble on a bit, but please > bear with it :) > > I've been thinking about ruby latly, and how people cope with > releasing live, production code, in a commercial manner that protects > systems (and code) from abuse. We all are probally well aware that > languages that can be compiled (java etc etc) can be un-compiled, so > things like Ruby2C are still vulnerable to de-compilation techniques. > Which then led me onto to think, well, if anything that can be > compiled can be un-compiled, compilation as a method of protection of > the code base is fairly pointless; as is obfuscation of code (as it > can be tidied very simply). > > So then, a kind of licensing scheme would probably be the best method > to protect commercial systems from abuse? Whilst no license key > encryption is impregnable - as I write this i believe 512bit can be > factored fairly easily, and the security of 768bit is questionable, > leaving only 1024 bit with any kind of industrial strength - it would > seriously hamper most would-be-attackers would it not? I just > wondered how (if at all) anyone had dealt with managing there ruby > systems licensing and how they had gone about it considering the code > base is easily readable? In our RC apps all one need do is browse > into Contents/Resources and the source files are free for all to see. > > I was just intrigued to see how people, if anyone, had either thought > or implemented anything like this for an RC app, or even a rails app > for that matter? I read this article with interest: > > http://macromates.com/sigpipe/2004/09/05/using-openssl-for-license- > keys/ > > I totally understand that NO system would ever be safe, as there is > always someone who has either (or both) the inclination and/or time > to hack it. > |
From: Tim P. <he...@ti...> - 2007-08-27 16:05:17
|
Hey all Firstly, I apologize that in this post I ramble on a bit, but please bear with it :) I've been thinking about ruby latly, and how people cope with releasing live, production code, in a commercial manner that protects systems (and code) from abuse. We all are probally well aware that languages that can be compiled (java etc etc) can be un-compiled, so things like Ruby2C are still vulnerable to de-compilation techniques. Which then led me onto to think, well, if anything that can be compiled can be un-compiled, compilation as a method of protection of the code base is fairly pointless; as is obfuscation of code (as it can be tidied very simply). So then, a kind of licensing scheme would probably be the best method to protect commercial systems from abuse? Whilst no license key encryption is impregnable - as I write this i believe 512bit can be factored fairly easily, and the security of 768bit is questionable, leaving only 1024 bit with any kind of industrial strength - it would seriously hamper most would-be-attackers would it not? I just wondered how (if at all) anyone had dealt with managing there ruby systems licensing and how they had gone about it considering the code base is easily readable? In our RC apps all one need do is browse into Contents/Resources and the source files are free for all to see. I was just intrigued to see how people, if anyone, had either thought or implemented anything like this for an RC app, or even a rails app for that matter? I read this article with interest: http://macromates.com/sigpipe/2004/09/05/using-openssl-for-license-keys/ I totally understand that NO system would ever be safe, as there is always someone who has either (or both) the inclination and/or time to hack it. Apologies that this is slightly OT, but everyone on this forum seems to have a pretty wide ranging experience with ruby and was just wondering... Cheers Tim |
From: Yvon T. <yvo...@gm...> - 2007-08-27 15:27:29
|
Hey all, i's like having NSButton in place of the textfield of each row, in a given column, of an NSOutineview. i presume i must replace an instance of a supposed to be NSTextfield by an NSButton (switch in my case) this is just to let the user to switch on/off the given row. -- yvon |
From: Yvon T. <yvo...@gm...> - 2007-08-27 15:23:13
|
2007/8/27, Laurent Sansonetti <lsa...@ap...>: > > awakeFromNib is a method that will automatically be messaged on your > objects when loaded from the nib file. You do not connect to this > method manually. > > For example, if you instantiate a delegate object in IB, once the nib > file will be loaded by your application, your delegate object will be > created, then the awakeFromNib method will be messaged, if your object > responds to. > > > http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSNibAwaking_Protocol/Reference/Reference.html fine, thanks, it's clear to me now ;-) -- yvon |
From: Laurent S. <lsa...@ap...> - 2007-08-27 13:14:07
|
Hi all, Just for the fun, I created a "RubyCocoa Lovers" group on facebook.com. Feel free to join! http://www.facebook.com/group.php?gid=5575462250 Laurent |
From: Laurent S. <lsa...@ap...> - 2007-08-27 13:11:14
|
awakeFromNib is a method that will automatically be messaged on your objects when loaded from the nib file. You do not connect to this method manually. For example, if you instantiate a delegate object in IB, once the nib file will be loaded by your application, your delegate object will be created, then the awakeFromNib method will be messaged, if your object responds to. http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSNibAwaking_Protocol/Reference/Reference.html Laurent On Aug 27, 2007, at 11:53 AM, Yvon Thoraval wrote: > may be i'm "completely" lost but i don't see a way to get > awakefromnib from Interface builder ? > > no way to connect the instance of NSObject, my application > controler, to this awake from nib in order to setup every constants/ > variables of the app. > > may it's no more needed the initialize method could do the trick ??? > > best > -- > yvon > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Yvon T. <yvo...@gm...> - 2007-08-27 09:53:55
|
may be i'm "completely" lost but i don't see a way to get awakefromnib from Interface builder ? no way to connect the instance of NSObject, my application controler, to this awake from nib in order to setup every constants/variables of the app. may it's no more needed the initialize method could do the trick ??? best -- yvon |
From: <mon...@ma...> - 2007-08-25 21:39:48
|
ok, I'll make a sample and post it for you. thanks RD On 25 Aug 2007, at 21:56, Laurent Sansonetti wrote: > Hi, > > This might be a RubyCocoa bug. However it's hard to know. Would it be > possible to provide us a sample project that reproduces the problem? > That would be easier for us to investigate and fix. > > At least it seems that RubyCocoa can convert Bignum objects as long > long: > >>> NSNumber.numberWithLongLong(1_000_000_000_000).to_i > => 1000000000000 > > Laurent > > On Aug 25, 2007, at 7:21 PM, mon...@ma... wrote: > >> Hi I'm trying to write an importer for Core-data from mysql. >> >> when I try and pass a field that has a value of decimal in mysql, I >> get the following error. >> >> 2007-08-25 18:15:50.350 accounts_v1[5839] Importer#importCategories: >> OSX::OCException: NSInvalidArgumentException - Unacceptable type of >> value for attribute: property = "rate"; desired type = >> NSDecimalNumber; given type = <RBObject: 0x452a0>; value = <RBObject: >> 0x2aba990>. >> >> it works fine for the strings, >> >> >> Is there a way I can force the ruby class to return the correct >> objective C type for the accessor "rate" ? >> >> thanks >> >> RD >> >> --------------------------------------------------------------------- >> ---- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a >> browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Laurent S. <lsa...@ap...> - 2007-08-25 20:56:17
|
Hi, This might be a RubyCocoa bug. However it's hard to know. Would it be possible to provide us a sample project that reproduces the problem? That would be easier for us to investigate and fix. At least it seems that RubyCocoa can convert Bignum objects as long long: >> NSNumber.numberWithLongLong(1_000_000_000_000).to_i => 1000000000000 Laurent On Aug 25, 2007, at 7:21 PM, mon...@ma... wrote: > Hi I'm trying to write an importer for Core-data from mysql. > > when I try and pass a field that has a value of decimal in mysql, I > get the following error. > > 2007-08-25 18:15:50.350 accounts_v1[5839] Importer#importCategories: > OSX::OCException: NSInvalidArgumentException - Unacceptable type of > value for attribute: property = "rate"; desired type = > NSDecimalNumber; given type = <RBObject: 0x452a0>; value = <RBObject: > 0x2aba990>. > > it works fine for the strings, > > > Is there a way I can force the ruby class to return the correct > objective C type for the accessor "rate" ? > > thanks > > RD > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: <mon...@ma...> - 2007-08-25 17:21:42
|
Hi I'm trying to write an importer for Core-data from mysql. when I try and pass a field that has a value of decimal in mysql, I get the following error. 2007-08-25 18:15:50.350 accounts_v1[5839] Importer#importCategories: OSX::OCException: NSInvalidArgumentException - Unacceptable type of value for attribute: property = "rate"; desired type = NSDecimalNumber; given type = <RBObject: 0x452a0>; value = <RBObject: 0x2aba990>. it works fine for the strings, Is there a way I can force the ruby class to return the correct objective C type for the accessor "rate" ? thanks RD |
From: Laurent S. <lau...@gm...> - 2007-08-14 16:05:57
|
Hi, I am honored to announce the immediate release of RubyCocoa 0.12.0. RubyCocoa is a Mac OS X framework that allows Cocoa programming in the object-oriented scripting language Ruby. In other words, it is a bridge that let you access Objective-C objects from Ruby, and vice-versa. You can learn more about RubyCocoa on our new website: http://rubycocoa.sf.net This release fixes lots of important bugs, and also bring a few interesting new features. All users are encouraged to upgrade. Following are the release notes. Enjoy! The RubyCocoa Team Changes: - Introduced support for using Ruby threads with RubyCocoa. The Ruby interpreter must be patched in order to activate the support. The binary release ships an already-patched libruby, but if you build from the sources, please read misc/README_THREADING. If you installed Ruby from MacPorts, it should be already pre-patched. - Now automatically registering informal protocol methods defined in Ruby to the ObjC runtime. - When messaging Objective-C from Ruby, we now auto-define the Ruby methods on the proxy class (by generating Libffi closures), to make #method_missing called only once per method. - Better generic Ruby -> ObjC boolean conversion, now trying to respect the Ruby semantics. Ruby's true and false are converted as true and false, all integers (including 0) are converted as true and nil as false. - When ObjC tries to message a private Ruby method, raises an exception. - Implemented foo? -> isFoo method name conversion. - Added the docs for the ruby-like setters that are supported by the bridge. So for instance NSView will have documentation for #setNeedsDisplay() and #needsDisplay=(). - Fixed a PPC bug where floating types were not properly handled by variadic arguments. - Fixed a PPC regression when converting small integers (less than 4 bytes) from a metadata-driven Ruby method (ex: an informal protocol method). - ObjcPtr.new initialize ObjcPtr.encoding as "uchar" by default and clear allocated memory. - ObjcPtr#allocate_as_int{8,16,32} set ObjcPtr.encoding" as "char", "short", and "int", respectively. - OSX.objc_method: Add acceptable types: BOOL, longlong, ulonglong and cstr. - standalonify: Fixed a bug that occurs when the app bundle already contains the RubyCocoa.framework. - rb_nibtool: When writing a plist for a given Ruby source code, make sure the outlets and actions are ordered in the same order they have been defined in the given code. - rb_nibtool: Support passing '-' as the source code path, which will read on stdin. - rb_nibtool: Write the property list as XML. - rb_nibtool: If the RubyNode library is present in the system, uses it to collect the necessary IB metadata, by parsing the given Ruby source code file. If not, uses the old behavior that requires the given Ruby source code file and collect the metadata via code evaluation. - Work around possible warnings when defining module functions from bridge support, in case a function has already been defined. - Templates: Modified method definition by appropriate syntax, because it was written by obsoleted syntax. - Templates: Removed the .pch files in CoreData projects. - Templates: Modified the main.m files to `#import <Cocoa/Cocoa.h>', to give a hint to the Xcode indexer. - Samples: New CocoaRepl example. - Samples: Removed references to the 10.4u SDK and use instead the current SDK. - Fixed --build-universal for systems higher than 10.4. - Improved ObjcPtr#regard_as to accept an ObjC runtime encoding string. - Added the class method ActiveRecordProxy.on_get() which can be used to define filters to be applied when a specified key is requested in rbValueForKey. So the filter will be run before returning the data. - Fixed some bugs when importing NSProxy-based classes. - Define #dup and #clone for C structures boxed types. - Proxy classes are now automagically defined when a ActiveRecord::Base subclass is defined. ActiveRecord::Base#to_activerecord_proxy now caches the proxy class name. - Fixed NULL to C strings and opaque types conversion. |
From: RD <di...@cl...> - 2007-08-14 09:17:04
|
ok scrap that question, it was working. IB had set the field to wrap and was truncating the characters doh On 14 Aug 2007, at 08:14, RD wrote: > Hi, I'm trying to save data into a coredata managed object > > the problem I have is when I send the ruby string using > setValueForKey, it truncates the string if it contains characters > such as . or ? > > I'm not sure why it only accepts certain characters > > Here is my example > > If you uncomment the example line, the value that is saved is > http://www. > > What am I doing wrong ? > > > > > # create the item > new_item = > OSX::NSEntityDescription.insertNewObjectForEntityForName_inManagedObje > ctContext( "watchedItem", context ) > > # set its values > > new_item.setValue_forKey( item.id, "ebayID") > new_item.setValue_forKey( item.title, "title" ) > new_item.setValue_forKey( item.url, "url" ) > > > # new_item.setValue_forKey( 'http://www. > 123456789012345678901234567890123456789012345678901234567890', "url" ) > new_item.setValue_forKey( item.price, "price" ) > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Yvon T. <yvo...@gm...> - 2007-08-14 08:51:31
|
2007/8/13, jea...@gm... <jea...@gm...>: > > > > > then i might even use a python framework from RubyCocoa ? > > > > nah, it just points to a third party objc framework that wraps keychain > access - you could take the framework, build BS files for it, embed it in > your application and then off you go. i think the article is specific to > using it in python but it could be used in ruby too no? > OK, i'll see that this afternoon... ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > -- yvon |
From: RD <did...@ma...> - 2007-08-14 07:14:16
|
Hi, I'm trying to save data into a coredata managed object the problem I have is when I send the ruby string using setValueForKey, it truncates the string if it contains characters such as . or ? I'm not sure why it only accepts certain characters Here is my example If you uncomment the example line, the value that is saved is http://www. What am I doing wrong ? # create the item new_item = OSX::NSEntityDescription.insertNewObjectForEntityForName_inManagedObject Context( "watchedItem", context ) # set its values new_item.setValue_forKey( item.id, "ebayID") new_item.setValue_forKey( item.title, "title" ) new_item.setValue_forKey( item.url, "url" ) # new_item.setValue_forKey( 'http://www. 123456789012345678901234567890123456789012345678901234567890', "url" ) new_item.setValue_forKey( item.price, "price" ) |
From: <jea...@gm...> - 2007-08-13 17:59:36
|
On 8/13/07, Yvon Thoraval <yvo...@gm...> wrote: > > > > 2007/8/12, jea...@gm... <jea...@gm...>: > > > > > depending if you need to temporarily authenticate the user for admin > > access or keychain, you would use different tools. > > > > this might be of help > > http://developer.apple.com/documentation/Security/Conceptual/SecureCodingGuide/Articles/SecuritySvcs.html > > > > > > and maybe even this (you could generate bridge support files, embed them > > in the framework and embed the framework in your app): > > > > http://bdash.net.nz/blog/2004/08/30/example-code-mac-os-x-keychain-access-from-python/ > > > > cheers, > > jean-pierre > > > > > then i might even use a python framework from RubyCocoa ? > nah, it just points to a third party objc framework that wraps keychain access - you could take the framework, build BS files for it, embed it in your application and then off you go. i think the article is specific to using it in python but it could be used in ruby too no? cheers, jean-pierre |