Re: Change the NSPreferencePane window size programmatically

2011-01-07 Thread Kyle Sluder
On Fri, Jan 7, 2011 at 6:09 AM, eveningnick eveningnick eveningn...@gmail.com 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

Re: Change the NSPreferencePane window size programmatically

2011-01-07 Thread eveningnick eveningnick
Kyle, thanks for the warning, i understand the problems it may cause. but what if i was doing that, how should have i sent a message to an object of the host application? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Change the NSPreferencePane window size programmatically

2011-01-07 Thread Kyle Sluder
On Fri, Jan 7, 2011 at 10:42 AM, eveningnick eveningnick eveningn...@gmail.com wrote: Kyle, thanks for the warning, i understand the problems it may cause. but what if i was doing that, how should have i sent a message to an object of the host application? Quite simple: you don't. Ever. If

Re: Change the NSPreferencePane window size programmatically

2011-01-07 Thread Peter Lübke
Whatever you do to an app that isn't yours: use the APIs supplied for Interapplication Communication, as there are (among others): AppleEvents, AppleScript, Accessibility... These ensure sufficient isolation between the objects involved, and they are (to a certain extend) likely to survive