Creating a NSTableView cell the "iPhone way"
Creating a NSTableView cell the "iPhone way"
- Subject: Creating a NSTableView cell the "iPhone way"
- From: Gustavo Pizano <email@hidden>
- Date: Thu, 10 Jun 2010 09:37:24 +0200
Hello all
Well I have created custom table view cells in the way that I create my subclass of NSCell, and then in the -(void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView method I make the drawing.
now i wonder if I can do it the iPHone way, create a xib with a NSCell view, place the other views I need in the cell, and in the delegate of the NSTableView method. - (NSCell *)tableView:(NSTableView *)tableView dataCellForTableColumn:(NSTableColumn *)tableColumnrow:(NSInteger)row return an instance of my custom cell .
Now what implications will this have if I using core data?, I will have an NSArryaController as the dataSource for the table view, so my guess is that when returning the cell instance, I must get the object from the arrangedObject array of the NSArryaController at the given row.
am I right, wrong? what else am I missing?
Thx
Gustavo
_______________________________________________
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