• 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
Disabling highlighting. Subclass not receiving method call?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disabling highlighting. Subclass not receiving method call?


  • Subject: Disabling highlighting. Subclass not receiving method call?
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Tue, 28 Jun 2005 18:25:08 +0100

I'm trying to disable an NSComboBoxCell from being highlighted.

I overrode the method highlight:withFrame:inView: but it is never called, and the cell still displays high lighted.

Other methods of this class do however execute.

I'm also overriding NSTableView's highlightSelectionInClipRect: method, but that also doesn't stop the highlights!

I tried overriding NSCells's highlightColorWithFrame:inView: to return [NSColor clearColor] however, this only made the highlight black.

CocoaDev and google don't seem to provide any answers with an obvious search phrase like: http://www.google.com/search?q=nscell+highlight +disable

I'm not using any categories or any other hacks to change the default highlight behaviour. I removed them.

Is it actually possible to stop an NSCell from being highlighted? Any clue on what I'm doing wrong?


--
http://elfdata.com/plugin/ Industrial strength string processing, made easy.


"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
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: Replacing a method via categorys
  • Next by Date: Re: Spotlight bindings example?
  • Previous by thread: Re: receiving global keyDown events
  • Next by thread: keyAESearchText and Document-based applications
  • Index(es):
    • Date
    • Thread