• 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
Re: NSBrowserCell not extensible; need sample using NSButtonCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBrowserCell not extensible; need sample using NSButtonCell


  • Subject: Re: NSBrowserCell not extensible; need sample using NSButtonCell
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 20 Jul 2006 15:28:38 -0700


That's what was throwing me. Neither NSBrowserCell nor NSCell have any kind of "background" property to set. By overridding highlightColorWithFrame: you can return a clear color that effectively suppressed the background of the base class. So, NSBrowserCell does it one way and NSTextFieldCell does it completely differently. Oh, well. ;)


Okay -- I'm still confused as to what you want to do.

It doesn't matter -- it's a moot point. The work that I thought NSBrowserCell was doing (and what I thought I would have to replicate) is done by NSOutlineView.


Thanks for getting me going in the right direction.


Super! I should note that NSBrowserCell does draw the little triangle on the right-hand side of the cell when "isLeaf == NO". This is automatically set when it is used in NSBrowser.


-corbin
_______________________________________________
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


References: 
 >Re: NSBrowserCell not extensible; need sample using NSButtonCell (From: James Bucanek <email@hidden>)

  • Prev by Date: NSURLProtocol thread safety
  • Next by Date: Re: How to disable/gray an NSTextfield (used as static text)
  • Previous by thread: Re: NSBrowserCell not extensible; need sample using NSButtonCell
  • Next by thread: Re: NSBrowserCell not extensible; need sample using NSButtonCell
  • Index(es):
    • Date
    • Thread