• 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: UITableViewDelegate and selection under editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITableViewDelegate and selection under editing


  • Subject: Re: UITableViewDelegate and selection under editing
  • From: Roland King <email@hidden>
  • Date: Thu, 18 Feb 2010 20:59:03 +0800

sorry - late night, mail autocomplete on the address and it went to the wrong list - bouncing over to cocoa (and rewording)

On 18-Feb-2010, at 12:47 AM, Luke the Hiesterman wrote:

> This isn't an xcode question. Try the developer forums or the cocoa-dev mailing list.
>
> Luke
>
> On Feb 17, 2010, at 8:13 AM, Roland King wrote:
>
>> I have a UITableView with a delegate which tracks didSelectRow: and didDeselectRow: however when the tableview goes into edit mode the selection highlight disappears but there are no callbacks to didDeselectRow. It seems that when you come out of editing mode again there is no selection (no highlight) and the selected row is nil. There's no delegate method which tells me I'm entering edit mode and I should cache the selection and attempt to restore it when editing is done if it's not been deleted (and move it if it's been moved).
>>
>> Have I missed something here? Is there a way to persist the selection through editing or at least get a callback when editing causes the selection to invalidate? I feel like I have to subclass the TableView itself, remember any selection when editing begins (the only place you can capture editing events) and check to see if whatever thing I started with is still there after editing and re-select it then call the delegate methods myself.
>>
>> Have I missed something? I'd expect didDeselectRow: calls whatever caused the row to deselect, even if that's just going into edit mode, even if it's a bit hopeful to expect the table in edit mode to track the originally selected item and call the delegate to tell it as it moves or is deleted.  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >UITableViewDelegate and selection under editing (From: Roland King <email@hidden>)
 >Re: UITableViewDelegate and selection under editing (From: Luke the Hiesterman <email@hidden>)

  • Prev by Date: Re: using C++ templates
  • Next by Date: Re: Code Signing for Mac application
  • Previous by thread: Re: UITableViewDelegate and selection under editing
  • Next by thread: How to combine Mac and iPhone targets in one project?
  • Index(es):
    • Date
    • Thread