Re:NSTextField with custom cell - is it even possible?
Re:NSTextField with custom cell - is it even possible?
- Subject: Re:NSTextField with custom cell - is it even possible?
- From: Brian Webster <email@hidden>
- Date: Sun, 21 Jul 2002 14:11:33 -0500
On Sunday, July 21, 2002, at 11:13 AM, cocoa-dev-
email@hidden wrote:
So is it even possible to change the cell in an NSTextField - or indeed
any single cell control - and use it in interface builder?
You should be able to get it to use the custom cell by dragging
a custom view instead of the NSTextField palette item and then
choosing your text field subclass. That way, IB won't know
anything about the cell and your view will be created normally.
The drawback to this is that you won't be able to set up the
text field's attributes in IB, so you'll have to do that in
awakeFromNib instead.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.