Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!agate!ziploc!eps From: eps@toaster.SFSU.EDU (Eric P. Scott) Newsgroups: comp.sys.next Subject: Re: Programming Question Message-ID: <1797@toaster.SFSU.EDU> Date: 25 Jun 91 07:03:59 GMT Article-I.D.: toaster.1797 References: <1991Jun25.050118.29467@neon.Stanford.EDU> Reply-To: eps@cs.SFSU.EDU (Eric P. Scott) Distribution: usa Organization: San Francisco State University Lines: 17 In article <1991Jun25.050118.29467@neon.Stanford.EDU> zimmer@calvin.stanford.edu (Andrew Zimmerman) writes: >I would like change the icon on a Button, depending on which state it is >in. Rather then having a class which send a message to a button to >change states, I thought I would just subclass a button. If it's a two-state Button, you shouldn't need to subclass. You can use setAltImage: or setAltIcon: to display something different for the "1" state. (Also, IB lets you set these.) >However, after looking through the Concepts manuals, and asking a couple >of people, I'm still a little unclear on one point. Should I be subclassing >a Button Class, or a ButtonCell Class? ButtonCell. Controls don't draw--Cells do. -=EPS=-