2 Mar 2005 08:12
Custom NSCell - iTunes Source List
Hi everyone, I have a seemingly huge challenge for a newbie such as myself. I am trying to create an editable "Source List" ala itunes. Apple is using this a lot and I have seen a few people asking but have found few answers. My Question: I am working towards this - I have a NSCell subclass that draws an image - but how on earth do I draw a NSTextField into the same custom cell. And control the size of the edit frame all programatically. The Goal: 1 custom NSCell (that I can attach to a tableview) with an Image and with an editable NSTextField. The text field must have an edit rectangle the same size of the text(which varies). (just like itunes if, a playlist name consists of 1 char then the edit box is really tiny). Granted I can do this with 2 separate cells (although I would love to learn how to "compose" a control out of multiple elements, but I still have no idea how to control the edit frame for the text field.) I have looked into field editors & setting up field editors and have been barking up the wrong tree (IMHO) it seems I need standard field editor behavior - just the size of the frame of what is being edited is my problem. Any help/comments/info will be rewarded 1000000 karma credits (redeemable in your next life). Bonus points for a link to sample code somewhere on the dang web.(Continue reading)![]()
RSS Feed