Skip navigation.
 
mlRe: [iPhone] NSTableView and NSIndexPath
FROM : Cathy Shive
DATE : Sat Mar 22 14:49:22 2008

Noone's going to answer your question.  A general rule of thumb to 
follow (at least until CocoaTouch SDK is out of beta) - don't ask 
about any classes whose names don't start with the letters "NS" or 
"CA" on this list.  I'm sure that there are exceptions - maybe "QT", 
but generally this list is for "NS" and "CA" questions.

Best,
Cathy

On Mar 22, 2008, at 2:31 PM, Ryan Homer wrote:

> NSTableView has a delegate method as follows:
>
> - (UITableViewCell *)tableView:(UITableView *)tableView
>     cellForRowAtIndexPath:(NSIndexPath *)indexPath
>     withAvailableCell:(UITableViewCell *)availableCell
>
>
> You can figure out which section and row of the table is in 
> question using indexPath.section and indexPath.row respectively. 
> However, I'm having a hard time creating my own NSIndexPath that 
> has section and row as properties. Is this a special case of 
> NSIndexPath?
>
> What I'm really trying to do is that once I have my table built up 
> (think of the contact list, where each section is labeled A, B, C, 
> etc. and in each section there are multiple rows, one for each 
> contact starting with that letter) I would like to programatically 
> scroll to a particular section using UITableView's
>
> scrollToRowAtIndexPath:atScrollPosition:animated:
>
>
> However, I'm not sure how to create the NSIndexPath that's needed 
> for the first parameter so that I can scroll to, say, section 3, 
> row 0.
>
> Any ideas?
>
> Thanks!
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>

Related mailsAuthorDate
ml[iPhone] NSTableView and NSIndexPath Ryan Homer Mar 22, 14:31
mlRe: [iPhone] NSTableView and NSIndexPath Cathy Shive Mar 22, 14:49