gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Next GNUstep release?


From: Gregory Casamento
Subject: Re: Next GNUstep release?
Date: Mon, 29 Mar 2010 12:49:49 -0400

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 <address@hidden> 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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]