Re: nswindow close button for my splitview does not display cross while mouse hover
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: Stephane Sudre <email@hidden>
- Date: Tue, 16 Oct 2012 15:11:35 +0200
On Tue, Oct 16, 2012 at 9:35 AM, Sanjay Arora <email@hidden> wrote:
> Hi,
> 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]];
> [myNSView addSubview: closeControl];
>
> Setting it as highlight does not help, it showsup the pressed state. Is there a setting that I am missing?
It's a bug/limitation of the AppKit since this API was introduced.
There's no real easy way to get the hovered state.
_______________________________________________
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