Re: Overriding NSDocumentController problem
Re: Overriding NSDocumentController problem
- Subject: Re: Overriding NSDocumentController problem
- From: Gerben Wierda <email@hidden>
- Date: Mon, 25 Feb 2002 17:50:47 +0100
Putting the instance in the main nib file works. Still strange that this
other method as described in the Developer docs does not work.
G
On Monday, February 25, 2002, at 05:19 , Gerben Wierda wrote:
I am trying to override the NSDocumentController's newDocument
behaviour.
What does not work is subclassing NSDocumentController to take over the
behaviour of newDocument. I have created a subclass of
NSDocumentController and in that class have added a method newDocument
as in NSDocumentController. That method at this point only gives a
NSLog message and does not call the same method in the superclass.
Now, I know that the app's delegate applicationWillFinishLaunching is
called and in that method I create an instance of my own
DocumentController.
So, now I expect that when I hit New in the menu, my subclass'
newDocument is called. But it isn't and I do not understand why not. I
do not get my NSLog message and I do get a new window and a new
document (and I should not).
Does anyone know what I am doing wrong?
G
_______________________________________________
MacOSX-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/macosx-dev
_______________________________________________
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.