[MacRuby-devel] [MacRuby] #228: Crash in my NSOutlineView data source

MacRuby ruby-noreply at macosforge.org
Mon Mar 9 16:42:33 PDT 2009


#228: Crash in my NSOutlineView data source
--------------------------------+-------------------------------------------
 Reporter:  cyberfox@…          |        Owner:  lsansonetti@…        
     Type:  defect              |       Status:  closed               
 Priority:  major               |    Milestone:                       
Component:  MacRuby             |   Resolution:  invalid              
 Keywords:  crash               |  
--------------------------------+-------------------------------------------

Comment(by cyberfox@…):

 Greetings,

 Ah; thank you!  That's what I needed to know.

 I figured there was something deeper that I was missing, but being new to
 Cocoa, I didn't even know what to look for.

 The key line appears to be

 ''The data source is in turn responsible for retaining all of the objects
 it provides to an outline view, and updating the outline view when there’s
 a change to the model. It is therefore not safe to release the root
 item—or any children—until you’re no longer displaying it in the outline
 view.''

 Presumably they're being released by the GC in between accesses.  Thanks
 very much for the pointer!

 --  Morgan Schweers

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



More information about the MacRuby-devel mailing list