• 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
help with methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help with methods


  • Subject: help with methods
  • From: Rounak Jain <email@hidden>
  • Date: Wed, 28 Jul 2010 23:57:42 +0530

Hi all,
Newbie here.
I am comfortable with understanding method declarations like
- (void) someName: (NSString *) variableName;
where
void is return type
someName is name of the method
(NSString *) is the type of the variableName and variableName is the variable


However, I feel helpless when I see something like this:

- (void)tableView:(NSTableView *)aTableView
   setObjectValue:(id)anObject
   forTableColumn:(NSTableColumn *)aTableColumn
              row:(int)rowIndex {

	NSString *identifier = [aTableColumn identifier];
    data *newVar = [toDoList objectAtIndex:rowIndex];

    // Set the value for the attribute named identifier
[newVar setValue:anObject forKey:identifier];
}

All I know is that this method lets me put the content of array toDoList into the TableView. Please give me a detailed breakdown of what this is.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: help with methods
      • From: Ken Thomases <email@hidden>
  • Prev by Date: RE: Truncating UIActionSheet labels
  • Next by Date: Converting File URL Scheme Path to filesystem representation string
  • Previous by thread: mouse Event Taps, CGEvent and destination control
  • Next by thread: Re: help with methods
  • Index(es):
    • Date
    • Thread