• 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
NSOutlineView View Based and editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView View Based and editing


  • Subject: NSOutlineView View Based and editing
  • From: Daniele Margutti <email@hidden>
  • Date: Wed, 28 Mar 2012 20:17:25 +0200

Hi guys,
I'm working with the new NSOutlineView View based control.
I've created my own NSTableCellView subclass where I've place some controls, one of them is an NSTextField.
Now I would to implement a simple cell editing as like in the old cell-based table.

So I've set a datasource and a delegate for my table and I've implemented:

- (BOOL)outlineView:(NSOutlineView *)outlineView shouldEditTableColumn:(NSTableColumn *)tableColumn item:(id)item {
    return YES;
}

And I've override:
- (BOOL)validateProposedFirstResponder:(NSResponder *)responder forEvent:(NSEvent *)event {
[myTextField becomeFirstResponder];
return YES;
}

inside my NSTableCellView.
However nothing happends; shouldEditTableColumn seems never called (nothing happends when I try to double click the cell or select and click it for a delayed editing), and the same thing happends with validateProposed... in my cell.
Any idea? What's wrong?
TIA
Daniele
_______________________________________________

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

  • Prev by Date: Re: Best Way to Append Bytes With Encoding To CFMutableString
  • Next by Date: Re: Best Way to Append Bytes With Encoding To CFMutableString
  • Previous by thread: Unable to pass NSString as argument in NSButton binding
  • Next by thread: Can't receive a scrollWheel message in a PDFView subclass
  • Index(es):
    • Date
    • Thread