Author: ericwa
Date: Tue Oct 15 08:17:36 2013
New Revision: 37232

URL: http://svn.gna.org/viewcvs/gnustep?rev=37232&view=rev
Log:
        * Source/NSTabView.m (-initWithCoder:): Make non-keyed archives
        call -selectTabViewItem: to select the current tab at unarchiving
        time (keyed archives were already doing this.)

        Comment: "N.B.: As a side effect, this discards the subview frame
        and sets it to [self contentRect].

        This is desirable because the subview frame will be different
        depending on whether the arcive is from Cocoa or GNUstep,
        and which GNUstep theme was active at save time.

        However, it does mean that the tab view contents should be
        prepared to resize slightly."

        The immediate need for this is tab views were changed to use
        flipped coordinates, so the subview frames stored in existing
        archives are now in the wrong coordinate system.

        This is essentially the same idea as NSScrollView calling -tile at the
        end of -initWithCoder: so I hope it makes sense for tab views too.

Modified:
    libs/gui/trunk/ChangeLog
    libs/gui/trunk/Source/NSTabView.m


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to