gnustep-dev
[Top][All Lists]
Advanced

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

Re: r27812 - in /libs/gui/trunk: ChangeLog Source/NSBundleAdditions.m


From: Fred Kiefer
Subject: Re: r27812 - in /libs/gui/trunk: ChangeLog Source/NSBundleAdditions.m
Date: Mon, 22 Mar 2010 10:14:42 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.8) Gecko/20100228 SUSE/3.0.3-1.1.1 Thunderbird/3.0.3

Am 19.03.2010 09:20, schrieb Fred Kiefer:
> My current position on NIB loading is that no magic should happen there.
> Objects created while loading a NIB file should follow the standard
> rules. Nothing will be retained except for the top level objects being
> retained in the top level object array. (And of course instantiated and
> visible windows by the normal window display mechanism)
> That way anything that is not retained by the owner or specifically
> extracted from the top level object array will be freed after loading
> the NIB file when no other reference exists.
> If we can all agree on this position (and better yet, check that it is
> valid on Cocoa), I am going to change our code into this direction.
> This may require some extra handling in NSWindowController or NSDocument.

Wolfgang was right, the problem in Bean was not relate to NIB loading at
all. This issue should be resolved (or at least worked around), by the
change I made to NSDocument last night.

The problem with NIB loading was rather that we retained too much. I
tried to resolve this by adding proper releasing of the real object to
many of the NIB loading helper classes and correcting the top level
object handling there as well. This is only the beginning of more clean
up, but should resolve most of the known issues.

Could you please give this code a try and load your favourite NIB file?
I haven't tried the results this change has on Gorm, which should also
be tested.

Fred




reply via email to

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