Thanks Curt, of course I tried that.  it is hard to tell when exactly nspopover 
creates and manipulates its opaque window. 

The real problem is, this call can only (hopefully) set the first responder of 
the popover. It can't make the whole popover active. For that you'd need 
something like makeKeyAndOrderFront which doesn't work either.

Motti shneor 
Senior software engineer & Team leader
Spectrum Reflections Ltd.
Sent from my iPhone


ב-11 במאי 2012, בשעה 19:22, Curt Clifton <curt.clif...@me.com> כתב/ה:

> On May 10, 2012, at 2:06 AM, Motti Shneor wrote:
> 
>> does anybody know how to regain focus on an NSPopover after it lost user 
>> focus? (after another window becomes key and main) I could not do it. The 
>> only way I found was to close/delete the NSPopover and recreate it. Seems 
>> bad solution to me.
> 
> Just a guess here, but what happens if you call -[NSWindow 
> makeFirstResponder:] on the window containing the view to which the popover 
> is attached, passing one of the NSResponders from your popover as the 
> argument?
> 
> Although NSPopover has its own hidden window, it seems to hide some fairly 
> intimate connections to its host window.
> 
> Cheers,
> 
> Curt
> -----------------------------------------------------------------------------
> Curt Clifton, PhD
> Software Engineer
> The Omni Group
> www.curtclifton.net
> 
_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to