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 (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