• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSControl Subclass With Multiple NSCells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: (OT) Helper tool crashing under 10.2.8
  • Next by Date: Re: Hi, moving to Objective-C from RB.
  • Previous by thread: NSArrayController and dataSource causes errors
  • Next by thread: NSFormatter stringForObjectValue: (what does parameter refer to?)
  • Index(es):
    • Date
    • Thread