• 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: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus


  • Subject: Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
  • From: Stuart Malin <email@hidden>
  • Date: Thu, 26 Feb 2009 21:39:16 -1000


On Feb 26, 2009, at 10:33 AM, Kyle Sluder wrote:

What is "focus"?  Do you mean when the outline view becomes key, or
when the window becomes key, or something else?

--Kyle Sluder

I meant that the view becomes "key." I used the term "focus" because a focus ring gets (well, may get) drawn. And because that was the term used in some sample code I was looking at, which had this line (which is in a cell's -drawInteriorWithFrame:inView: method):


BOOL isViewInFocus = [[[[self controlView] window] firstResponder] isEqual:[self controlView]];

Is there perhaps a better way to determine if a view is "key" ?

~~~

What my post concerned is that when some other view becomes key from the OutlineView having been key, the OV delegate receives a outlineView:willDisplayCell:forTableColumn:item: message -- but only for an item that is highlighted. I wanted to find a way to update all the visible rows.





_______________________________________________

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: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
      • From: Jerry Krinock <email@hidden>
    • Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
      • From: Kyle Sluder <email@hidden>
References: 
 >OutlineView with custom TableColumn cell doesn't redisplay when losing focus (From: Stuart Malin <email@hidden>)
 >Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSTableView && Custom Background ...
  • Next by Date: Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
  • Previous by thread: Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
  • Next by thread: Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus
  • Index(es):
    • Date
    • Thread