View Full Version : drawRect before awakeFromNib
unknown
2005.08.24, 05:49 PM
It it supposed to do drawRect before awakeFromNib, im using a custom window class, so that might affect it. I can resolve the problem by doing setNeedsDisplay at the end of awakeFromNib, but Id rather not have too.
OneSadCookie
2005.08.25, 06:57 PM
Your original question is unintelligible :p
unknown
2005.08.25, 07:55 PM
Haha, So it is.
Sorry!! :wacko:
Ok, Ive got an NSView, and the -(void)drawRect:(NSRect)frame method is being called before - (void)awakeFromNib, Im wondering if this is what is supposed to happen and if there is a way to change the order.
OneSadCookie
2005.08.25, 08:08 PM
That shouldn't happen.
unknown
2005.08.25, 08:17 PM
Thats what I thought!
You see the NSView is inside a custom window class, I thought maybe thats the problem but I dont know....
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.