Re: How to track all window creation?
Re: How to track all window creation?
- Subject: Re: How to track all window creation?
- From: Uli Kusterer <email@hidden>
- Date: Mon, 26 Feb 2007 00:07:22 +0100
Am 25.02.2007 um 22:11 schrieb v. Anderson Wiese 2:
My first effort was to use poseAsClass to replace NSWindow with a
subclass that overrides init, but I was surprised to find that init
is not called when a window is loaded from a nib. So I am now doing
the same thing with both init and awakeFromNib. This seems like it
might work, but I worry that client code may implement awakeFromNib
and not call up to the superclass.
The problem is that NSWindow doesn't really implement init. Its
designated initializer is one of the its two initXXX methods. You'd
have to override that one. They only call *super*'s init method.
PS - Just in case you're not aware of that: There's a few caveats
when doing Cocoa in Carbon. Apple has some docs on that, like
functions like NSApplicationLoad.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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