• 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/NSTableView] Returning nil enables auto-edition?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSOutlineView/NSTableView] Returning nil enables auto-edition?


  • Subject: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
  • From: Stephane Sudre <email@hidden>
  • Date: Thu, 12 Jun 2008 19:49:29 -0700

Mac OS X 10.4.11 (PPC)

I'm seeing a potential bug or unsupported behavior when it comes to cell edition.

I have a NSOutlineView. One of the column data cell of this view is a text field cell which is potentially editable.

Now, if I return nil in

- (id) outlineView:(NSOutlineView *) inOutlineView objectValueForTableColumn:(NSTableColumn *) inTableColumn byItem:(id) inItem

and then later set the string value (through setStringValue:) in

- (void) outlineView:(NSOutlineView *) inOutlineView willDisplayCell: (NSCell *)cell forTableColumn:(NSTableColumn *) inTableColumn item: (id) inItem

there's a very weird behavior with leaf rows:

When I select them (first click, it's not like the default behavior in 10.5), the text field cell automatically enters edition mode without even asking the opinion of

- (BOOL) outlineView:(NSOutlineView *) inOutlineView shouldEditTableColumn:(NSTableColumn *) inTableColumn item:(id)inItem


Is it a bug or just an unsupported scenario?


_______________________________________________

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: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Custom mouse cursor in NSTextView
  • Next by Date: Bindings and To-Many Relationship
  • Previous by thread: Re: Custom mouse cursor in NSTextView
  • Next by thread: Re: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
  • Index(es):
    • Date
    • Thread