• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Change the NSPreferencePane window size programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Change the NSPreferencePane window size programmatically
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: LOCATING MEDIA FILES IN MACINTOSH
  • Next by Date: Re: Change the NSPreferencePane window size programmatically
  • Previous by thread: Re: Thumbs Lists
  • Next by thread: Re: Change the NSPreferencePane window size programmatically
  • Index(es):
    • Date
    • Thread