Wolfgang... The patch looks good. Please go ahead and apply it and make the change in GSNibLoading.m as well, if you wish.
Thanks, GC On Sun, Mar 28, 2010 at 4:45 PM, Wolfgang Lux <wolfgang....@gmail.com> wrote: > Gregory Casamento wrote: > >> Top level objects in the nib are the responsibility of the controller. >> That is to say that if you load a nib from MyController then any and >> all top level objects in that nib should be released by MyController >> when it deallocates itself. > > Indeed. What I tried to point out (but maybe failed to do properly) is that > GNUstep does not implement this policy when the controller explicitly asks > for the top level objects using the NS(Nib)TopLevelObjects key. If one uses > that key, GNUstep passes ownership of the top level objects exclusively to > the array that is used to return the objects and when the controller > releases the top level objects, the application will crash. In fact, it is > even documented in the code that GSNibLoading and GSGormLoading are > implemented that way. However, this is incompatible with both Apple's > documentation and implementation. Attached below is a patch to fix > GSGormLoading. A similar change will be necessary in GSNibLoading. > > Wolfgang > > > > > > -- Gregory Casamento - GNUstep Lead/Principal Consultant, OLC, Inc. yahoo/skype: greg_casamento, aol: gjcasa (240)274-9630 (Cell) _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev