Using Mac OS X.4.11, Xcode 2.5 on PPC

In my project I have sub-classed both NSMatrix (e.g FooMatrix) and NSButtonCell (e.g. FooButtonCell).
The designated initialiser for FooMatrix is
-(id)initWithFrame:(NSRect)frameRect
        mode:(int)aMode
        cellClass:(Class)classId
        numberOfRows:(int)numRows
        numberOfColumns:(int)numColumns;

It is being invoked, I think as side effect of loading the nib (by awakeFromNib maybe?) Since it is a Custom View in IB the values for the parameters cannot be set there.
Or at least I don't know how to do it.

Yet they do have default values which I speculate come from the Class Object.


But I want to set my values such as mode, numberOfRows, numberOfColumns and in particular cellClass. But I am unsure of where to do this. What are my choices and what is the recommended
way?

(0)Set them in the initialiser, ignoring the parameter values and use the various setXxxYyy methods?
(1) What about awakeFromNib?
(2) Set them in IB if there is a way?
(3) Other possibilities?

TIA for your advice and

respect.....


Peter
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to