drawRect before awakeFromNib

Sage
Posts: 1,403
Joined: 2005.07
Post: #1
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.

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
Your original question is unintelligible Rasp
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #3
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.

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #4
That shouldn't happen.
Quote this message in a reply
Sage
Posts: 1,403
Joined: 2005.07
Post: #5
Thats what I thought!
You see the NSView is inside a custom window class, I thought maybe thats the problem but I dont know....

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  drawRect not being called IckyThump 4 7,220 Aug 13, 2009 06:48 AM
Last Post: IckyThump
  drawRect in NSOpenGLView help fakeOne 3 4,452 Sep 3, 2006 09:04 AM
Last Post: Xenos
  drawRect: is not executed after setNeedsDisplay:YES Moridin 7 8,339 Oct 19, 2005 12:42 AM
Last Post: Moridin
  drawRect without resetting the NSView jspoon 4 4,091 Apr 1, 2005 09:38 AM
Last Post: jspoon