what is method call when change size in Window?
I find somesing aboud windowDidResize: so i try doing
- (void)windowDidResize:(NSNotification *)notification {
NSLog(@"test");
}
I found what need use NSWindowDidResizeNotification, but I work for the first time with NSNotification and bad understand about this.
Can somebody write a full example for my event, please?
The
-windowDidResize:method is called on the window delegate. Is the object with the method you posted the delegate for the window?For something other than the delegate, you can do:
and, when the observer is no longer interested or being deallocated:
Another approach is to use the new block-based API to
NSNotificationCenter: