Re: buggy sequence: miniaturize/close/makeKeyAndOrderFront
Re: buggy sequence: miniaturize/close/makeKeyAndOrderFront
- Subject: Re: buggy sequence: miniaturize/close/makeKeyAndOrderFront
- From: Ken Thomases <email@hidden>
- Date: Fri, 22 Aug 2014 21:33:01 -0500
On Aug 22, 2014, at 10:01 AM, Cosmin Apreutesei <email@hidden> wrote:
> I noticed that the sequence:
>
> setReleasedWhenClosed(false)
> miniaturize
> close
> makeKeyAndOrderFront
>
> results in a visible window for which _hovering_ on the standard
> titlebar butons doesn't work (clicking on the buttons and
> moving/resizing the window does work).
>
> The problem is the miniaturize call, without it the window restores
> correctly. But I need to be able to hide a miniaturized window and
> later restore it.
>
> Any known workarounds?
I encountered this same issue. Making the window a one-shot window (window.oneShot = YES) works around it.
Cheers,
Ken
_______________________________________________
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