[Rubycocoa-devel 1236] Re: RC App won't start on Leopard

Back to archive index

kimura wataru kimur****@i*****
Mon Nov 12 23:55:18 JST 2007


Hi,

I tested your sample project on MacOSX 10.5 MacBook.

- Leopard built-in RubyCocoa -> same exception raised
- latest RubyCocoa trunk (r2123) -> works fine

I'll survey what change fixed this problem.

On Sat, 27 Oct 2007 23:56:26 +0200, Jacob Wallström wrote:
> Hi,
> 
> I have tracked down the issue now. If I add a method in a ruby 
> subclass to NSManagedObject (which is not an attribute in the data 
> model), and call the method with valueForKey:, I get the following 
> exception:
> 
> /Users/jawa/GhostAction/Product/GhostAction/build/Deployment/Ghost 
> Action.app/Contents/Resources/main2.rb:25:in `valueForKey': 
> NSInvalidArgumentException - *** -[Entity1 
> super:valueForUndefinedKey:]: unrecognized selector sent to instance 
> 0x11b013e0 (OSX::OCException)
> 
> I believe that this might be a problem with RubyCocoa since if I add 
> a similar method to an Obj-C subclass of NSManagedObject, the problem 
> does not occur. The problem does not occur on Tiger.
> 
> I'm attaching a sample project.
> 
> Thanks for any help,
> Jacob
> 
-- 
kimura wataru




More information about the Rubycocoa-devel mailing list
Back to archive index