Setting parent window
Eric Schlegel wrote: Mac OS X does not support window child/parent relationships across processes, so I think this approach isn't going to work for you. Eric is completely right but I'm wondering if the OP is saying what he means and meaning what he says... Gaurav Srivastava wrote: I want the child application to open as modal within the parent application and not as a separate application. I have the window handles of both applications. Do you mean window or application? Your reference to Windows (capital W) makes me wonder. If you meant what you said Eric's answer is correct. If you just want a separate window (from the same NIB/XIB or a different one) to be shown modally then that is simple. This should get you started: http://developer.apple.com/mac/library/documentation/cocoa/conceptual/WinPanel/Concepts/UsingModalWindows.html If that is what you meant you should also read some intro guides on Aqua Cocoa... It's very different to Windows most Mac users will notice if you try to do things the Windows way... Apologies if you know all this I'm insulting your intelligence! Matt ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting parent window
Hi Gaurav, Welcome to Cocoa development! It's fun, and very rewarding. Regarding your question, you really will want to avoid taking Windows design patterns (for both development and user experience) into a Mac app. Not only is what you're trying to accomplish not possible, but it's a really bad user experience to have a modal window when one is not required. Please look into reading Apple's documents called the Human Interface Guidelines, your users (and fellow developers on this list) will really appreciate it. -Steven On Thu, Feb 25, 2010 at 7:38 PM, Gaurav Srivastava gauravwin...@gmail.comwrote: Is there any corresponding function call for ::SetParent(in Windows) in Cocoa? Basically I have a parent application from which I have to launch another application. I want the child application to open as modal within the parent application and not as a separate application. I have the window handles of both applications. I tried using [NSWindow setParentWindow] but this was not working for me. Is there any possible solution? -- Gaurav Srivastava ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/steven.degutis%40gmail.com This email sent to steven.degu...@gmail.com -- Steven Degutis http://www.thoughtfultree.com/ http://www.degutis.org/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Setting parent window
Is there any corresponding function call for ::SetParent(in Windows) in Cocoa? Basically I have a parent application from which I have to launch another application. I want the child application to open as modal within the parent application and not as a separate application. I have the window handles of both applications. I tried using [NSWindow setParentWindow] but this was not working for me. Is there any possible solution? -- Gaurav Srivastava ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting parent window
On Feb 25, 2010, at 4:38 PM, Gaurav Srivastava wrote: Basically I have a parent application from which I have to launch another application. I want the child application to open as modal within the parent application and not as a separate application. Mac OS X does not support window child/parent relationships across processes, so I think this approach isn't going to work for you. -eric ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com