• 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
Re: nswindow close button for my splitview does not display cross while mouse hover
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nswindow close button for my splitview does not display cross while mouse hover


  • Subject: Re: nswindow close button for my splitview does not display cross while mouse hover
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 16 Oct 2012 08:43:35 -0700

On Oct 16, 2012, at 12:35 AM, Sanjay Arora <email@hidden> wrote:

> I am creating a  new Button like the window's close button to attach it to my  splitview to give is same close action.
> The problem is the button does not displays cross while I the hover mouse over it.
> NSButton *closeControl = [NSWindow standardWindowButton:NSWindowCloseButton forStyleMask:[myNSWindow styleMask]];

Don’t use that button for something nonstandard like this. It won’t work correctly, and it’s incorrect UI. If you need a close-this button in a window’s content, use the gray-X-in-a-circle appearance for it (there’s a standard template image for it, easily settable in IB.)

—Jens
_______________________________________________

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


References: 
 >how to record audio from speaker on ios (From: WUQWE <email@hidden>)
 >nswindow close button for my splitview does not display cross while mouse hover (From: Sanjay Arora <email@hidden>)

  • Prev by Date: Re: nswindow close button for my splitview does not display cross while mouse hover
  • Next by Date: Re: how to record audio from speaker on ios
  • Previous by thread: Re: nswindow close button for my splitview does not display cross while mouse hover
  • Next by thread: Re: how to record audio from speaker on ios
  • Index(es):
    • Date
    • Thread