NSControl Subclass With Multiple NSCells
NSControl Subclass With Multiple NSCells
- Subject: NSControl Subclass With Multiple NSCells
- From: Seth Willits <email@hidden>
- Date: Sun, 30 Jan 2005 13:21:46 -0800
Is there an example anywhere of an NSControl subclass that uses
multiple NSCells? A an example of what I'm trying to accomplish is the
tabs in Safari. I'm guessing that a single control using multiple cells
(one per tab, and additionally another for the close button?) would be
the way to go rather than using a view for each, but I'm not toooo
certain of how handling events and drawing (and highlighting) works.
NSButtonCell is veeery close to what I need functionally (I was able to
overload drawInteriorWithFrame:inView: and draw text on top of a
stretched image filling the whole cell and get hilighting working) but
I'm not sure how to add the close button, plus managing several
NSButtons (since an NSMatrix won't work) would be a bit of a nause. Any
pointers/examples?
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic
"Often, by taking a chance, you either lose it or gain from it. If you
have
nothing to lose, why hesitate? Not pursuing the things you want in
life only lets the opportunity to obtain them pass you by."
------------------------------------------------------------------------
---
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden