Re: NSTable - intercept item name before user editing
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