Re: Custom Cells in IB
Re: Custom Cells in IB
- Subject: Re: Custom Cells in IB
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 13 Dec 2002 21:11:33 -0800
On Friday, December 13, 2002, at 08:26 PM, Andrew wrote:
Hi,
I want to use IB to create NSMatrices of my subclass of NSCell. Is this
possible?
I want to use IB rather than doing it programatically because I want
to be
able to easily change layouts etc.
This probably is doable, if you write an IB palette that includes the
code for your cell class. Your cells will have to be able to archive
themselves (implement -encodeWithCoder: and -initWithCoder:). On your
palette, you can put a matrix whose prototype cell and cell class are
your custom subclass.
It's probably less work to just replace the cells in your matrix
programmatically in an -awakeFromNib method.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.