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 (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to