[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSView viewDidMoveToWindow
From: |
Stéphane Goujet |
Subject: |
NSView viewDidMoveToWindow |
Date: |
Tue, 23 Aug 2005 12:13:43 +0300 |
User-agent: |
Mozilla Thunderbird 1.0.6 (Windows/20050716) |
Hello,
is this method known to work or to be broken ?
The problem I have is that, for a view which is a subview of a
subview of [...] of a window, this method is called only once with
GNUStep, when it is added to its superview, but it is not called anymore
later, when its superview is added to another superview, etc., and when
the last superview is added to the window.
So, if I write in my view code :
-(void) viewDidMoveToWindow {
printf("window=%p\n", [self window]);
}
I will only get 1 line of result :
window=(null)
With Cocoa, I will get :
window=0x0
window=0x0
window=0x0
window=0x0
window=0x52a730
which is the result I expect.
Goodbye,
Stéphane.
- NSView viewDidMoveToWindow,
Stéphane Goujet <=