开发者

(Mac) Rollover Buttons in IB

开发者 https://www.devze.com 2023-02-08 01:32 出处:网络
Does anyone know the best way t开发者_如何转开发o create rollover buttons in IB? I tried a square button with image/alt image but nothing happens upon rollover.There is an AMRollOverButton Project tha

Does anyone know the best way t开发者_如何转开发o create rollover buttons in IB? I tried a square button with image/alt image but nothing happens upon rollover.


There is an AMRollOverButton Project that comes with an Interface Builder pLugin. haven't tested it yet but have a look at it(at the section code): http://www.harmless.de/cocoa-code.php


if you're after what i believe you're after, then see:

 -[NSResponder mouseEntered:]
 -[NSResponder mouseExited:]

and family. on enter/exit, change the image (or do whatever changes you like).

0

精彩评论

暂无评论...
验证码 换一张
取 消