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

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


  • Subject: Re: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
  • From: Stephane Sudre <email@hidden>
  • Date: Wed, 18 Jun 2008 19:38:54 -0700


On Jun 13, 2008, at 11:23 AM, Corbin Dunn wrote:

You probably mean, editing (not edition).

Certainly.


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

First off -- 10.4 *requires* a double click to begin an editing session. Are you sure you aren't manually starting the editing by calling - (void)editColumn:(NSInteger)column row:(NSInteger)row withEvent:(NSEvent *)theEvent select:(BOOL)select;


In fact, you can break on that method and see when it is invoked, and look at the bt to figure out why.

No, I checked the source.

Is it a bug or just an unsupported scenario?

I don't think it should happen the way you described, see the notes above. Really, you should return non-nil from the method. I have a feeling something else is going on.

This is the solution I used to "fix" the issue.


_______________________________________________

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


References: 
 >[NSOutlineView/NSTableView] Returning nil enables auto-edition? (From: Stephane Sudre <email@hidden>)
 >Re: [NSOutlineView/NSTableView] Returning nil enables auto-edition? (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: NSKeyedArchiver finishEncoding takes forever
  • Next by Date: Re: NSKeyedArchiver finishEncoding takes forever
  • Previous by thread: Re: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
  • Next by thread: Bindings and To-Many Relationship
  • Index(es):
    • Date
    • Thread