discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GWorkspace issues


From: Nicola Pero
Subject: Re: GWorkspace issues
Date: Mon, 29 Jan 2001 21:00:46 +0000 (GMT)

>>>>> "Enrico" == Enrico Sersale <address@hidden> writes:

    Enrico> But, anyway, I think that there is a little bug in
    Enrico> NSSplitView ;-)


    Enrico> After moving the divider, the delegate
    Enrico> __splitView_resizeSubviewsWithOldSize_ method is never
    Enrico> called.

    Enrico> I think that you should add [self adjustSubviews] at the
    Enrico> end of __mouseDown_ .

Ok - it was buggy and you are right in this :-) - I fixed NSSplitView
- but in a slightly different way.

I don't think it should send the splitView:resizeSubiewsWithOldSize:
at the end of dragging because that method is for when the splitview
itself is resized (hence the `old size' of the splitview in the name)
- but I agree that it should post the
NSSplitViewWillResizeSubviewsNotification and the
NSSplitViewDidResizeSubviewsNotification.

So - I fixed it to do it - in your case, you could implement 

- (void) splitViewDidResizeSubviews: (NSNotification *)aNotification;

in the delegate and it would be called after the user has released the
mouse and the splitview has resized the views - but before the
splitview redisplays itself - so you would have yet another way of
fixing the divider position at your choice after the user finished
dragging.



reply via email to

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