• 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
Creating a NSTableView cell the "iPhone way"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Creating a NSTableView cell the "iPhone way"
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: NSOutlineView drag and drop problem
  • Next by Date: Re: Question about scaling text within a subView
  • Previous by thread: Re: NSOutlineView drag and drop problem
  • Next by thread: Re: Creating a NSTableView cell the "iPhone way"
  • Index(es):
    • Date
    • Thread