From: Ewan M. <mr...@mr...> - 2006-08-14 20:57:02
|
Great, thanks for the advice, now all I need is a NSBezierPath to draw my shape and check if it contains the currentPoint ( of the mouse). I'll create a stub and implement the functions I need immediately, then after I've finished writing my app I can implement it fully. Has anybody started work on this yet? Cheers, Ewan On 12 Aug 2006, at 15:06, Ray Chuan wrote: > Hi, > instead of looking for another method, you should concentrate on > improving the subclassing method, because there is more than meets the > eye. > > Look at NSCell.continueTrackingAtInView, where you can put more > specific bounds-checking/hit-tests, instead of overriding > trackMouseInRectOfViewUntilMouseUp. > > On 8/12/06, Ewan McDougall <mr...@mr...> wrote: >> Hello, >> >> I need to use non-regular shapes for a number of buttons. Is the best >> way of doing so to subclass the NSButtonCell class, override the >> drawing functions and then use this in an extended NSButton class for >> each differently shaped button? Is there another way that is >> considered better practice? >> >> The buttons will be transparent and used as 'hotspots' on top of >> video. http://www.futilegames.org/ >> >> Cheers, >> >> Ewan >> >> >> --------------------------------------------------------------------- >> ---- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> actionstep-core mailing list >> act...@li... >> https://lists.sourceforge.net/lists/listinfo/actionstep-core >> > > > -- > Cheers, > Ray Chuan > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core |