• 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
Duplicating NSWindow's title bar buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Duplicating NSWindow's title bar buttons


  • Subject: Duplicating NSWindow's title bar buttons
  • From: "Mattias Arrelid" <email@hidden>
  • Date: Sun, 2 Nov 2008 19:31:24 +0100

Hi list,

In NSWindow there's the following two functions:

- standardWindowButton:
+ standardWindowButton:forStyleMask:

The first one returns a reference to the actual window button in
question. The second one, the class method, returns a new instance of
a window button.

This button (returned from the class method) acts just like a _normal_
button, and this is different from the actual buttons in the title
bar; they have mouse moved tracking associated with them so that when
hovering over any of the buttons in the title bar, the other ones will
light up as well.

Is it possible to bind some property of the new close button (lets
pose that we asked for a close button) to the close button in the
title bar, so that when the image of the actual close button (in the
title bar) receives a hover event and hence changes its image, our new
button changes image as well?

Regards
Mattias
_______________________________________________

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: Simultaneous CoreAnimations
  • Next by Date: Re: Simultaneous CoreAnimations
  • Previous by thread: Re: When and how often do you mix C++ with Objective C in your project?
  • Next by thread: Re: NSNetService won't resolve
  • Index(es):
    • Date
    • Thread