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

2009-02-27 Thread Corbin Dunn
On Feb 27, 2009, at 9:18 AM, Jerry Krinock wrote: On 2009 Feb 26, at 23:39, Stuart Malin wrote: BOOL isViewInFocus = self controlView] window] firstResponder] isEqual:[self controlView]]; Is there perhaps a better way to determine if a view is "key" ? No, but I believe you should al

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

2009-02-27 Thread Jerry Krinock
On 2009 Feb 26, at 23:39, Stuart Malin wrote: BOOL isViewInFocus = self controlView] window] firstResponder] isEqual:[self controlView]]; Is there perhaps a better way to determine if a view is "key" ? No, but I believe you should also check that the control view's window -isKeyWindo

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

2009-02-27 Thread Kyle Sluder
Well "focus" does have a meaning (see -[NSView lockFocus]), but I figured you didn't mean that here. It sounds like you want to subclass NSOutlineView and override -resignFirstResponder. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

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

2009-02-26 Thread Stuart Malin
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.

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

2009-02-26 Thread Kyle Sluder
What is "focus"? Do you mean when the outline view becomes key, or when the window becomes key, or something else? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

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

2009-02-26 Thread Corbin Dunn
Mic Pringle asked the same question yesterday; see the thread about it "Re: NSTableView && Custom Background ..." Short answer: watch window key notifications and redisplay the table. corbin On Feb 26, 2009, at 12:22 PM, Stuart Malin wrote: I have a custom cell attached to a TableColumn of an