Re: Why isn't my NSOutlineView subclass working?
Re: Why isn't my NSOutlineView subclass working?
- Subject: Re: Why isn't my NSOutlineView subclass working?
- From: Chris Hanson <email@hidden>
- Date: Fri, 22 Aug 2003 20:23:51 -0500
This is happening because when your NSOutlineView subclass is
instantiated during nib loading, it's actually instantiated via
NSCoding (i.e. -initWithCoder:). This is likely the reason both your
-initWithFrame: and -addTableColumn: methods aren't being invoked.
Only custom views -- the big empty grey rectangle -- are initialized
with -initWithFrame:.
Nib loading consists of instantiating an object graph via NSCoding,
plus some additional magic to wire things up.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.