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: Neil S. <ne...@ha...> - 2008-01-13 00:19:08
|
Benjamin Dunton wrote: > All, > I have a program that is specifically told to link as objective-C++. W= hen I > do this, RBApplicationMain is undefined at link time (it is linked as a= > framework, and on the link line.) If I change to "According to Source > Type", it would work, but I have some code in a *.h file that is C++ > specific that does not compile properly (I'm assuming because it is rea= ding > the .h file according to obj-c rules). >=20 > Can anyone help? extern "C" { #include <RBRuntime.h> } You probably need to change your include like so, to get C linkage for=20 that function. --=20 Neil Stevens - ne...@ha... If you're seeing shades of gray, it's because you're not looking close enough to see the black and white dots. |
From: Eloy D. <e....@su...> - 2008-01-13 00:15:28
|
Hi, Ok, so the problem is that apple's docs change horribly some (most) of the times when they do an update. And this breaks the parsing. Anyways, I'll try to update it asap for the latest documentation update. Eloy On 13 jan 2008, at 00:40, Rich Warren wrote: > Hi, > > I'm not entirely sure what your asking. > > I'm trying to install the documentation from the 0.13.0 source of > RubyCocoa onto a Leopard system. > > I'm using whatever default version of RubyCocoa Leopard has > installed. I'm not sure how to find the documentation date from > XCode's preferences--and I don't really see how that will affect > installing the RubyCocoa docs from source. But, I had recently updated > to the latest docs. > > -Rich- > > On Jan 11, 2008, at 1:57 AM, Eloy Duran wrote: > >> Hi Rich, >> >> Which versionof RubyCocoa are you exactly using? (from source?) >> And what version (which date) is your documentation? You can check >> this in the preferences of XCode.app >> >> Cheers, >> Eloy >> >> On 11 jan 2008, at 11:34, Rich Warren wrote: >> >>> I finally got around to trying this. However, I kept getting errors. >>> >>> ruby install.rb config >>> ruby install doc >>> >>> This fails with the following error: >>> >>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> >>> install.rb: entering doc phase... >>> ---> framework >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby >>> gen_bridge_doc.rb build ../bridge-doc >>> mkdir -p /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/ >>> bridge- >>> doc >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ >>> ruby - >>> I../../ext/rubycocoa -I../../lib gen_bridge_doc/rdocify_framework.rb >>> '/Developer/Documentation/DocSets/ >>> com.apple.ADC_Reference_Library.CoreReference.docset/Contents/ >>> Resources/Documents/documentation/Cocoa/Reference/ApplicationKit/' / >>> Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge-doc/ >>> ruby >>> >>> Working on: ApplicationKit >>> >>> mkdir -p /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/ >>> bridge- >>> doc/ruby >>> Processing reference file: CIColor_AppKitAdditions >>> /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/tool/ >>> gen_bridge_doc/lib/cocoa_ref.rb:70:in `join': can't convert nil into >>> String (TypeError) >>> from /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/tool/ >>> gen_bridge_doc/lib/cocoa_ref.rb:70:in `initialize' >>> from gen_bridge_doc/rdocify_framework.rb:173:in `new' >>> from gen_bridge_doc/rdocify_framework.rb:173 >>> from gen_bridge_doc/rdocify_framework.rb:171:in `each' >>> from gen_bridge_doc/rdocify_framework.rb:171 >>> gen_bridge_doc.rb:35:in `command': 'system /System/Library/ >>> Frameworks/ >>> Ruby.framework/Versions/1.8/usr/bin/ruby -I../../ext/rubycocoa - >>> I../../ >>> lib gen_bridge_doc/rdocify_framework.rb '/Developer/Documentation/ >>> DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/ >>> Contents/ >>> Resources/Documents/documentation/Cocoa/Reference/ApplicationKit/' / >>> Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge-doc/ >>> ruby' >>> failed (RuntimeError) >>> from gen_bridge_doc.rb:39:in `ruby' >>> from gen_bridge_doc.rb:99 >>> from gen_bridge_doc.rb:98:in `each' >>> from gen_bridge_doc.rb:98 >>> rm -rf bridge-doc >>> doc failed >>> hook /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/pre- >>> doc.rb >>> failed: >>> 'system /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/ >>> bin/ >>> ruby gen_bridge_doc.rb build ../bridge-doc' failed >>> try 'ruby install.rb --help' for usage >>> >>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> >>> I also tried >>> >>> rake build >>> rake doc >>> >>> But this also failed. Am I missing something? Do I need to install a >>> library or something to get this to work? >>> >>> Thanks, >>> >>> -Rich- >>> >>> On Dec 17, 2007, at 12:06 AM, Axel Sachmann wrote: >>> >>>> Hi Rich, >>>> >>>> i was searching this stuff too. I downloaded the >>>> rubycocoa-0.13.0.tar file and then install it manually. >>>> Then you must use the install script to generate the doc. >>>> >>>> ruby install config >>>> >>>> ruby install doc >>>> >>>> --> look in the folder /RubyCocoa-0.13.0/framework/bridge-doc/ >>>> >>>> Thats it... >>>> >>>> Axel >>>> >>>> >>>> Am 17.12.2007 um 05:46 schrieb Rich Warren: >>>> >>>>> Thanks, but I'd already read those, and was looking for >>>>> something a >>>>> bit more in-depth. >>>>> >>>>> Specifically, I'm looking for the BridgeDoc generated >>>>> documentation >>>>> mentioned in http://rubycocoa.sourceforge.net/ >>>>> FrameworkDocumentation. >>>>> That site says the html documentation should be located in / >>>>> Developer/ >>>>> Documentation/RubyCocoa/Frameworks, but that folder does not exist >>>>> on >>>>> my system, and /Developer/Documentation/RubyCocoa simply >>>>> contains a >>>>> few japanese files. Additionally, it mentions using ri to access >>>>> the >>>>> documentation, but that doesn't work either. >>>>> >>>>> Does anyone know how to generate this documentation for Leopard? I >>>>> assume I have to use BridgeDoc, but I'm not sure what that is, or >>>>> where I can get it. Also, are there any differences in the Leopard >>>>> distribution of RubyCocoa that I need to be aware of? >>>>> >>>>> Thanks, >>>>> >>>>> -Rich- >>>>> >>>>> >>>>> >>>>> On Dec 16, 2007, at 3:56 PM, Ian Joyner wrote: >>>>> >>>>>> Hi Rich, >>>>>> >>>>>> This seems hot off the press: >>>>>> >>>>>> http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/Introduction/Introduction.html >>>>>> >>>>>> Ian >>>>>> >>>>>> On 14/12/2007, at 7:50 PM, Rich Warren wrote: >>>>>> >>>>>>> I'm fairly familiar with both Ruby and Cocoa, but I've never >>>>>>> really >>>>>>> played around with RubyCocoa before. I read the "Ruby and Python >>>>>>> on >>>>>>> Mac OS X" article from the Apple Developer Connection, and I'm >>>>>>> looking >>>>>>> for more in-depth documentation. >>>>>>> >>>>>>> I'm using the version of RubyCocoa that comes with Leopard. It >>>>>>> seems >>>>>>> that the documentation is...missing? >>>>>>> >>>>>>> I found the example code at /Developer/Examples/Ruby/RubyCocoa, >>>>>>> but >>>>>>> the documentation at /Developer/Documentation/RubyCocoa has only >>>>>>> three >>>>>>> smallish HTML files in Japanese. >>>>>>> >>>>>>> ri doesn't seem to work for any OSX::* items. >>>>>>> >>>>>>> How do I find/load the documentation into Leopard? >>>>>>> >>>>>>> Are there any other good sources of RubyCocoa documentation? >>>>>>> >>>>>>> In particular, I'm looking for some information on CoreData and >>>>>>> Key >>>>>>> Value compliance. >>>>>>> >>>>>>> In short, I have a parent entity that has a to many relationship >>>>>>> with >>>>>>> a child entity. I currently display all the parents in a >>>>>>> table. I >>>>>>> would like to have one column bind to the child count for each >>>>>>> parent. >>>>>>> >>>>>>> In Cocoa, I would do this by giving the parent a transient >>>>>>> "count" >>>>>>> attribute. I would then make a subclass of NSManagedObject and >>>>>>> have >>>>>>> the parent use my subclass. In my subclass, I would create a - >>>>>>> (int_32t)count method that returned the child count. This would >>>>>>> get >>>>>>> called, through the magic of KVC for my parent's count value. >>>>>>> >>>>>>> In RubyCocoa I tried the same. But it didn't work. My sample >>>>>>> code >>>>>>> is >>>>>>> below. >>>>>>> >>>>>>> require 'osx/cocoa' >>>>>>> >>>>>>> class ManagedParent < OSX::NSManagedObject >>>>>>> >>>>>>> def count() >>>>>>> puts "Getting The Count" >>>>>>> return 5 >>>>>>> end >>>>>>> end >>>>>>> >>>>>>> Yes, yes. I know. I'm not actually getting the child count. >>>>>>> But I >>>>>>> wanted to get this, simpler version working before I tried to >>>>>>> tackle >>>>>>> the whole valueForKey_("child") mess. >>>>>>> >>>>>>> When I run my code, I'm not getting 5 for the count, nor am I >>>>>>> seeing >>>>>>> "Getting The Count" in the console. How do I get this to work? >>>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> -Rich- >>>>>>> >>>>>>> ------------------------------------------------------------------------- >>>>>>> SF.Net email is sponsored by: >>>>>>> Check out the new SourceForge.net Marketplace. >>>>>>> It's the best place to buy or sell services >>>>>>> for just about anything Open Source. >>>>>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>>>>> _______________________________________________ >>>>>>> Rubycocoa-talk mailing list >>>>>>> Rub...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> SF.Net email is sponsored by: >>>>>> Check out the new SourceForge.net Marketplace. >>>>>> It's the best place to buy or sell services >>>>>> for just about anything Open Source. >>>>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>>>> _______________________________________________ >>>>>> Rubycocoa-talk mailing list >>>>>> Rub...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>>> >>>>> >>>>> ------------------------------------------------------------------------- >>>>> SF.Net email is sponsored by: >>>>> Check out the new SourceForge.net Marketplace. >>>>> It's the best place to buy or sell services >>>>> for just about anything Open Source. >>>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>>> _______________________________________________ >>>>> Rubycocoa-talk mailing list >>>>> Rub...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>> >>>> ------------------------------------------------------------------------- >>>> SF.Net email is sponsored by: >>>> Check out the new SourceForge.net Marketplace. >>>> It's the best place to buy or sell services >>>> for just about anything Open Source. >>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace_______________________________________________ >>>> Rubycocoa-talk mailing list >>>> Rub...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>> >>> >>> ------------------------------------------------------------------------- >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services for >>> just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>> _______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Benjamin D. <bdu...@gm...> - 2008-01-13 00:12:11
|
All, I have a program that is specifically told to link as objective-C++. When I do this, RBApplicationMain is undefined at link time (it is linked as a framework, and on the link line.) If I change to "According to Source Type", it would work, but I have some code in a *.h file that is C++ specific that does not compile properly (I'm assuming because it is reading the .h file according to obj-c rules). Can anyone help? Thanks, Ben |
From: Rich W. <rw...@gm...> - 2008-01-12 23:40:46
|
Hi, I'm not entirely sure what your asking. I'm trying to install the documentation from the 0.13.0 source of RubyCocoa onto a Leopard system. I'm using whatever default version of RubyCocoa Leopard has installed. I'm not sure how to find the documentation date from XCode's preferences--and I don't really see how that will affect installing the RubyCocoa docs from source. But, I had recently updated to the latest docs. -Rich- On Jan 11, 2008, at 1:57 AM, Eloy Duran wrote: > Hi Rich, > > Which versionof RubyCocoa are you exactly using? (from source?) > And what version (which date) is your documentation? You can check > this in the preferences of XCode.app > > Cheers, > Eloy > > On 11 jan 2008, at 11:34, Rich Warren wrote: > >> I finally got around to trying this. However, I kept getting errors. >> >> ruby install.rb config >> ruby install doc >> >> This fails with the following error: >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> install.rb: entering doc phase... >> ---> framework >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby >> gen_bridge_doc.rb build ../bridge-doc >> mkdir -p /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/ >> bridge- >> doc >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby - >> I../../ext/rubycocoa -I../../lib gen_bridge_doc/rdocify_framework.rb >> '/Developer/Documentation/DocSets/ >> com.apple.ADC_Reference_Library.CoreReference.docset/Contents/ >> Resources/Documents/documentation/Cocoa/Reference/ApplicationKit/' / >> Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge-doc/ruby >> >> Working on: ApplicationKit >> >> mkdir -p /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/ >> bridge- >> doc/ruby >> Processing reference file: CIColor_AppKitAdditions >> /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/tool/ >> gen_bridge_doc/lib/cocoa_ref.rb:70:in `join': can't convert nil into >> String (TypeError) >> from /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/tool/ >> gen_bridge_doc/lib/cocoa_ref.rb:70:in `initialize' >> from gen_bridge_doc/rdocify_framework.rb:173:in `new' >> from gen_bridge_doc/rdocify_framework.rb:173 >> from gen_bridge_doc/rdocify_framework.rb:171:in `each' >> from gen_bridge_doc/rdocify_framework.rb:171 >> gen_bridge_doc.rb:35:in `command': 'system /System/Library/ >> Frameworks/ >> Ruby.framework/Versions/1.8/usr/bin/ruby -I../../ext/rubycocoa - >> I../../ >> lib gen_bridge_doc/rdocify_framework.rb '/Developer/Documentation/ >> DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/ >> Contents/ >> Resources/Documents/documentation/Cocoa/Reference/ApplicationKit/' / >> Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge-doc/ >> ruby' >> failed (RuntimeError) >> from gen_bridge_doc.rb:39:in `ruby' >> from gen_bridge_doc.rb:99 >> from gen_bridge_doc.rb:98:in `each' >> from gen_bridge_doc.rb:98 >> rm -rf bridge-doc >> doc failed >> hook /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/pre- >> doc.rb >> failed: >> 'system /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/ >> bin/ >> ruby gen_bridge_doc.rb build ../bridge-doc' failed >> try 'ruby install.rb --help' for usage >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> I also tried >> >> rake build >> rake doc >> >> But this also failed. Am I missing something? Do I need to install a >> library or something to get this to work? >> >> Thanks, >> >> -Rich- >> >> On Dec 17, 2007, at 12:06 AM, Axel Sachmann wrote: >> >>> Hi Rich, >>> >>> i was searching this stuff too. I downloaded the >>> rubycocoa-0.13.0.tar file and then install it manually. >>> Then you must use the install script to generate the doc. >>> >>> ruby install config >>> >>> ruby install doc >>> >>> --> look in the folder /RubyCocoa-0.13.0/framework/bridge-doc/ >>> >>> Thats it... >>> >>> Axel >>> >>> >>> Am 17.12.2007 um 05:46 schrieb Rich Warren: >>> >>>> Thanks, but I'd already read those, and was looking for something a >>>> bit more in-depth. >>>> >>>> Specifically, I'm looking for the BridgeDoc generated documentation >>>> mentioned in http://rubycocoa.sourceforge.net/ >>>> FrameworkDocumentation. >>>> That site says the html documentation should be located in / >>>> Developer/ >>>> Documentation/RubyCocoa/Frameworks, but that folder does not exist >>>> on >>>> my system, and /Developer/Documentation/RubyCocoa simply contains a >>>> few japanese files. Additionally, it mentions using ri to access >>>> the >>>> documentation, but that doesn't work either. >>>> >>>> Does anyone know how to generate this documentation for Leopard? I >>>> assume I have to use BridgeDoc, but I'm not sure what that is, or >>>> where I can get it. Also, are there any differences in the Leopard >>>> distribution of RubyCocoa that I need to be aware of? >>>> >>>> Thanks, >>>> >>>> -Rich- >>>> >>>> >>>> >>>> On Dec 16, 2007, at 3:56 PM, Ian Joyner wrote: >>>> >>>>> Hi Rich, >>>>> >>>>> This seems hot off the press: >>>>> >>>>> http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/Introduction/Introduction.html >>>>> >>>>> Ian >>>>> >>>>> On 14/12/2007, at 7:50 PM, Rich Warren wrote: >>>>> >>>>>> I'm fairly familiar with both Ruby and Cocoa, but I've never >>>>>> really >>>>>> played around with RubyCocoa before. I read the "Ruby and Python >>>>>> on >>>>>> Mac OS X" article from the Apple Developer Connection, and I'm >>>>>> looking >>>>>> for more in-depth documentation. >>>>>> >>>>>> I'm using the version of RubyCocoa that comes with Leopard. It >>>>>> seems >>>>>> that the documentation is...missing? >>>>>> >>>>>> I found the example code at /Developer/Examples/Ruby/RubyCocoa, >>>>>> but >>>>>> the documentation at /Developer/Documentation/RubyCocoa has only >>>>>> three >>>>>> smallish HTML files in Japanese. >>>>>> >>>>>> ri doesn't seem to work for any OSX::* items. >>>>>> >>>>>> How do I find/load the documentation into Leopard? >>>>>> >>>>>> Are there any other good sources of RubyCocoa documentation? >>>>>> >>>>>> In particular, I'm looking for some information on CoreData and >>>>>> Key >>>>>> Value compliance. >>>>>> >>>>>> In short, I have a parent entity that has a to many relationship >>>>>> with >>>>>> a child entity. I currently display all the parents in a table. I >>>>>> would like to have one column bind to the child count for each >>>>>> parent. >>>>>> >>>>>> In Cocoa, I would do this by giving the parent a transient >>>>>> "count" >>>>>> attribute. I would then make a subclass of NSManagedObject and >>>>>> have >>>>>> the parent use my subclass. In my subclass, I would create a - >>>>>> (int_32t)count method that returned the child count. This would >>>>>> get >>>>>> called, through the magic of KVC for my parent's count value. >>>>>> >>>>>> In RubyCocoa I tried the same. But it didn't work. My sample code >>>>>> is >>>>>> below. >>>>>> >>>>>> require 'osx/cocoa' >>>>>> >>>>>> class ManagedParent < OSX::NSManagedObject >>>>>> >>>>>> def count() >>>>>> puts "Getting The Count" >>>>>> return 5 >>>>>> end >>>>>> end >>>>>> >>>>>> Yes, yes. I know. I'm not actually getting the child count. But I >>>>>> wanted to get this, simpler version working before I tried to >>>>>> tackle >>>>>> the whole valueForKey_("child") mess. >>>>>> >>>>>> When I run my code, I'm not getting 5 for the count, nor am I >>>>>> seeing >>>>>> "Getting The Count" in the console. How do I get this to work? >>>>>> >>>>>> Thanks, >>>>>> >>>>>> -Rich- >>>>>> >>>>>> ------------------------------------------------------------------------- >>>>>> SF.Net email is sponsored by: >>>>>> Check out the new SourceForge.net Marketplace. >>>>>> It's the best place to buy or sell services >>>>>> for just about anything Open Source. >>>>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>>>> _______________________________________________ >>>>>> Rubycocoa-talk mailing list >>>>>> Rub...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------- >>>>> SF.Net email is sponsored by: >>>>> Check out the new SourceForge.net Marketplace. >>>>> It's the best place to buy or sell services >>>>> for just about anything Open Source. >>>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>>> _______________________________________________ >>>>> Rubycocoa-talk mailing list >>>>> Rub...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> SF.Net email is sponsored by: >>>> Check out the new SourceForge.net Marketplace. >>>> It's the best place to buy or sell services >>>> for just about anything Open Source. >>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>> _______________________________________________ >>>> Rubycocoa-talk mailing list >>>> Rub...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>> >>> ------------------------------------------------------------------------- >>> SF.Net email is sponsored by: >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services >>> for just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace_______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Eloy D. <e....@su...> - 2008-01-11 11:57:38
|
Hi Rich, Which versionof RubyCocoa are you exactly using? (from source?) And what version (which date) is your documentation? You can check this in the preferences of XCode.app Cheers, Eloy On 11 jan 2008, at 11:34, Rich Warren wrote: > I finally got around to trying this. However, I kept getting errors. > > ruby install.rb config > ruby install doc > > This fails with the following error: > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > install.rb: entering doc phase... > ---> framework > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby > gen_bridge_doc.rb build ../bridge-doc > mkdir -p /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/ > bridge- > doc > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby - > I../../ext/rubycocoa -I../../lib gen_bridge_doc/rdocify_framework.rb > '/Developer/Documentation/DocSets/ > com.apple.ADC_Reference_Library.CoreReference.docset/Contents/ > Resources/Documents/documentation/Cocoa/Reference/ApplicationKit/' / > Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge-doc/ruby > > Working on: ApplicationKit > > mkdir -p /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/ > bridge- > doc/ruby > Processing reference file: CIColor_AppKitAdditions > /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/tool/ > gen_bridge_doc/lib/cocoa_ref.rb:70:in `join': can't convert nil into > String (TypeError) > from /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/tool/ > gen_bridge_doc/lib/cocoa_ref.rb:70:in `initialize' > from gen_bridge_doc/rdocify_framework.rb:173:in `new' > from gen_bridge_doc/rdocify_framework.rb:173 > from gen_bridge_doc/rdocify_framework.rb:171:in `each' > from gen_bridge_doc/rdocify_framework.rb:171 > gen_bridge_doc.rb:35:in `command': 'system /System/Library/Frameworks/ > Ruby.framework/Versions/1.8/usr/bin/ruby -I../../ext/rubycocoa - > I../../ > lib gen_bridge_doc/rdocify_framework.rb '/Developer/Documentation/ > DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/ > Resources/Documents/documentation/Cocoa/Reference/ApplicationKit/' / > Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge-doc/ruby' > failed (RuntimeError) > from gen_bridge_doc.rb:39:in `ruby' > from gen_bridge_doc.rb:99 > from gen_bridge_doc.rb:98:in `each' > from gen_bridge_doc.rb:98 > rm -rf bridge-doc > doc failed > hook /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/pre-doc.rb > failed: > 'system /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/ > bin/ > ruby gen_bridge_doc.rb build ../bridge-doc' failed > try 'ruby install.rb --help' for usage > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > I also tried > > rake build > rake doc > > But this also failed. Am I missing something? Do I need to install a > library or something to get this to work? > > Thanks, > > -Rich- > > On Dec 17, 2007, at 12:06 AM, Axel Sachmann wrote: > >> Hi Rich, >> >> i was searching this stuff too. I downloaded the >> rubycocoa-0.13.0.tar file and then install it manually. >> Then you must use the install script to generate the doc. >> >> ruby install config >> >> ruby install doc >> >> --> look in the folder /RubyCocoa-0.13.0/framework/bridge-doc/ >> >> Thats it... >> >> Axel >> >> >> Am 17.12.2007 um 05:46 schrieb Rich Warren: >> >>> Thanks, but I'd already read those, and was looking for something a >>> bit more in-depth. >>> >>> Specifically, I'm looking for the BridgeDoc generated documentation >>> mentioned in http://rubycocoa.sourceforge.net/ >>> FrameworkDocumentation. >>> That site says the html documentation should be located in / >>> Developer/ >>> Documentation/RubyCocoa/Frameworks, but that folder does not exist >>> on >>> my system, and /Developer/Documentation/RubyCocoa simply contains a >>> few japanese files. Additionally, it mentions using ri to access the >>> documentation, but that doesn't work either. >>> >>> Does anyone know how to generate this documentation for Leopard? I >>> assume I have to use BridgeDoc, but I'm not sure what that is, or >>> where I can get it. Also, are there any differences in the Leopard >>> distribution of RubyCocoa that I need to be aware of? >>> >>> Thanks, >>> >>> -Rich- >>> >>> >>> >>> On Dec 16, 2007, at 3:56 PM, Ian Joyner wrote: >>> >>>> Hi Rich, >>>> >>>> This seems hot off the press: >>>> >>>> http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/Introduction/Introduction.html >>>> >>>> Ian >>>> >>>> On 14/12/2007, at 7:50 PM, Rich Warren wrote: >>>> >>>>> I'm fairly familiar with both Ruby and Cocoa, but I've never >>>>> really >>>>> played around with RubyCocoa before. I read the "Ruby and Python >>>>> on >>>>> Mac OS X" article from the Apple Developer Connection, and I'm >>>>> looking >>>>> for more in-depth documentation. >>>>> >>>>> I'm using the version of RubyCocoa that comes with Leopard. It >>>>> seems >>>>> that the documentation is...missing? >>>>> >>>>> I found the example code at /Developer/Examples/Ruby/RubyCocoa, >>>>> but >>>>> the documentation at /Developer/Documentation/RubyCocoa has only >>>>> three >>>>> smallish HTML files in Japanese. >>>>> >>>>> ri doesn't seem to work for any OSX::* items. >>>>> >>>>> How do I find/load the documentation into Leopard? >>>>> >>>>> Are there any other good sources of RubyCocoa documentation? >>>>> >>>>> In particular, I'm looking for some information on CoreData and >>>>> Key >>>>> Value compliance. >>>>> >>>>> In short, I have a parent entity that has a to many relationship >>>>> with >>>>> a child entity. I currently display all the parents in a table. I >>>>> would like to have one column bind to the child count for each >>>>> parent. >>>>> >>>>> In Cocoa, I would do this by giving the parent a transient "count" >>>>> attribute. I would then make a subclass of NSManagedObject and >>>>> have >>>>> the parent use my subclass. In my subclass, I would create a - >>>>> (int_32t)count method that returned the child count. This would >>>>> get >>>>> called, through the magic of KVC for my parent's count value. >>>>> >>>>> In RubyCocoa I tried the same. But it didn't work. My sample code >>>>> is >>>>> below. >>>>> >>>>> require 'osx/cocoa' >>>>> >>>>> class ManagedParent < OSX::NSManagedObject >>>>> >>>>> def count() >>>>> puts "Getting The Count" >>>>> return 5 >>>>> end >>>>> end >>>>> >>>>> Yes, yes. I know. I'm not actually getting the child count. But I >>>>> wanted to get this, simpler version working before I tried to >>>>> tackle >>>>> the whole valueForKey_("child") mess. >>>>> >>>>> When I run my code, I'm not getting 5 for the count, nor am I >>>>> seeing >>>>> "Getting The Count" in the console. How do I get this to work? >>>>> >>>>> Thanks, >>>>> >>>>> -Rich- >>>>> >>>>> ------------------------------------------------------------------------- >>>>> SF.Net email is sponsored by: >>>>> Check out the new SourceForge.net Marketplace. >>>>> It's the best place to buy or sell services >>>>> for just about anything Open Source. >>>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>>> _______________________________________________ >>>>> Rubycocoa-talk mailing list >>>>> Rub...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> SF.Net email is sponsored by: >>>> Check out the new SourceForge.net Marketplace. >>>> It's the best place to buy or sell services >>>> for just about anything Open Source. >>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>> _______________________________________________ >>>> Rubycocoa-talk mailing list >>>> Rub...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>> >>> >>> ------------------------------------------------------------------------- >>> SF.Net email is sponsored by: >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services >>> for just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>> _______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> ------------------------------------------------------------------------- >> SF.Net email is sponsored by: >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services >> for just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace_______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Rich W. <rw...@gm...> - 2008-01-11 10:35:00
|
I finally got around to trying this. However, I kept getting errors. ruby install.rb config ruby install doc This fails with the following error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ install.rb: entering doc phase... ---> framework /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby gen_bridge_doc.rb build ../bridge-doc mkdir -p /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge- doc /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby - I../../ext/rubycocoa -I../../lib gen_bridge_doc/rdocify_framework.rb '/Developer/Documentation/DocSets/ com.apple.ADC_Reference_Library.CoreReference.docset/Contents/ Resources/Documents/documentation/Cocoa/Reference/ApplicationKit/' / Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge-doc/ruby Working on: ApplicationKit mkdir -p /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge- doc/ruby Processing reference file: CIColor_AppKitAdditions /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/tool/ gen_bridge_doc/lib/cocoa_ref.rb:70:in `join': can't convert nil into String (TypeError) from /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/tool/ gen_bridge_doc/lib/cocoa_ref.rb:70:in `initialize' from gen_bridge_doc/rdocify_framework.rb:173:in `new' from gen_bridge_doc/rdocify_framework.rb:173 from gen_bridge_doc/rdocify_framework.rb:171:in `each' from gen_bridge_doc/rdocify_framework.rb:171 gen_bridge_doc.rb:35:in `command': 'system /System/Library/Frameworks/ Ruby.framework/Versions/1.8/usr/bin/ruby -I../../ext/rubycocoa -I../../ lib gen_bridge_doc/rdocify_framework.rb '/Developer/Documentation/ DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/ Resources/Documents/documentation/Cocoa/Reference/ApplicationKit/' / Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge-doc/ruby' failed (RuntimeError) from gen_bridge_doc.rb:39:in `ruby' from gen_bridge_doc.rb:99 from gen_bridge_doc.rb:98:in `each' from gen_bridge_doc.rb:98 rm -rf bridge-doc doc failed hook /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/pre-doc.rb failed: 'system /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ ruby gen_bridge_doc.rb build ../bridge-doc' failed try 'ruby install.rb --help' for usage ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I also tried rake build rake doc But this also failed. Am I missing something? Do I need to install a library or something to get this to work? Thanks, -Rich- On Dec 17, 2007, at 12:06 AM, Axel Sachmann wrote: > Hi Rich, > > i was searching this stuff too. I downloaded the > rubycocoa-0.13.0.tar file and then install it manually. > Then you must use the install script to generate the doc. > > ruby install config > > ruby install doc > > --> look in the folder /RubyCocoa-0.13.0/framework/bridge-doc/ > > Thats it... > > Axel > > > Am 17.12.2007 um 05:46 schrieb Rich Warren: > >> Thanks, but I'd already read those, and was looking for something a >> bit more in-depth. >> >> Specifically, I'm looking for the BridgeDoc generated documentation >> mentioned in http://rubycocoa.sourceforge.net/FrameworkDocumentation. >> That site says the html documentation should be located in / >> Developer/ >> Documentation/RubyCocoa/Frameworks, but that folder does not exist on >> my system, and /Developer/Documentation/RubyCocoa simply contains a >> few japanese files. Additionally, it mentions using ri to access the >> documentation, but that doesn't work either. >> >> Does anyone know how to generate this documentation for Leopard? I >> assume I have to use BridgeDoc, but I'm not sure what that is, or >> where I can get it. Also, are there any differences in the Leopard >> distribution of RubyCocoa that I need to be aware of? >> >> Thanks, >> >> -Rich- >> >> >> >> On Dec 16, 2007, at 3:56 PM, Ian Joyner wrote: >> >>> Hi Rich, >>> >>> This seems hot off the press: >>> >>> http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/Introduction/Introduction.html >>> >>> Ian >>> >>> On 14/12/2007, at 7:50 PM, Rich Warren wrote: >>> >>>> I'm fairly familiar with both Ruby and Cocoa, but I've never really >>>> played around with RubyCocoa before. I read the "Ruby and Python on >>>> Mac OS X" article from the Apple Developer Connection, and I'm >>>> looking >>>> for more in-depth documentation. >>>> >>>> I'm using the version of RubyCocoa that comes with Leopard. It >>>> seems >>>> that the documentation is...missing? >>>> >>>> I found the example code at /Developer/Examples/Ruby/RubyCocoa, but >>>> the documentation at /Developer/Documentation/RubyCocoa has only >>>> three >>>> smallish HTML files in Japanese. >>>> >>>> ri doesn't seem to work for any OSX::* items. >>>> >>>> How do I find/load the documentation into Leopard? >>>> >>>> Are there any other good sources of RubyCocoa documentation? >>>> >>>> In particular, I'm looking for some information on CoreData and Key >>>> Value compliance. >>>> >>>> In short, I have a parent entity that has a to many relationship >>>> with >>>> a child entity. I currently display all the parents in a table. I >>>> would like to have one column bind to the child count for each >>>> parent. >>>> >>>> In Cocoa, I would do this by giving the parent a transient "count" >>>> attribute. I would then make a subclass of NSManagedObject and have >>>> the parent use my subclass. In my subclass, I would create a - >>>> (int_32t)count method that returned the child count. This would get >>>> called, through the magic of KVC for my parent's count value. >>>> >>>> In RubyCocoa I tried the same. But it didn't work. My sample code >>>> is >>>> below. >>>> >>>> require 'osx/cocoa' >>>> >>>> class ManagedParent < OSX::NSManagedObject >>>> >>>> def count() >>>> puts "Getting The Count" >>>> return 5 >>>> end >>>> end >>>> >>>> Yes, yes. I know. I'm not actually getting the child count. But I >>>> wanted to get this, simpler version working before I tried to >>>> tackle >>>> the whole valueForKey_("child") mess. >>>> >>>> When I run my code, I'm not getting 5 for the count, nor am I >>>> seeing >>>> "Getting The Count" in the console. How do I get this to work? >>>> >>>> Thanks, >>>> >>>> -Rich- >>>> >>>> ------------------------------------------------------------------------- >>>> SF.Net email is sponsored by: >>>> Check out the new SourceForge.net Marketplace. >>>> It's the best place to buy or sell services >>>> for just about anything Open Source. >>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>> _______________________________________________ >>>> Rubycocoa-talk mailing list >>>> Rub...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>> >>> >>> >>> >>> ------------------------------------------------------------------------- >>> SF.Net email is sponsored by: >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services >>> for just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>> _______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> ------------------------------------------------------------------------- >> SF.Net email is sponsored by: >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services >> for just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Jason F. <ja...@th...> - 2008-01-11 00:51:38
|
Rich, On Jan 10, 2008, at 3:26 AM, Rich Warren wrote: > I want to call some Ruby code from existing cocoa applications. I > assume I should use RBBundleInit(), but I'm not entirely sure I > understand it. In particular, what's the Class argument for? > The Class argument is used to identify the bundle and get the path to the script you are loading. I've written a short blog article that covers using RBBundleInit() to load RubyCocoa bundles into existing apps: http://threeve.org/blog/2007/12/loadable-bundles-using-rubycocoa.html > Am I on the right track here? Seems like you are. Good luck! Jason |
From: Satoshi N. <sna...@in...> - 2008-01-10 18:47:36
|
Hi, If you try "p objc", you will see it's an ObjcPtr object. #<OSX::ObjcPtr:0x50310d8 cptr=0xbfffafdc allocated_size=0 encoding=@> You can deal with pointer arguments through the ObjcPtr class. Actually I wrote a custom NSFormatter as follows: class SingleLineFormatter < NSFormatter def stringForObjectValue(str) str.to_s.gsub(/\r\n|\r|\n/, ' ') end def getObjectValue_forString_errorDescription(objp, str, err) s = str.to_s.gsub(/\r\n|\r|\n/, ' ') objp.assign(s.to_ns) true end def isPartialStringValid_newEditingString_errorDescription(str, strp, err) s = str.to_s return true unless s =~ /\r\n|\r|\n/ s = s.gsub(/\r\n|\r|\n/, ' ') strp.assign(s.to_ns) false end end -- Satoshi Nakagawa On 2008/01/11, at 2:33, Antonin Amand wrote: > Hey, > > I'm trying to subclass NSFormatter but I don't know how to override > getObjectValue_forString_errorDescription > because it has pointer arguments. > > Is there a way to do this or do I have to do Objective-C. > > Thanks. > > Antonin. |
From: Chris S. <chr...@tr...> - 2008-01-10 17:58:01
|
Hello I am trying to make a new Custom OSX::NSFormatter. I have read the Objective-c documentation and I believe that the class below should work: Code: require 'osx/cocoa' class TotalTimeFormatter < OSX::NSFormatter def stringForObjectValue(anObject) OSX::NSLog("TotalTimeFormatter(stringForObjectValue): Passed Object - > %@ (%@)", anObject, anObject.class) return anObject.to_s(); end #ib_action :commitCurrentTimeRecord do |sender| def getObjectValue_forString_errorDescription(anObject, string, error) OSX ::NSLog ("TotalTimeFormatter(getObjectValue_forString_errorDescription): Passed Object -> %@ (%@)", anObject, anObject.class) return anObject.to_s(); end #ib_action :commitCurrentTimeRecord do |sender| def attributedStringForObjectValue_withDefaultAttributes(anObject, attributes) OSX ::NSLog ("TotalTimeFormatter (attributedStringForObjectValue_withDefaultAttributes): Passed Object - > %@ (%@) ", anObject, anObject.class) return anObject.to_s(); end end When running the app I get the following error in the log: 2008-01-10 12:43:51.117 TicTocRuby[1928:10b] TotalTimeFormatter (attributedStringForObjectValue_withDefaultAttributes): Passed Object - > 1146 (NSCFNumber) 2008-01-10 12:43:51.121 TicTocRuby[1928:10b] TotalTimeFormatter (attributedStringForObjectValue_withDefaultAttributes): Passed Object - > 1146 (NSCFNumber) 2008-01-10 12:43:51.126 TicTocRuby[1928:10b] *** -[NSCFString attribute:atIndex:longestEffectiveRange:inRange:]: unrecognized selector sent to instance 0xa0b5f8f4 /Users/chris/TicTocRuby/build/Debug/TicTocRuby.app/Contents/Resources/ rb_main.rb:22:in `NSApplicationMain': NSInvalidArgumentException - *** -[NSCFString attribute:atIndex:longestEffectiveRange:inRange:]: unrecognized selector sent to instance 0xa0b5f8f4 (OSX::OCException) from /Users/chris/TicTocRuby/build/Debug/TicTocRuby.app/Contents/ Resources/rb_main.rb:22 I have played around with this and it seems the only way I can have this class working correctly is to return a blank string using the following syntax, but this returns a blank string: return OSX::NSString.alloc.init If I try the following I get the same error: return OSX::NSString.alloc.initWithString("Hello World") I have looked over the documentation and I can't find any reference to that error. Any help would be much appreciated. Thanks In Advance!!! |
From: Antonin A. <ant...@gw...> - 2008-01-10 17:34:12
|
Hey, I'm trying to subclass NSFormatter but I don't know how to override getObjectValue_forString_errorDescription because it has pointer arguments. Is there a way to do this or do I have to do Objective-C. Thanks. Antonin. |
From: Rich W. <rw...@gm...> - 2008-01-10 09:27:03
|
I want to call some Ruby code from existing cocoa applications. I assume I should use RBBundleInit(), but I'm not entirely sure I understand it. In particular, what's the Class argument for? Am I on the right track here? Thanks, -Rich- |
From: Patrick G. <pge...@wa...> - 2008-01-10 00:29:21
|
> > Try passing a proc object for the callback parameter instead: > > myCallback = proc do |proxy, type, event, refcon| > puts 'CALLBACK' > 0 > end Works like a charm ! Merci bien :) -Patrick |
From: Laurent S. <lsa...@ap...> - 2008-01-09 23:57:39
|
Bonjour Patrick, Try passing a proc object for the callback parameter instead: myCallback = proc do |proxy, type, event, refcon| puts 'CALLBACK' 0 end tapPort = CGEventTapCreate( KCGSessionEventTap, KCGTailAppendEventTap, KCGEventTapOptionListenOnly, (1 << KCGEventMouseMoved), myCallback, nil) Laurent On Jan 10, 2008, at 12:49 AM, Patrick Geiller wrote: > Hello, > > I'm having trouble with my callback to CGEventTapCreate(). RubyCocoa > says it cannot convert an argument, but I'm not sure if I'm using the > right syntax for setting up the callback. > > class ApplicationController < NSObject > def applicationDidFinishLaunching (notification) > tapPort = CGEventTapCreate(KCGSessionEventTap, > KCGTailAppendEventTap, > KCGEventTapOptionListenOnly, > (1 << KCGEventMouseMoved), > :myCallback, > nil) > end > > def myCallback(proxy, type, event, refcon) > print('CALLBACK') > return 0 > end > end > > > Error: > 2008-01-10 00:43:03.152 EventTap[190:10b] > ApplicationController#applicationDidFinishLaunching: > OSX::OCDataConvException: Cannot convert the argument #4 as '^? > ^{__CGEvent=}^{__CGEventTapProxy=}I^{__CGEvent=}^v' to Objective-C > /Users/mini/Documents/xcode projects/Xcode build data/Release/ > EventTap.app/Contents/Resources/ApplicationController.rb:17:in > `CGEventTapCreate' > /Users/mini/Documents/xcode projects/Xcode build data/Release/ > EventTap.app/Contents/Resources/ApplicationController.rb:17:in > `applicationDidFinishLaunching' > /Users/mini/Documents/xcode projects/Xcode build data/Release/ > EventTap.app/Contents/Resources/rb_main.rb:23:in `NSApplicationMain' > /Users/mini/Documents/xcode projects/Xcode build data/Release/ > EventTap.app/Contents/Resources/rb_main.rb:23 > 2008-01-10 00:43:03.158 EventTap[190:10b] Cannot convert the argument > #4 as '^?^{__CGEvent=}^{__CGEventTapProxy=}I^{__CGEvent=}^v' to > Objective-C > > > Thanks, > -Patrick > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Patrick G. <pge...@wa...> - 2008-01-09 23:49:55
|
Hello, I'm having trouble with my callback to CGEventTapCreate(). RubyCocoa says it cannot convert an argument, but I'm not sure if I'm using the right syntax for setting up the callback. class ApplicationController < NSObject def applicationDidFinishLaunching (notification) tapPort = CGEventTapCreate(KCGSessionEventTap, KCGTailAppendEventTap, KCGEventTapOptionListenOnly, (1 << KCGEventMouseMoved), :myCallback, nil) end def myCallback(proxy, type, event, refcon) print('CALLBACK') return 0 end end Error: 2008-01-10 00:43:03.152 EventTap[190:10b] ApplicationController#applicationDidFinishLaunching: OSX::OCDataConvException: Cannot convert the argument #4 as '^? ^{__CGEvent=}^{__CGEventTapProxy=}I^{__CGEvent=}^v' to Objective-C /Users/mini/Documents/xcode projects/Xcode build data/Release/ EventTap.app/Contents/Resources/ApplicationController.rb:17:in `CGEventTapCreate' /Users/mini/Documents/xcode projects/Xcode build data/Release/ EventTap.app/Contents/Resources/ApplicationController.rb:17:in `applicationDidFinishLaunching' /Users/mini/Documents/xcode projects/Xcode build data/Release/ EventTap.app/Contents/Resources/rb_main.rb:23:in `NSApplicationMain' /Users/mini/Documents/xcode projects/Xcode build data/Release/ EventTap.app/Contents/Resources/rb_main.rb:23 2008-01-10 00:43:03.158 EventTap[190:10b] Cannot convert the argument #4 as '^?^{__CGEvent=}^{__CGEventTapProxy=}I^{__CGEvent=}^v' to Objective-C Thanks, -Patrick |
From: Eloy D. <elo...@gm...> - 2008-01-05 11:32:17
|
Hi Rich, Running it from xcode will only work if you make a tcp connection to the debugger server from a cli client. I have no idea however why xcode would set a breakpoint marker though.... :? The best/easiest way to get this to work is the following: - Do a build debug/release whatever. - And run the build from the Terminal: $ code/MyApp/build/Debug/Contents/MacOS/MyApp - And you will get the debugger right there in the Terminal: =========================================================== $ build/Debug/DebugTest.app/Contents/MacOS/DebugTest if @assets_files.nil? (rdb:1) help ruby-debug help v0.10.0 Type 'help <command-name>' for help on a specific command Available commands: backtrace disable exit irb pp restart step up break display finish list ps save thread var catch down frame method putl set tmate where continue enable help next quit show trace delete eval info p reload source undisplay (rdb:1) irb irb(OSX::NSImage):001:0> instance_variables => ["@assets_files", "@ocid", "@inherited", "@__imported_arity", "@__mnames__"] irb(OSX::NSImage):002:0> quit /Library/Ruby/Gems/1.8/gems/rucola-0.0.3/lib/rucola/rucola_support/ core_ext/objc/nsimage.rb:7 if @assets_files.nil? (rdb:1) quit Really quit? (y/n) y =========================================================== Hope this helps. Cheers, Eloy On 5 jan 2008, at 08:53, Rich Warren wrote: > I tried ruby-debug, and set a breakpoint by adding the 'debugger' line > to my code. > > Oddly enough, XCode placed a breakpoint marker just after my > 'debugger' line. When I executed the code, it seemed to stop at the > breakpoint. Unfortunately, I couldn't do anything else--but at least > it's partially working. > > I tried to launch the code from the command line by running 'ruby > rb_main.rb' but it seems to be missing references to the Cocoa xml > files. I'll poke at it some more and let everyone know if I find > anything useful. > > -Rich- > > On Dec 30, 2007, at 1:04 AM, Eloy Duran wrote: > >> Hi, >> >> I can't speak for when/if this will be included with XCode. >> However what I use is ruby-debug (http://www.datanoise.com/ruby- >> debug/), >> it works the same with rubycocoa as it does with any other ruby code. >> >> I have some code to make it use another gui etc, >> but that's not clean enough to release atm. >> But until I do, or somebody else ;-], it should work fine in the >> terminal. >> >> Cheers, >> Eloy >> >> On 28 dec 2007, at 11:38, Tim Perrett wrote: >> >>> Hi Rich, >>> >>> Yes thats right - at the moment you cannot use breakpoints with ruby >>> code. >>> >>> Eloy or Laurent might be able to tell you if/when that might be >>> implemented. >>> >>> Cheers >>> >>> Tim >>> >>> >>> On 28 Dec 2007, at 08:50, Rich Warren wrote: >>> >>>> I'm using RubyCocoa in Leopard. It seems that XCode will not let me >>>> set breakpoints in any of the Ruby code. Is that correct? Or am I >>>> doiong something wrong? >>>> >>>> What's the best way to use this code with a debugger? >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Rich W. <rw...@gm...> - 2008-01-05 07:53:28
|
I tried ruby-debug, and set a breakpoint by adding the 'debugger' line to my code. Oddly enough, XCode placed a breakpoint marker just after my 'debugger' line. When I executed the code, it seemed to stop at the breakpoint. Unfortunately, I couldn't do anything else--but at least it's partially working. I tried to launch the code from the command line by running 'ruby rb_main.rb' but it seems to be missing references to the Cocoa xml files. I'll poke at it some more and let everyone know if I find anything useful. -Rich- On Dec 30, 2007, at 1:04 AM, Eloy Duran wrote: > Hi, > > I can't speak for when/if this will be included with XCode. > However what I use is ruby-debug (http://www.datanoise.com/ruby- > debug/), > it works the same with rubycocoa as it does with any other ruby code. > > I have some code to make it use another gui etc, > but that's not clean enough to release atm. > But until I do, or somebody else ;-], it should work fine in the > terminal. > > Cheers, > Eloy > > On 28 dec 2007, at 11:38, Tim Perrett wrote: > >> Hi Rich, >> >> Yes thats right - at the moment you cannot use breakpoints with ruby >> code. >> >> Eloy or Laurent might be able to tell you if/when that might be >> implemented. >> >> Cheers >> >> Tim >> >> >> On 28 Dec 2007, at 08:50, Rich Warren wrote: >> >>> I'm using RubyCocoa in Leopard. It seems that XCode will not let me >>> set breakpoints in any of the Ruby code. Is that correct? Or am I >>> doiong something wrong? >>> >>> What's the best way to use this code with a debugger? >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Rich W. <rw...@gm...> - 2008-01-05 07:46:27
|
Pierce, Thanks for the reply. I assume you're talking about the following line from my application delegate: OSX::CoreData.define_wrapper(@managedObjectModel) The only problem is, I want it to build the wrappers for all the other attributes. I suppose I could re-define the method after that call-- but that sounds like a bother. It's probably best to just leave that bit in Objective C (though, I was trying to see how far I could push this). Thanks again. -Rich- On Jan 3, 2008, at 9:59 AM, Pierce T. Wetter III wrote: > > On Jan 3, 2008, at 12:28 AM, Rich Warren wrote: > >> Hi, >> >> I'm working on a RubyCocoa Core Data project. In that project, I'm >> trying to subclass NSManagedObject to return specific values for the >> count attribute. Count otherwise behaves like any other Core Data >> attribute. >> >> The following Objective C code works fine. It correctly returns the >> number of posts associated with the posts relationship. > > > > The sample Core Data code has some call in it that builds generic > KVC wrappers for all of the attributes declared in the model. Since it > does this generally _after_ the class has been loaded and ruby lets > you redefine methods at will, its trashing your implementation. > > If you comment out the line that builds those wrappers, you'll be > good to go. > > Pierce > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Pierce T. W. I. <pi...@tw...> - 2008-01-03 19:59:43
|
On Jan 3, 2008, at 12:28 AM, Rich Warren wrote: > Hi, > > I'm working on a RubyCocoa Core Data project. In that project, I'm > trying to subclass NSManagedObject to return specific values for the > count attribute. Count otherwise behaves like any other Core Data > attribute. > > The following Objective C code works fine. It correctly returns the > number of posts associated with the posts relationship. The sample Core Data code has some call in it that builds generic KVC wrappers for all of the attributes declared in the model. Since it does this generally _after_ the class has been loaded and ruby lets you redefine methods at will, its trashing your implementation. If you comment out the line that builds those wrappers, you'll be good to go. Pierce |
From: Rich W. <rw...@gm...> - 2008-01-03 10:56:51
|
My Ruby object had implemented observeValueForKeyPath_ofObject_change_context_(), but RubyCocoa called observeValueForKeyPath_ofObject_change_context(). So, I'm guessing the RubyCocoa framework drops the final underscore by default, and I should probably adopt the same convention (for consistency, and to prevent this sort of problem in the future). I think it's all starting to make sense! Thanks, -Rich- |
From: Rich W. <rw...@gm...> - 2008-01-03 07:28:17
|
Hi, I'm working on a RubyCocoa Core Data project. In that project, I'm trying to subclass NSManagedObject to return specific values for the count attribute. Count otherwise behaves like any other Core Data attribute. The following Objective C code works fine. It correctly returns the number of posts associated with the posts relationship. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #import <Cocoa/Cocoa.h> @interface ObjCManagedFeed : NSManagedObject { } -(int)count; @end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #import "ObjCManagedFeed.h" @implementation ObjCManagedFeed -(int)count { id posts = [self valueForKey:@"posts"]; NSArray * all = [posts allObjects]; return [all count]; } @end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ However, when I try to convert this to Ruby, the count() method is never called. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ require 'osx/cocoa' class ManagedFeed < OSX::NSManagedObject def count() puts "*** This never gets called ***" posts = valueForKey_("posts") posts.allObjects.size end end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I don't understand why; though it might be a bad interaction between Core Data's bindings and RubyCocoa's wrappers. I also wonder if this has anything to do with my last, KVO question. If anyone can explain this to me, I'd be grateful. Thanks. -Rich- |
From: Rich W. <rw...@gm...> - 2008-01-01 03:52:52
|
I thought I'd read that RubyCocoa supported Key Value Observing; however, I can't get the following to work: require 'osx/cocoa' OSX.require_framework 'CoreData' class AppDelegate < OSX::NSObject def awakeFromNib() @posts.addObserver_forKeyPath_options_context_(self, "content", 0, nil) end def observeValueForKeyPath_ofObject_change_context_(key_path, object, change, context) set_html() if object == @posts end ... end When I run this code, I get the following error: /Users/rikiwarren/Develop/Ruby/Test/build/Release/Test.app/Contents/ Resources/rb_main.rb:22:in `NSApplicationMain': Ruby object `#<AppDelegate:0xe3c90c class='AppDelegate' id=0x26dbbe0>' doesn't respond to the ObjC selector `observeValueForKeyPath:ofObject:change:context:', the method either doesn't exist or is private (RuntimeError) from /Users/rikiwarren/Develop/Ruby/Test/build/Release/ ArticleSandbox.app/Contents/Resources/rb_main.rb:22 Bindings seems to work fine, and I know that uses KVO heavily. Any idea what I'm doing wrong here? -Rich- |
From: Patrick H. <ph...@gm...> - 2007-12-31 23:26:57
|
Just to show I am not a complete help vampire, here (http://pastie.textmate.org/private/fkshzuztdn1aai1x8j7sw) is a semi-handy Ruby script to process your address book, finding any entries without phone numbers, but with an address. It then goes out to anywho.com and looks up the phone number and adds it to your address book. If you are curious I managed to import my xmas card list into address book and used it for my mailing this year, but did not have phone numbers, now I do. Thanks everyone for your help, pth |
From: Patrick H. <ph...@gm...> - 2007-12-31 17:39:53
|
On Dec 31, 2007 11:54 AM, Alpha Chen <alp...@gm...> wrote: > Try using addrs = addrs.mutableCopy to get an ABMutableMultiValue that > Alpha > Thanks that was perfect pth |
From: Alpha C. <alp...@gm...> - 2007-12-31 16:54:27
|
On Dec 31, 2007 6:50 AM, Patrick Hurley <ph...@gm...> wrote: > addrs = me.valueForProperty("Address") # => > #<OSX::ABMultiValueCoreDataWrapper:0xbf5d6 > class='ABMultiValueCoreDataWrapper' id=0x53b330> > addr = addrs.valueAtIndex(0) # => > #<OSX::NSCFDictionary:0xbf22a class='NSCFDictionary' id=0x53fe30> > addr["Street"] = "1234 Anystreet" # => "1234 Anystreet" > addr["Street"].to_s # => "1234 Anystreet" > addrs.replaceValueAtIndex_withValue(0, addr) # => > OSX::OCMessageSendException: Can't get Objective-C method signature > for selector 'replaceValueAtIndex:withValue:' of receiver > #<OSX::ABMultiValueCoreDataWrapper:0x1f2f2 > class='ABMultiValueCoreDataWrapper' id=0x51e640> > # ab.save Try using addrs = addrs.mutableCopy to get an ABMutableMultiValue that you can modify. You'll probably need to use me.setValue_forProperty to write the changes back to the person record. Also, you should probably be using the KABAddressProperty constant to access the addresses in the me.valueForProperty method. Regards, Alpha |
From: Patrick H. <ph...@gm...> - 2007-12-31 14:50:54
|
Thanks for the assistance, I have a followup question, which (to me at least) appears to be a RubyCocoa question, but is probably my lack of understanding of Cocoa. I am now trying to update addresses in the Address Book using RubyCocoa. I have the following code, which based on my reading of the documentation, I though would work, but alas no luck. require 'osx/cocoa' include OSX OSX.require_framework "AddressBook" me = ABAddressBook.sharedAddressBook.me # => #<OSX::ABPerson:0xbf9a0 class='ABPerson' id=0x536ef0> addrs = me.valueForProperty("Address") # => #<OSX::ABMultiValueCoreDataWrapper:0xbf5d6 class='ABMultiValueCoreDataWrapper' id=0x53b330> addr = addrs.valueAtIndex(0) # => #<OSX::NSCFDictionary:0xbf22a class='NSCFDictionary' id=0x53fe30> addr["Street"] = "1234 Anystreet" # => "1234 Anystreet" addr["Street"].to_s # => "1234 Anystreet" addrs.replaceValueAtIndex_withValue(0, addr) # => OSX::OCMessageSendException: Can't get Objective-C method signature for selector 'replaceValueAtIndex:withValue:' of receiver #<OSX::ABMultiValueCoreDataWrapper:0x1f2f2 class='ABMultiValueCoreDataWrapper' id=0x51e640> # ab.save Any help would be very appreciated, Happy New Year pth On Dec 24, 2007 1:57 AM, Satoshi Nakagawa <sna...@in...> wrote: > Hi, > > The value comes from a constant, kABHomeLabel. > > http://developer.apple.com/documentation/UserExperience/Reference/AddressBook/Classes/ABPerson_Class/Reference/Reference.html > > Proof: > > require 'osx/cocoa' > include OSX > OSX.require_framework "AddressBook" > puts KABWorkLabel > puts KABHomeLabel > puts KABOtherLabel > > Result: > > _$!<Work>!$_ > _$!<Home>!$_ > _$!<Other>!$_ > > -- > Satoshi Nakagawa > > > On 2007/12/24, at 7:04, Patrick Hurley wrote: > > > This is probably more of a cocoa question than a rubycocoa question, > > so feel free to ignore me :-) I am trying to work with address book, > > and at least at the moment I am stumped by labels in > > AbMultiValueCoreDataWrapper. I expect to see "Home", but I get > > "_$<Home>!$_". > > > > Thanks for any help, pointers to docs, etc. > > pth > > > > > > require 'osx/cocoa' > > include OSX > > OSX.require_framework "AddressBook" > > > > me = ABAddressBook.sharedAddressBook.me # => > > #<OSX::ABPerson:0xbf3d8 class='ABPerson' id=0x514af0> > > addr_info = me.valueForProperty("Address") # => > > #<OSX::ABMultiValueCoreDataWrapper:0xbf04a > > class='ABMultiValueCoreDataWrapper' id=0x51f0e0> > > addr_info.labelAtIndex(0).to_s # => "_$!<Home>!$_" > > addr_info.identifierAtIndex(0).to_s # => > > "E2E83CDE-3FE3-4F89-9EBD-1030C483A6D8" > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |