Nikolai Nagornyi
Nikolai Nagornyi

Reputation: 1461

Resizing a window before new contents are displayed

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

Answers (1)

marchaos
marchaos

Reputation: 3444

Call [window setFrame ...] before invoking [[window contentView] addSubview: view];.

Upvotes: 1

Related Questions