Reputation: 1461
My app has a Preferences window. When the user switches tabs in this window, windowDidResize:
is called. How can I resize the window before its contents will be displayed?
Upvotes: 2
Views: 234
Reputation: 3444
Call [window setFrame ...]
before invoking [[window contentView] addSubview: view];
.
Upvotes: 1