Re: iTunes 10 UI
Re: iTunes 10 UI
- Subject: Re: iTunes 10 UI
- From: Chris Suter <email@hidden>
- Date: Fri, 3 Sep 2010 14:17:20 +1000
Hi,
On Thu, Sep 2, 2010 at 5:07 PM, Iceberg-Dev <email@hidden> wrote:
It's not easy.
>
> 1. If you retrieve a NSButton with the official API, you will not be able
> to get the mouse over effect. This is a bug since Mac OS X 10.4 and it has
> still not been fixed in Mac OS X.
>
> 2. The NSButton Apple uses for NSWindow buttons are not simple NSButtons.
> And you can not display the mouse over version of the button rendering (as
> far as I've tried and Apple's DTS was not able to provide a solution
> either).
>
I think I looked into this ages ago and managed to get something working by
defining this undocumented method in the parent view:
- (BOOL)_mouseInGroup:(id)sender
{
return [self mouse:
[self convertPoint:[[self window] mouseLocationOutsideOfEventStream]
fromView:nil]
inRect:[closeButton frame]];
}
Obviously, with it being undocumented, the usual caveats apply.
Kind regards,
Chris
_______________________________________________
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