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: Maarten E. <ma...@ir...> - 2007-07-04 15:06:29
|
I'm trying to compile rubycocoa on a intel mac, but the build process exits with an error when it reaches WebKit. The error message follows below: 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-14642.h -o /tmp/src-0-14642.h.gch -F"/System/Library/Frameworks" -framework WebKit -framework Foundation 2>/tmp/log-0-14642 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-14642.h:5: /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:33: error: redeclaration of enumerator 'DOM_INDEX_SIZE_ERR' /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:54: error: previous definition of 'DOM_INDEX_SIZE_ERR' was here /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:34: error: redeclaration of enumerator 'DOM_DOMSTRING_SIZE_ERR' /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:55: error: previous definition of 'DOM_DOMSTRING_SIZE_ERR' was here /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:35: error: redeclaration of enumerator 'DOM_HIERARCHY_REQUEST_ERR' /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:56: error: previous definition of 'DOM_HIERARCHY_REQUEST_ERR' was here /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:36: error: redeclaration of enumerator 'DOM_WRONG_DOCUMENT_ERR' /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:57: error: previous definition of 'DOM_WRONG_DOCUMENT_ERR' was here /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:37: error: redeclaration of enumerator 'DOM_INVALID_CHARACTER_ERR' /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:58: error: previous definition of 'DOM_INVALID_CHARACTER_ERR' was here /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:38: error: redeclaration of enumerator 'DOM_NO_DATA_ALLOWED_ERR' /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:59: error: previous definition of 'DOM_NO_DATA_ALLOWED_ERR' was here /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:39: error: redeclaration of enumerator 'DOM_NO_MODIFICATION_ALLOWED_ERR' /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:60: error: previous definition of 'DOM_NO_MODIFICATION_ALLOWED_ERR' was here /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:40: error: redeclaration of enumerator 'DOM_NOT_FOUND_ERR' /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:61: error: previous definition of 'DOM_NOT_FOUND_ERR' was here /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:41: error: redeclaration of enumerator 'DOM_NOT_SUPPORTED_ERR' /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:62: error: previous definition of 'DOM_NOT_SUPPORTED_ERR' was here /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:42: error: redeclaration of enumerator 'DOM_INUSE_ATTRIBUTE_ERR' /System/Library/Frameworks/WebKit.framework/Headers/DOMCore.h:63: error: previous definition of 'DOM_INUSE_ATTRIBUTE_ERR' was here /System/Library/Frameworks/WebKit.framework/Headers/DOMException.h:43: error: redeclaration of enumerator 'DOM_INVALID_STATE_ERR' ... In file included from /tmp/src-0-14642.h:116: /System/Library/Frameworks/WebKit.framework/Headers/DOMRGBColor.h:33: error: redefinition of 'struct DOMRGBColor' In file included from /tmp/src-0-14642.h:118: /System/Library/Frameworks/WebKit.framework/Headers/DOMStyleSheetList.h:32: error: redefinition of 'struct DOMStyleSheetList' In file included from /tmp/src-0-14642.h:122: /System/Library/Frameworks/WebKit.framework/Headers/DOMTreeWalker.h:35: error: redefinition of 'struct DOMTreeWalker' 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/maarten/Desktop/Download/rubycocoa/framework/post-config.rb failed: 'system BSROOT="/Users/maarten/Desktop/Download/rubycocoa/framework/bridge-support" CFLAGS="" /opt/local/bin/ruby build.rb' failed try 'ruby install.rb --help' for usage Any idea what may cause this. For the record: I'm running OS X 10.4.9, with Safari 3 beta installed (different webkit?). I use ruby 1.8.6 from MacPorts. I also compiled rubycocoa on a PPC machine with 10.4.10 and Safari 3 beta installed. Thanks and regards, Maarten |
From: Tim P. <he...@ti...> - 2007-07-04 10:49:02
|
Thanks for the link Laurent, very interesting. In iPhoto apple seem to have implemented there IPToolbarItem, to which they insert into the custom IPToolbarView as a decendant of NSObject... How then are they inserting it into a view? Other implementations seem to do that also with NSObject subclasses. I thought that anything that is going to be displayed on a window have to be a descendant of NSView? Thanks Tim |
From: Laurent S. <lsa...@ap...> - 2007-07-04 09:47:41
|
Hi Tim. On Jul 4, 2007, at 10:52 AM, Tim Perrett wrote: > Hey Guys > > I am subclassing NSView to try and make a toolbar like the one in > iPhoto (the one which runs accross the bottom quarter of the window, > holiding the operation buttongs like "Play" and "Search"). I took a > look at what apple had done with iPhoto and it seems they subclassed > NSView, then subclassed there new subclass calling it IPToolbar. I > would look to replicate this, so i have subclassed NSView setting the > background colour with no problem. > > So my question is, if i had an array of items (NSMutableArray), how > would I add and remove items from my view? Would this just be like > adding and removing any other object? I have not done anything with > rolling your own views before, so im at a bit of a loss on the actual > implementation code.. I suggest you to have a look at: http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/index.html I suspect the "Working with the view Hierarchy" and "Creating a Custon View" sections will interest you :-) > Also, are there any performance issues in making the view code go > over the bridge? I see the RubyCocoaStickies example which seems to > work fine using RC for the view implementations. Normally no. I suggest you to start writing your implementation in Ruby, and if this turns out to be slow, you can profile the code and rewrite the slow code in ObjC. But before rewriting the code in ObjC, feel free to discuss this with us, maybe the code can be accelerated. Generally, you should just avoid to cross the bridge too often. For example, if you have a very complicated drawing method in your view (that calls the C/ObjC a lot), it can make your application a bit slow. But very recently in trunk, a powerful optimization was introduced. Calls from Ruby to ObjC should be a lot faster than in the previous releases. HTH, Laurent |
From: Tim P. <he...@ti...> - 2007-07-04 08:54:12
|
Hey Guys I am subclassing NSView to try and make a toolbar like the one in iPhoto (the one which runs accross the bottom quarter of the window, holiding the operation buttongs like "Play" and "Search"). I took a look at what apple had done with iPhoto and it seems they subclassed NSView, then subclassed there new subclass calling it IPToolbar. I would look to replicate this, so i have subclassed NSView setting the background colour with no problem. So my question is, if i had an array of items (NSMutableArray), how would I add and remove items from my view? Would this just be like adding and removing any other object? I have not done anything with rolling your own views before, so im at a bit of a loss on the actual implementation code.. Also, are there any performance issues in making the view code go over the bridge? I see the RubyCocoaStickies example which seems to work fine using RC for the view implementations. Would anyone be able to push me in the right direction? Any help would be greatly appreciated! Cheers Tim |
From: Tim P. <he...@ti...> - 2007-07-03 19:15:22
|
Hey Jon Thats right, I dont have any particular need for it right now, I was just interested to see when something might be comming along as it would be great to have a play with it, thats all :) Tim On 3 Jul 2007, at 17:51, Jon Baer wrote: > You can use ActiveResource gem now in your code but I think you are > referring to specific CoreData/ArrayController/Bindings usage no? > > - Jon |
From: Jon B. <jo...@gm...> - 2007-07-03 16:51:38
|
You can use ActiveResource gem now in your code but I think you are referring to specific CoreData/ArrayController/Bindings usage no? - Jon On Jul 3, 2007, at 10:20 AM, Tim Perrett wrote: > Hey All > > In Eloys screen cast about AR he mentioned that soon there would be > Active Resource support for consuming REST services out of rails and > I wondered when this might come about and how the implementation > might work? > > Cheers > > Tim > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Tim P. <he...@ti...> - 2007-07-03 14:37:52
|
Sounds good - I think this is something that has great potential integrating with rails and would be really interested in seeing how it could be implemented. Cheers Tim On 3 Jul 2007, at 15:25, Eloy Duran wrote: > I have semi working code, but because of a lot of paid work (good to > have sometimes :) ) I haven't had time to finish it yet. > I'll try to have a stab at it this week. |
From: Eloy D. <elo...@gm...> - 2007-07-03 14:26:00
|
Hey Tim, I have semi working code, but because of a lot of paid work (good to have sometimes :) ) I haven't had time to finish it yet. I'll try to have a stab at it this week. Cheers, Eloy On 7/3/07, Tim Perrett <he...@ti...> wrote: > Hey All > > In Eloys screen cast about AR he mentioned that soon there would be > Active Resource support for consuming REST services out of rails and > I wondered when this might come about and how the implementation > might work? > > Cheers > > Tim > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Tim P. <he...@ti...> - 2007-07-03 14:22:14
|
Hey All In Eloys screen cast about AR he mentioned that soon there would be Active Resource support for consuming REST services out of rails and I wondered when this might come about and how the implementation might work? Cheers Tim |
From: Jon B. <jo...@gm...> - 2007-06-28 12:05:18
|
I know the CocoaCast guys were trying to come up w/ a simple project that they would go through w/ people who wanted to learn Cocoa (I think it was going to be a PDF editor of some type), would be cool to translate the same project into RubyCocoa. Might make more sense to wait until the tools like ~rubycocoa~ cli are ironed out since showing something one week might be completely different next month and cause some confusion. - Jon On Jun 28, 2007, at 4:20 AM, Tim Perrett wrote: > I think thats an excellent idea Jon! I for one would love to hear a > cast about RC - I guess it just depends if those guys would want to? > > Tim > > On 27 Jun 2007, at 19:57, Jon Baer wrote: > >> I think we should suggest Eloy / Laurent / Hisa for interview on >> RubyCocoa. >> >> - Jon > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Tim P. <he...@ti...> - 2007-06-28 08:22:13
|
I think thats an excellent idea Jon! I for one would love to hear a cast about RC - I guess it just depends if those guys would want to? Tim On 27 Jun 2007, at 19:57, Jon Baer wrote: > I think we should suggest Eloy / Laurent / Hisa for interview on > RubyCocoa. > > - Jon |
From: <grz...@in...> - 2007-06-28 07:21:23
|
=0AHi!=0AFirst, sorry for my English.=0A=0AI'm completly new to RubyCocoa a= nd I'm trying to learn it.=0ACan You tell me, how is best to start?=0AI'm t= rying to find some tutorials or very simple exapmles, but I can't.=0AMaybe = can You help me, especially with connecting code with Interface Builder.=0A= =0AI try to understand how should I do very simple app. Some buttons and te= xt fields in IB and simple ruby code. I don't know how to connect this elem= ents with code. I know there are outlets and actions, but how to use it.=0A= =0AThanks for any help.=0A=0ARegards=0AGrzessnik ---------------------------------------------------------------------- Pochwal sie innym, jak mieszkasz! >>> http://link.interia.pl/f1abe |
From: Jon B. <jo...@gm...> - 2007-06-27 18:57:38
|
I think we should suggest Eloy / Laurent / Hisa for interview on RubyCocoa. - Jon On Jun 27, 2007, at 11:22 AM, Tim Perrett wrote: > Ahh now there good sites! I had read the cocoadevcentral article > before, but the podcast sites really are good - some very good > articles on there :) > > Cheers all > > Tim > > On 27 Jun 2007, at 12:04, Jon Baer wrote: > >> http://www.cocoadevcentral.com/articles/000086.php >> http://www.cocoacast.com >> http://www.latenightcocoa.com > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Tim P. <he...@ti...> - 2007-06-27 18:50:00
|
Ahh now there good sites! I had read the cocoadevcentral article before, but the podcast sites really are good - some very good articles on there :) Cheers all Tim On 27 Jun 2007, at 12:04, Jon Baer wrote: > http://www.cocoadevcentral.com/articles/000086.php > http://www.cocoacast.com > http://www.latenightcocoa.com |
From: Jon B. <jo...@gm...> - 2007-06-27 11:05:00
|
Glad to hear you got it going ... I think the things which have made it click more for me have been between the Cocoa podcasts and a few central blogs ... http://www.cocoadevcentral.com/articles/000086.php http://www.cocoacast.com http://www.latenightcocoa.com HTH, - Jon On Jun 26, 2007, at 6:23 PM, Tim Perrett wrote: > Hey Jon > > I worked out how to access it... not that I understand much about > CoreData (hence im learning at the moment), it seems that everything > is centered on the managed object context. All i needed to do was > attach an outlet to my ObjectController and call its managed object > controller, from there I could access various methods from which to > get at the relevant entities. I should imagine it would be possible > to do this with ArrayControllers also. > > It does strike me that there is not a great deal of documentation of > the basics of bindings and core data in general - its been a fairly > "feel your way in the dark, passing the occasional light blub" > scenario!! > > Thanks for your help > > Tim > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Dave B. <dav...@3d...> - 2007-06-27 10:27:21
|
I am trying to NSArchive and NSUnarchive some objects by first marshaling them (these are pure Ruby objects) and it looks like only part of the object tree is being archived. Marshal.dump returns a Ruby string (really a byte array) and some byte value (probably 0) is causing an early termination when the string is converted to NSData automatically by NSArchive. The section of code that demonstrates this is: a = NSArchiver.archivedDataWithRootObject("a simple string".to_s) u = NSUnarchiver.unarchiveObjectWithData(a) pp a.to_s pp u.to_s puts "---" dumped_data = Marshal.dump(@elementsOnPath) pp dumped_data a = NSArchiver.archivedDataWithRootObject(dumped_data.to_s) u = NSUnarchiver.unarchiveObjectWithData(a) pp a.to_s pp u.to_s puts "---" a1 = NSData.alloc.initWithBytes_length(dumped_data, dumped_data.length) b1 = NSArchiver.archivedDataWithRootObject(a1) u1 = NSUnarchiver.unarchiveObjectWithData(b1) pp a1.to_s pp b1.to_s pp u1.to_s and the results are (I have spaced these out and given some explanation): "<040b7479 70656473 74726561 6d8103e8 84014084 8484084e 53537472 696e6701 8484084e 534f626a 65637400 8584012b 0f612073 696d706c 65207374 72696e67 86>" "a simple string" The final result as expected. "\004\010[\010U:\tPath[\n\"\vPath 0U:\016Inspector[\010@\010i\002, \001i\001\310f\010100i\031i\006U;\000[\n\"\vPath 0U;\006[\010@\016i \002,\001i\001\310@\vi\031i\006U;\000[\n\"\vPath 0U;\006[\010@\023i \002,\001i\001\310@\vi\031i\006" The object hierarchy given out by marshal "<040b7479 70656473 74726561 6d8103e8 84014085 >" Truncated by NSArchive "" Converted to a null string by NSUnarchive --- "<04085b08 553a0950 6174685b 0a220b50 61746820 30553a0e 496e7370 6563746f 725b0840 0869022c 016901c8 66083130 30691969 06553b00 5b0a220b 50617468 2030553b 065b0840 0e69022c 016901c8 400b6919 6906553b 005b0a22 0b506174 68203055 3b065b08 40136902 2c016901 c8400b69 196906>" "<040b7479 70656473 74726561 6d8103e8 84014084 8484064e 53446174 61008484 084e534f 626a6563 74008584 01697784 065b3131 39635d04 085b0855 3a095061 74685b0a 220b5061 74682030 553a0e49 6e737065 63746f72 5b084008 69022c01 6901c866 08313030 69196906 553b005b 0a220b50 61746820 30553b06 5b08400e 69022c01 6901c840 0b691969 06553b00 5b0a220b 50617468 2030553b 065b0840 1369022c 016901c8 400b6919 690686>" "<04085b08 553a0950 6174685b 0a220b50 61746820 30553a0e 496e7370 6563746f 725b0840 0869022c 016901c8 66083130 30691969 06553b00 5b0a220b 50617468 2030553b 065b0840 0e69022c 016901c8 400b6919 6906553b 005b0a22 0b506174 68203055 3b065b08 40136902 2c016901 c8400b69 196906>" Converting the dumped string to NSData before NSArchiving and NSUnarchiving returns the same data. Using built in Ruby (1.8.2) and binary distribution of RubyCocoa 0.11.1 on a G4. Dave. |
From: Tim P. <he...@ti...> - 2007-06-27 08:11:30
|
Hey Jon I worked out how to access it... not that I understand much about CoreData (hence im learning at the moment), it seems that everything is centered on the managed object context. All i needed to do was attach an outlet to my ObjectController and call its managed object controller, from there I could access various methods from which to get at the relevant entities. I should imagine it would be possible to do this with ArrayControllers also. It does strike me that there is not a great deal of documentation of the basics of bindings and core data in general - its been a fairly "feel your way in the dark, passing the occasional light blub" scenario!! Thanks for your help Tim |
From: Rupert B. <rup...@fr...> - 2007-06-27 01:36:11
|
Hi, I have had a look at RbBundleInit and the RubyAnywhere example. This is fine if you are loading a specific bundle, and wish to start it up straight away. In my case, I wish to load pieces of my app which are spread out in plugins, then start the app engine which will use the plugins which have declared themselves. The RBBundleInit loads a ruby file; in previous versions of RubyCocoa, I used to use [[NSClassFromString (@"PluginClass") alloc ] init] which does not seem to work in 0.11.1 My plugin loader : - (void)start { static int installed = 0; if (! installed) { if (RBBundleInit("PluginController.rb", [self class], nil)) NSLog(@"start : failed"); else [[NSClassFromString([self controllerClassName]) alloc] init]; installed = 1; endif } } Can anyone help ? How can I address a Ruby class from ObjC ? Rup |
From: Laurent S. <lsa...@ap...> - 2007-06-26 20:53:07
|
Hi Rupert, On Jun 26, 2007, at 10:34 PM, Rupert BARROW wrote: > Compilation warnings : > .../src/objc/ocdata_conv.m: In function 'rbobj_to_ocdata': > .../src/objc/ocdata_conv.m:1053: warning: passing argument 3 of > 'rbobj_to_cary' discards qualifiers from pointer target type This one has been fixed in SVN. > ld: warning -L: directory name (../../misc/libffi) does not exist This one is useless and can be skipped. > Test results : > > $ ruby install.rb test > $ ruby install.rb test > install.rb: entering test phase... > ---> tests > extention ok: dyld: loaded: ../ext/rubycocoa/rubycocoa.bundle > framework ok: dyld: loaded: ../framework/build/Default/ > RubyCocoa.framework/Versions/0.11.1/RubyCocoa > "/usr/bin/ruby" -I../ext/rubycocoa -I../lib testall.rb > ActiveRecord was not found, if you have it installed as a gem you > have to require 'rubygems' before you require 'osx/active_record' > Skipping osx/active_record tests, you need to have active_record and > sqlite3 > Loaded suite testall > Started > ........................................................................ > .................................................FF > ..................... > ....................................... > Finished in 3.137623 seconds. > > 1) Failure: > test_complex(TC_PrintfFormat) > [./tc_printf_format.rb:27:in `verify' > ./tc_printf_format.rb:20:in `test_complex']: > <"blah 123.123000/42 %gruik"> expected but was > <"blah 0.000000/42 %gruik">. > > 2) Failure: > test_float(TC_PrintfFormat) > [./tc_printf_format.rb:27:in `verify' > ./tc_printf_format.rb:11:in `test_float']: > <"42.420000"> expected but was > <"-0.000000">. > > 183 tests, 692 assertions, 2 failures, 0 errors > test failed > 'system "/usr/bin/ruby" -I../ext/rubycocoa -I../lib testall.rb' failed > try 'ruby install.rb --help' for usage These failures are because of bugs in the ppc version of libffi, that doesn't handle properly variadic floating arguments. I have a fix and will integrate it for the next release. Laurent |
From: Rupert B. <rup...@fr...> - 2007-06-26 20:35:06
|
Compilation warnings : .../src/objc/ocdata_conv.m: In function 'rbobj_to_ocdata': .../src/objc/ocdata_conv.m:1053: warning: passing argument 3 of 'rbobj_to_cary' discards qualifiers from pointer target type ld: warning -L: directory name (../../misc/libffi) does not exist Test results : $ ruby install.rb test $ ruby install.rb test install.rb: entering test phase... ---> tests extention ok: dyld: loaded: ../ext/rubycocoa/rubycocoa.bundle framework ok: dyld: loaded: ../framework/build/Default/ RubyCocoa.framework/Versions/0.11.1/RubyCocoa "/usr/bin/ruby" -I../ext/rubycocoa -I../lib testall.rb ActiveRecord was not found, if you have it installed as a gem you have to require 'rubygems' before you require 'osx/active_record' Skipping osx/active_record tests, you need to have active_record and sqlite3 Loaded suite testall Started ........................................................................ .................................................FF..................... ....................................... Finished in 3.137623 seconds. 1) Failure: test_complex(TC_PrintfFormat) [./tc_printf_format.rb:27:in `verify' ./tc_printf_format.rb:20:in `test_complex']: <"blah 123.123000/42 %gruik"> expected but was <"blah 0.000000/42 %gruik">. 2) Failure: test_float(TC_PrintfFormat) [./tc_printf_format.rb:27:in `verify' ./tc_printf_format.rb:11:in `test_float']: <"42.420000"> expected but was <"-0.000000">. 183 tests, 692 assertions, 2 failures, 0 errors test failed 'system "/usr/bin/ruby" -I../ext/rubycocoa -I../lib testall.rb' failed try 'ruby install.rb --help' for usage Config : $ ruby install.rb show prefix /usr/local install-prefix $prefix std-ruby $install-prefix/lib/ruby/1.8 site-ruby $install-prefix/lib/ruby/site_ruby/1.8 bin-dir $install-prefix/bin rb-dir $site-ruby so-dir $install-prefix/lib/ruby/site_ruby/1.8/powerpc-darwin8.0 data-dir $install-prefix/share ruby-path /usr/bin/ruby ruby-prog /usr/bin/ruby make-prog make without-ext no install-root (not specified) frameworks /Library/Frameworks xcode-extras /Library/Application Support/Apple/Developer Tools examples /Developer/Examples documentation /Developer/Documentation gen-bridge-support yes build-as-embeddable yes ruby-header-dir /usr/lib/ruby/1.8/universal-darwin8.0 libruby-path /usr/lib/libruby.1.dylib ri-dir /usr/share/ri/1.8/site build-universal no macosx-deployment-target 10.4 rubycocoa-version 0.11.1 rubycocoa-version-short 0.11.1 rubycocoa-release-date 2007-06-04 rubycocoa-svn-revision 1814 rubycocoa-framework-version 0.11.1 $ ruby --version ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] $ which ruby /usr/bin/ruby |
From: Jon B. <jo...@gm...> - 2007-06-26 16:39:59
|
Probably best to look @ source for the 2 methods (see snippet below, found in oc_import), basically it will add the needed binding methods for you automagically. Im not sure (without seeing your code) if it should go in something higher up (AppController) or MyDocument. And the key itself seems to be hooking them up correctly in Interface Builder (and using the right key path). Im sure there is something in the examples folder which has this already, need to look @ what key paths are being used and where kvc is declared. --snip-- def kvc_writer(*args) args.flatten.each do |key| setter = key.to_s + '=' attr_writer(key) unless method_defined?(setter) alias_method kvc_internal_setter(key), setter self.class_eval <<-EOE_KVC_WRITER,__FILE__,__LINE__+1 def #{kvc_setter_wrapper(key)}(value) willChangeValueForKey('#{key.to_s}') send('#{kvc_internal_setter(key)}', value) didChangeValueForKey('#{key.to_s}') end EOE_KVC_WRITER alias_method setter, kvc_setter_wrapper(key) end end def kvc_accessor(*args) kvc_reader(*args) kvc_writer(*args) end def kvc_reader(*args) attr_reader(*args) end - Jon On Jun 26, 2007, at 12:12 PM, Tim Perrett wrote: > Hey Jon > > Thanks for getting back to me. So if i add in the > > kvc_accessor :server > > declaration in my MyDocument.rb file, how would I access this as? As > my document is obviously already instantiated I wouldn't want to > create a new object as that would cause error. Unless the second > object I create subclass from NSManagedObject and I bind it within IB > to set the managedObjectContext to be the main object controller? > Perhaps I should be looking for an answer to my problem using > bindings rather than straight code as I know it. When you write > kvc_accessor what is that actually doing in the background? > > Thanks > > Tim > > > > > On 26 Jun 2007, at 13:57, Jon Baer wrote: > >> From my understanding (ala bindings), you would make the @server >> object a kvc_accessor and access it via a key path. >> >> server.serverAddress >> >> Of course Im just guessing but Ive recently had to do a multi-level >> situation where I needed access in .nib for something else and went >> through a few more binding tutorials to understand what was >> happening. Im @ the point where Id like to dynamically setup all >> bindings @ runtime. >> >> - Jon >> >> On Jun 26, 2007, at 4:37 AM, Tim Perrett wrote: >> >>> Hey all >>> >>> I have managed to fix my core data problems which i previously >>> posted >>> about (yay) but I am now working with my entitys and due to some >>> lack >>> in my understanding struggling to actually access the data >>> programatically. >>> >>> I can access table attributes in MyDocument.rb with something like >>> this: >>> >>> @server.valueForKey('serverAddress') >>> >>> But what I want to do is access those values from another class, how >>> would I do this? I have read about KVC accessors and things but are >>> they even what I need? I would like this second class to handle all >>> the task processing and the ib_outlets and so on. This would mean >>> instantiating it in the nib in order to link the outlets, which >>> brings me back round to how can I then access items on my other >>> object? >>> >>> Thanks >>> >>> Tim >>> >>> -------------------------------------------------------------------- >>> - >>> - >>> --- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> _______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> --------------------------------------------------------------------- >> - >> --- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Tim P. <he...@ti...> - 2007-06-26 16:14:46
|
Hey Jon Thanks for getting back to me. So if i add in the kvc_accessor :server declaration in my MyDocument.rb file, how would I access this as? As my document is obviously already instantiated I wouldn't want to create a new object as that would cause error. Unless the second object I create subclass from NSManagedObject and I bind it within IB to set the managedObjectContext to be the main object controller? Perhaps I should be looking for an answer to my problem using bindings rather than straight code as I know it. When you write kvc_accessor what is that actually doing in the background? Thanks Tim On 26 Jun 2007, at 13:57, Jon Baer wrote: > From my understanding (ala bindings), you would make the @server > object a kvc_accessor and access it via a key path. > > server.serverAddress > > Of course Im just guessing but Ive recently had to do a multi-level > situation where I needed access in .nib for something else and went > through a few more binding tutorials to understand what was > happening. Im @ the point where Id like to dynamically setup all > bindings @ runtime. > > - Jon > > On Jun 26, 2007, at 4:37 AM, Tim Perrett wrote: > >> Hey all >> >> I have managed to fix my core data problems which i previously posted >> about (yay) but I am now working with my entitys and due to some lack >> in my understanding struggling to actually access the data >> programatically. >> >> I can access table attributes in MyDocument.rb with something like >> this: >> >> @server.valueForKey('serverAddress') >> >> But what I want to do is access those values from another class, how >> would I do this? I have read about KVC accessors and things but are >> they even what I need? I would like this second class to handle all >> the task processing and the ib_outlets and so on. This would mean >> instantiating it in the nib in order to link the outlets, which >> brings me back round to how can I then access items on my other >> object? >> >> Thanks >> >> Tim >> >> --------------------------------------------------------------------- >> - >> --- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Jon B. <jo...@gm...> - 2007-06-26 12:57:40
|
From my understanding (ala bindings), you would make the @server object a kvc_accessor and access it via a key path. server.serverAddress Of course Im just guessing but Ive recently had to do a multi-level situation where I needed access in .nib for something else and went through a few more binding tutorials to understand what was happening. Im @ the point where Id like to dynamically setup all bindings @ runtime. - Jon On Jun 26, 2007, at 4:37 AM, Tim Perrett wrote: > Hey all > > I have managed to fix my core data problems which i previously posted > about (yay) but I am now working with my entitys and due to some lack > in my understanding struggling to actually access the data > programatically. > > I can access table attributes in MyDocument.rb with something like > this: > > @server.valueForKey('serverAddress') > > But what I want to do is access those values from another class, how > would I do this? I have read about KVC accessors and things but are > they even what I need? I would like this second class to handle all > the task processing and the ib_outlets and so on. This would mean > instantiating it in the nib in order to link the outlets, which > brings me back round to how can I then access items on my other > object? > > Thanks > > Tim > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Tim P. <he...@ti...> - 2007-06-26 08:38:52
|
Hey all I have managed to fix my core data problems which i previously posted about (yay) but I am now working with my entitys and due to some lack in my understanding struggling to actually access the data programatically. I can access table attributes in MyDocument.rb with something like this: @server.valueForKey('serverAddress') But what I want to do is access those values from another class, how would I do this? I have read about KVC accessors and things but are they even what I need? I would like this second class to handle all the task processing and the ib_outlets and so on. This would mean instantiating it in the nib in order to link the outlets, which brings me back round to how can I then access items on my other object? Thanks Tim |
From: Fujimoto H. <hi...@fo...> - 2007-06-25 23:38:45
|
Thanks Eloy, You are explaining what I want to say better than I :) # this thread should discuss on rubycocoa-devel rather than rubyocoa-talk. hisa On 6/26/07, Eloy Duran <elo...@gm...> wrote: > Hey Laurent, > > I just wanted to stress that Hisa's mentioning of packiging as gems is > only a possibility absolutely not the reasoning of his idea to > restructure the source layout. > What his issue is, is that things are getting too intertwined at the > moment. So tests were failing that where caused by tools not necessary > for the bridge itself. Eg: rubycocoa. So actually it's just about some > cleaning of the sourcetree and putting parts, that have outgrown the > place where they started, into their own logical place. > > So I guess that's the gist of it..... :) > > Eloy > > On 6/25/07, Laurent Sansonetti <lsa...@ap...> wrote: > > Thanks for the translation Eloy :-) > > > > Hisa-san, this is a great idea. However I really wonder if it will be > > interesting to ship RubyCocoa as a gem (or multiple gems). > > > > RubyCocoa is a too specialized project to be installed by RubyGems. > > It's Mac OS X specific, and depends on some projects that are > > currently in misc (like bridgesupport and libffi). It is not possible > > to package libffi and bridgesupport as gems, because libffi is > > statically linked to RubyCocoa (it's a .a file) and the bridge support > > files are now installed inside RubyCocoa.framework (so they need to be > > available during RubyCocoa.framework build time). > > > > Also, gems are good for Ruby libraries and command line utilities, but > > not OSX frameworks (like RubyCocoa.framework). > > > > What will the re-organization do except the idea of shipping RubyCocoa > > as gem(s)? > > > > Laurent > > > > On Jun 25, 2007, at 1:32 PM, Eloy Duran wrote: > > > > > Hey guys, > > > > > > My English summary/translation is available at: > > > http://www.superalloy.nl/blog/2007/06/25/rubycocoa-source-layout-spring-cleaning-now-is-the-time-for-feedback > > > > > > Cheers, > > > Eloy > > > > > > On 6/25/07, FUJIMOTO Hisa <hi...@fo...> wrote: > > >> Hi the committers > > >> > > >> This week I'll do some important work for the source tree and > > >> build/packaging process. So, sorry to please be less commit your code > > >> the repository, if it's not important. > > >> > > >> Currently, Eloy may be able to explain about my idea/thinking about > > >> it > > >> by English, because he made good effort to read my blog and the ML in > > >> japanese (my native lang) about it last week, and I discussed about > > >> it > > >> with him. > > >> > > >> Well, Current RubyCocoa has complex dependency of several parts > > >> especially the build and packaging process. The cause of it may be > > >> that the project was started as just extension library as historical > > >> reason, before version 0.4. Now I strongly thought that now is the > > >> time to reconstruct the source tree for make lots of things more > > >> simple. Current RubyCocoa is constructed by the following > > >> moudles/components in fact: > > >> > > >> runtime (or core, it's like JRE in Java maybe): > > >> core/framework # RubyCocoa.framework as shared library > > >> core/extlib # ruby libraries for the ruby command > > >> core/tests # testing for the framework depend on extlib > > >> # for a developer of RubyCocoa itself > > >> > > >> external (runtime depends on): > > >> external/bridgesupport > > >> external/libffi > > >> > > >> devel (for a developer *using* RubyCocoa): > > >> devel/xcode-templates > > >> devel/examples > > >> > > >> tools (for a developer *using* RubyCocoa maybe): > > >> tools/standalonify > > >> tools/rb_nibtool > > >> tools/gen_bridge_doc > > >> tools/rubycocoa > > >> > > >> # this tree is current idea, it's very mutable at now. > > >> > > >> Tools may be embed the framework at the packaging phase rather than > > >> build process. I guess it's better for orthogonality. > > >> > > >> the point; boost up the orthogonality of each module/component for > > >> build and packaging process. I'm going to start reconstructing soon > > >> on > > >> the branches/rubycocoa-reconstruct-20070625 on the repository. > > >> > > >> Maybe I can't reply enough, because The wrting, especially by > > >> English, may decrease down sometimes my concentration. sorry ;) > > >> > > >> thanks > > >> -- > > >> hisa > > >> > > >> _______________________________________________ > > >> Rubycocoa-devel mailing list > > >> Rub...@li... > > >> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel > > >> > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Rubycocoa-talk mailing list > > > Rub...@li... > > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > -- hisa |