Re: [RESOLVED] Checking facts on NSCell (e.g. in NSTableView)
Re: [RESOLVED] Checking facts on NSCell (e.g. in NSTableView)
- Subject: Re: [RESOLVED] Checking facts on NSCell (e.g. in NSTableView)
- From: Corbin Dunn <email@hidden>
- Date: Thu, 08 Jan 2009 14:10:41 -0800
Will do.
I'm going to subclass NSTextFieldCell for now. I'll be drawing
various bits of text and probably an icon. It's probably a bit of a
stretch to say my derived cell is really a "text cell", which is why
I thought to directly subclass NSCell, but it's good enough for now
- and I'm too lazy to add appropriate bindings support to a directly
NSCell-derived subclass ;-)
I guess I should mention why it is easier to subclass the
NSTextFieldCell; it gives you "free" stuff, like auto expansion tool
tips, and in-place editing, simply by overriding a few methods and
calling super with appropriate rects. The PhotoSearch demo on the
developer site is a good example; it draws editable text, a preview
icon, and uneditable sub-title text. (Plus, I like pushing my demos :)
corbin
_______________________________________________
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