From: Eloy D. <e....@su...> - 2008-02-29 23:06:22
|
Hi Pierce, I haven't looked at the dcoumentation, but I'm guessing that the error is passed as a pointer, which doesn't work in RC. So what the bridge will do for you is recognize this and simply return and new NSError instance for you. So the method call should look like: @storeMetaDeta, error = NSPersistentStore.metadataForPersistentStoreWithURL_error(url) As you can see we only pass 1 arg and 2 objects will be returned. Cheers, Eloy On 29 feb 2008, at 19:40, Pierce T. Wetter III wrote: > > The code: > > > @storeMetaDeta > =NSPersistentStore.metadataForPersistentStoreWithURL_error(url,error) > > The error: > > 2008-02-29 10:36:04.750 Frictionless[48280:813] > AppDelegate#openAllWindows: OSX::OCException: > NSInvalidArgumentException - *** - > metadataForPersistentStoreWithURL:error: cannot be sent to an > abstract object of class NSPersistentStore: Create a concrete > instance! > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |