• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
buggy sequence: miniaturize/close/makeKeyAndOrderFront
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

buggy sequence: miniaturize/close/makeKeyAndOrderFront


  • Subject: buggy sequence: miniaturize/close/makeKeyAndOrderFront
  • From: Cosmin Apreutesei <email@hidden>
  • Date: Fri, 22 Aug 2014 18:01:58 +0300

Hi,

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?


Background story:

I want to implement the `hide` functionality on my windows. `orderOut`
doesn't cut it because it doesn't work on a miniaturized window (known
bug from 2008), so `close` is the next thing. But I can't seem to
restore a closed window that was closed while miniaturized, without
this weird bug.


Thanks,
Cosmin.
_______________________________________________

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


  • Follow-Ups:
    • Re: buggy sequence: miniaturize/close/makeKeyAndOrderFront
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: What is the modern Cocoa way to send an Apple Event to yourself?
  • Next by Date: Re: What is the modern Cocoa way to send an Apple Event to yourself?
  • Previous by thread: Re: What is the modern Cocoa way to send an Apple Event to yourself?
  • Next by thread: Re: buggy sequence: miniaturize/close/makeKeyAndOrderFront
  • Index(es):
    • Date
    • Thread