• 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
NSTableView && Custom Background ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView && Custom Background ...


  • Subject: NSTableView && Custom Background ...
  • From: Mic Pringle <email@hidden>
  • Date: Wed, 25 Feb 2009 22:58:11 +0000

Hi,

I've a subclass of NSTableView that draws a custom gradient
background. What I'd like to do now is to draw a slightly different
background when the window containing the custom NSTableView loses
focus.

Is this possible ?

If so, could someone please point me in the right direction ?

I know that in the NSTableView subclass you can use [self window] to
get the containing window, so I have tried things like [[self window]
isKeyWindow] and [[self window] isMainWindow] but this doesn't seem to
get me anywhere.

Any help will be greatly appreciated.

Thanks

-Mic
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTableView && Custom Background ...
      • From: Corbin Dunn <email@hidden>
    • Re: NSTableView && Custom Background ...
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: -[_NSControllerObjectProxy entity]: unrecognized selector sent to instance
  • Next by Date: Re: Running Cocoa applications from file servers
  • Previous by thread: Re NSTableView Cell edit values.
  • Next by thread: Re: NSTableView && Custom Background ...
  • Index(es):
    • Date
    • Thread