Re: Creating a NSTableView cell the "iPhone way"
Re: Creating a NSTableView cell the "iPhone way"
- Subject: Re: Creating a NSTableView cell the "iPhone way"
- From: Alastair Houghton <email@hidden>
- Date: Thu, 10 Jun 2010 12:04:27 +0100
On 10 Jun 2010, at 10:49, Gustavo Pizano wrote:
> Yes, sorry I didn't think properly when typing, NSCell is not a view, and unfortunately Cocoa doesn't offer the option as UIKit to drag in IB a ("NSTableCell"), and just put all the controls there, then set the Identifier to reuse, configure the cell and return the cell, in the delegate method... :(
>
> So checking some examples, if I want to place some view in a cell I must pass to the custom cell a weak reference of the view, then in the draWithRect method add the view to the controlView?.. interesting..
>
> I was drawing attributed strings instead.. but now i need to support selection of that text.
Without knowing the details, it's hard to be sure, but it sounds like you probably want to use the field editor (see the NSCell and NSTableView methods relating to editing cells' content).
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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