• 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: NSTable - intercept item name before user editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTable - intercept item name before user editing


  • Subject: Re: NSTable - intercept item name before user editing
  • From: Keary Suska <email@hidden>
  • Date: Thu, 07 Jun 2007 10:31:49 -0600
  • Thread-topic: NSTable - intercept item name before user editing

on 6/6/07 4:12 PM, email@hidden purportedly said:

> The problem is, when the user goes to edit the group name, the suffix
> is retained so you end up with 'MyGroup[1][1][1]' etc unless you
> manually remove it. The prefix needs to be removed before the user
> can edit the item. Is there someway I can 'intercept' the string
> returned when the user edits the cell, so that's it replaced with the
> _actual_ item name, and not the aesthetic prefixed one?

You could use an NSFormatter, or any of the text editing delegate methods,
but you may not be able to know what object in the hierarchy is being edited
(if it matters), other than what you might be able to determine from
-editedColumn and -editedRow, although there are timing issues there.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >NSTable - intercept item name before user editing (From: Ari Benzane <email@hidden>)

  • Prev by Date: Key number to Unicode string
  • Next by Date: How to stop a Modal dialog properly and programmatically?
  • Previous by thread: NSTable - intercept item name before user editing
  • Next by thread: codeSense
  • Index(es):
    • Date
    • Thread