Change the NSPreferencePane window size programmatically
Change the NSPreferencePane window size programmatically
- Subject: Change the NSPreferencePane window size programmatically
- From: eveningnick eveningnick <email@hidden>
- Date: Fri, 7 Jan 2011 16:09:46 +0200
Hello
is it possible to set up the System Preferences height programmatically?
I have 3 possible NSViews of different height (but the same width),
which are displayed depending on what current settings does the user
have.
I am aware that System Preferences automatically changes the size of
its window when it "activates" (loads) a Preference Pane, depending on
that Pane's window height which is loaded from nib.
But is there a way to change that height after the panel has been activated?
I was thinking that my pane is operating in the address space of
System Preferences, which means i can send messages to objects of this
application. Can i somehow retrieve the object of main window and send
it something like "-setFrame" ?
Thanks!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden