Re: UITableView with only 1 row selectable

2010-12-24 Thread Ricky Sharp
On Dec 24, 2010, at 11:28 AM, Remco Poelstra wrote: > Hi, > > I'm unable to find that method. Is it still available? > > Kind regards, > > Remco > > Op 24 dec. 2010 om 14:01 heeft Ricky Sharp het volgende > geschreven: > >> >> On Dec 24, 2010, at 4:01 AM, Roland King wrote: >> >>> Why no

Re: UITableView with only 1 row selectable

2010-12-24 Thread Andy Lee
Whoops, sorry. --Andy On Dec 24, 2010, at 12:31 PM, Dave DeLong wrote: > NSTableView ≠ UITableView > > On Dec 24, 2010, at 9:29 AM, Andy Lee wrote: > >> Are you looking in the delegate docs? >> >>

Re: UITableView with only 1 row selectable

2010-12-24 Thread Dave DeLong
NSTableView ≠ UITableView On Dec 24, 2010, at 9:29 AM, Andy Lee wrote: > Are you looking in the delegate docs? > > > > Search the page for tableView:shouldSelectRow: ___

Re: UITableView with only 1 row selectable

2010-12-24 Thread Andy Lee
On Dec 24, 2010, at 12:28 PM, Remco Poelstra wrote: > Hi, > > I'm unable to find that method. Is it still available? Are you looking in the delegate docs? Search the p

Re: UITableView with only 1 row selectable

2010-12-24 Thread Remco Poelstra
Hi, I'm unable to find that method. Is it still available? Kind regards, Remco Op 24 dec. 2010 om 14:01 heeft Ricky Sharp het volgende geschreven: > > On Dec 24, 2010, at 4:01 AM, Roland King wrote: > >> Why not do it the other way around. Set allowsSelection to YES and then >> implement

Re: UITableView with only 1 row selectable

2010-12-24 Thread Ricky Sharp
On Dec 24, 2010, at 4:01 AM, Roland King wrote: > Why not do it the other way around. Set allowsSelection to YES and then > implement the delegate method tableView:willSelectRowAtIndexPath: to return > nil for any row you do NOT want selected (see the documentation). That seems > to be apple's

Re: UITableView with only 1 row selectable

2010-12-24 Thread Remco Poelstra
Yes, stupid me. I did search the documentation for a related problem: How can I detect whether the will and didAppear methods are called moving upwards or downwards through the viewControllers array of a navigationController? I mean I want to detect whether a TableViewController is shown becaus

Re: UITableView with only 1 row selectable

2010-12-24 Thread Roland King
again read the documentation - it's all there .. quoting from it .. apple deals with that exact case This method is not called until users touch a row and then lift their finger; the row isn'€™t selected until then, although it is highlighted on touch-down. You can use UITableViewCellSelectionS

Re: UITableView with only 1 row selectable

2010-12-24 Thread Remco Poelstra
Hi, Thanks for your e-mail. I've considered this, but I think it's ugly that the rows flash blue momentarily. Is there a way to avoid that? Regards, Remco Op 24 dec 2010, om 11:01 heeft Roland King het volgende geschreven: > Why not do it the other way around. Set allowsSelection to YES and t

Re: UITableView with only 1 row selectable

2010-12-24 Thread Roland King
Why not do it the other way around. Set allowsSelection to YES and then implement the delegate method tableView:willSelectRowAtIndexPath: to return nil for any row you do NOT want selected (see the documentation). That seems to be apple's designed way to do this. On 24-Dec-2010, at 5:23 PM, Re