[MacRuby-devel] [MacRuby] #660: ER: Pointer needs a #cast for untyped pointers

MacRuby ruby-noreply at macosforge.org
Tue Apr 20 16:25:50 PDT 2010


#660: ER: Pointer needs a #cast for untyped pointers
---------------------------------------+------------------------------------
 Reporter:  joshua.ballanco@…          |        Owner:  lsansonetti@…        
     Type:  defect                     |       Status:  closed               
 Priority:  blocker                    |    Milestone:  MacRuby 0.6          
Component:  MacRuby                    |   Resolution:  fixed                
 Keywords:                             |  
---------------------------------------+------------------------------------
Changes (by lsansonetti@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => MacRuby 0.6


Comment:

 I added the Pointer#cast! method in r3945 + specs in r3946. However in
 your case, I recommend using the following instead:

 {{{
 framework 'CoreData'

 val = NSPersistentStoreCoordinator.registeredStoreTypes[NSSQLiteStoreType]
 klass = val.nonretainedObjectValue
 klass.migrationManagerClass
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/660#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list