• 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
Re: Change the NSPreferencePane window size programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change the NSPreferencePane window size programmatically


  • Subject: Re: Change the NSPreferencePane window size programmatically
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 7 Jan 2011 07:54:50 -0800

On Fri, Jan 7, 2011 at 6:09 AM, eveningnick eveningnick
<email@hidden> wrote:
> 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" ?

Don't ever do that. There's no guarantee of this. Your preference pane
can be loaded by any application, and there's nothing keeping a future
version of System Preferences from loading your pane in a sandbox.

Objects outside your own preference pane are not yours to touch.

--Kyle Sluder
_______________________________________________

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: eveningnick eveningnick <email@hidden>
References: 
 >Change the NSPreferencePane window size programmatically (From: eveningnick eveningnick <email@hidden>)

  • Prev by Date: Change the NSPreferencePane window size programmatically
  • Next by Date: Re: Stupid png icons
  • Previous by thread: Change the NSPreferencePane window size programmatically
  • Next by thread: Re: Change the NSPreferencePane window size programmatically
  • Index(es):
    • Date
    • Thread