Re: Remove custom views from NSOutlineView
Re: Remove custom views from NSOutlineView
- Subject: Re: Remove custom views from NSOutlineView
- From: "Danny Price" <email@hidden>
- Date: Mon, 3 Dec 2007 13:40:06 +0000
OK I think I know what's going wrong. I'm using NSViewController to handle
each view in my custom table, but I was using the init() constructor rather
than the initWithBundle...() constructor as described in the documentation.
I was calling init and then calling setView:, passing in an outlet to the
view in the nib. Now that I'm calling initWithBundle...() it seems to work
alright.
The problem is this implementation assumes each view is in a seperate NIB
with the FileOwner to the NSViewController and the single view outlet set. I
really want to contain all my views in a single NIB. Is there any way to do
this? I've got about 20 views and I don't want 20+ NIBs! No doubt I'm
missing something here.
_______________________________________________
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