Re: Change the NSPreferencePane window size programmatically
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