NSPopUpButtonCell within NSTextFieldCell: disappearing text

Michael Dupuis smokinmonkey at yahoo.com
Mon Aug 6 04:19:54 PDT 2007


--- Alan Smith <alanrogersmith at gmail.com> wrote:

> I suggest not subclassing NSTextFieldCell but
> NSCell. That way you
> don't have to worry about overriding some of
> NSTextFieldCell's
> behavior. If you override NSCell just create a
> NSTextFieldCell and
> NSPopUpButtonCell as instance variables and draw
> them in
> drawWithFrame::

Thanks Alan, that's pretty much what I wound up doing.
I was hoping to use NSTextFieldCell to get a bunch of
stuff "for free" but ultimately, it didn't work. I'd
still be interested in the "why?" of it not working
though.

Michael


       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 


More information about the MacOSX-dev mailing list