Vote UpVote

Strong Typed Rows in the DataAbstract for Cocoa

RemObjects Blogs – Challenge In DataAbstract for Cocoa, you can retrieve the values for a particular table field using the KVC approach, where the field name is passed as a string key: DADataTableRow *row = [[self table] rowAtIndex:idx]; NSString *name = [row valueForKey:@"ClientName"]; Later, with help of the new indexing syntax for arrays and dictionaries, this code can be rewritten in a more simple manner: DADataTableRow *row = self.table.rows[idx]; NSString *name = row[@"ClientName"]; But there is one flaw to that approach – the field name is ...
Favorite? Off-Topic? Alex @ 2014-09-01 19:06


Visits: 387
Votes: 0
Favorites: 0
Off-Topic: 1

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)