Re: Subclassing NSWindowController
Re: Subclassing NSWindowController
- Subject: Re: Subclassing NSWindowController
- From: Chaffinch <email@hidden>
- Date: Mon, 16 Dec 2002 18:56:07 +0000 (GMT)
--- Mike Ferris <email@hidden> wrote:
>
You can have something in IB to serve as a placeholder. What I usually
>
do in this case is put a custom view that is just an NSView in a scroll
>
view in IB and have an outlet to the custom view. Then, once the nib
>
loads you can replace the NSView with an NSTextView you create in code
>
using NSScrollView's -setDocumentView: method. That way you can
>
configure the scroll view in IB.
Success. I have seperated the view from the model and have the subclassed
window controller working great.
Thanks to everyone who offered advice, particularly Mike who has shown
amazing patience with my stupid questions. I dare say there will be many
more.
Cheers guys.
=====
Regards
Chaffinch
----------------------------------------------
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
_______________________________________________
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.