• 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
Hiding the title bar and adding the default close/maximize/minimize buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hiding the title bar and adding the default close/maximize/minimize buttons


  • Subject: Hiding the title bar and adding the default close/maximize/minimize buttons
  • From: Idan Ratzabi <email@hidden>
  • Date: Thu, 25 Aug 2011 08:19:35 +0300

Hi,

I need to hide my window title bar and add the default
buttons(close/min/max) to my custom view.
I'm using NSWindow's "standardWindowButton:forStyleMask" to get those
buttons.

I want to emulate the default close button that when you hover over it, it
causes the "x" to appear. I tried doing it using a tracking info, and
setting it to highlighted when the mouse is over it. (mouseEntered). It
seems to work, besides when the window is not active, which in that case,
the button look pressed when you set it back to non highlighted (in the
mouseExit method) Any way to fix this ?

pic attached.
[image: screen2.png]

Thanks

PNG image

_______________________________________________

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

  • Prev by Date: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:
  • Next by Date: Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:
  • Previous by thread: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:
  • Next by thread: rightMouseDown: never called in NSView subclass
  • Index(es):
    • Date
    • Thread