On Jun 30, 2009, at 6:13 AM, rethish wrote:
When I use the makeKeyAndOrderFront: method in a action method of a NSButton , new window is displayed. But I used the same method in a void function and when its called ,the window is not displayed. Why is it so?
Are you sure the window object has been instantiated at that time, and are you sure that you are not calling the method in a thread other than the main thread? Can you please show your code?
Nick Zitzmann <http://www.chronosnet.com/> _______________________________________________ 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