cocoa -- What is the proper way to tell an NSWindow to redisplay its contents?
Posted
by
William Jockusch
on Stack Overflow
See other posts from Stack Overflow
or by William Jockusch
Published on 2011-01-13T03:05:28Z
Indexed on
2011/01/13
13:53 UTC
Read the original article
Hit count: 263
According to the NSWindow Class Reference, you should "rarely need to invoke" the NSWindow methods "display" or "setViewsNeedDisplay". So what is the usual way to redisplay the window's contents?
EDIT: I am having trouble dealing with resizing events. I just want to have everything scale proportionally. See this question. As no one seems to have any ideas for using masks to get it to happen, I want to redraw the whole thing.
© Stack Overflow or respective owner