NSButtonCell in NSOutlineView

2008-05-20 Thread David
I'm still trying to get a NSButtonCell in an NSOutlineView where the button cell is in the first column, is a checkbox style AND the title of the cell is set based on the row so that it shows data rather than needing a separate column for its title. I've rewritten it from using bindings to using a

Bypassing inter-cell navigation for NSButtonCell in NSOutlineView

2008-03-02 Thread Nicholas Riley
In Leopard, checkboxes in my NSOutlineViews get keyboard focus when I press Tab. I don't want this to happen. The AppKit release notes state: Tables now support inter-cell navigation as follows: - Tabbing forward to a table focu

Bypassing inter-cell navigation for NSButtonCell in NSOutlineView

2008-03-02 Thread Nicholas Riley
[Resending this as a later email I sent was delivered but this wasn't; sorry if you receive a duplicate copy.] In Leopard, checkboxes in my NSOutlineViews get keyboard focus when I press Tab. I don't want this to happen. The AppKit release notes

Re: Bypassing inter-cell navigation for NSButtonCell in NSOutlineView

2008-03-02 Thread Tommy Nordgren
On 2 mar 2008, at 13.29, Nicholas Riley wrote: ...sbip... 7. overriding keyDown: in the outline view to intercept Tab, which works fine, except... - Back tabbing into a table will select the last focusable cell. and I can't figure out how to stop that from happening. Help? -- Nichola

Re: Bypassing inter-cell navigation for NSButtonCell in NSOutlineView

2008-03-02 Thread Ricky Sharp
On Mar 2, 2008, at 6:29 AM, Nicholas Riley wrote: In Leopard, checkboxes in my NSOutlineViews get keyboard focus when I press Tab. I don't want this to happen. The AppKit release notes state: Tables now support inter-cell navi

Re: Bypassing inter-cell navigation for NSButtonCell in NSOutlineView

2008-03-02 Thread Rosyna
Have you tried overriding - (BOOL)canFocusCell:(NSCell *)cell atTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row; to return NO in an outline view subclass? On Mar 2, 2008, at 6:42 AM, Nicholas Riley wrote: In Leopard, checkboxes in my NSOutlineViews get keyboard focus when I p

Re: Bypassing inter-cell navigation for NSButtonCell in NSOutlineView

2008-03-02 Thread Nicholas Riley
On Sun, Mar 02, 2008 at 04:24:04PM +0100, Tommy Nordgren wrote: > >>- Back tabbing into a table will select the last focusable cell. > > > >and I can't figure out how to stop that from happening. > > > >Help? > > > You probably need to modify your keyDown: method to intercept > backtabs as

Re: Bypassing inter-cell navigation for NSButtonCell in NSOutlineView

2008-03-03 Thread Corbin Dunn
On Mar 2, 2008, at 4:58 PM, Rosyna wrote: Have you tried overriding - (BOOL)canFocusCell:(NSCell *)cell atTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row; to return NO in an outline view subclass? Please don't override this method. It is a private, internal AppKit method, wh