Re: NSView's in Separate NIB
Re: NSView's in Separate NIB
- Subject: Re: NSView's in Separate NIB
- From: Conrad Shultz <email@hidden>
- Date: Fri, 04 Sep 2015 10:40:22 -0700
> On Sep 4, 2015, at 10:30 AM, Dave <email@hidden> wrote:
>
> The reason I ask is that for a while now when you create an NSView subclass it no longer offers you the option to create a separate NIB file. I remember a while back reading something saying that it was frowned upon.
>
You should be able to create a xib for an empty view, create an class file, and set the view's custom class in the xib.
I'm not sure about being frowned upon, but I would consider also creating an NSViewController subclass that is responsible for loading your view's nib, performing associated logic, and connecting it to the rest of your code.
-Conrad
_______________________________________________
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