• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to track all window creation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to track all window creation?
      • From: Mark Ritchie <email@hidden>
References: 
 >How to track all window creation? (From: "v. Anderson Wiese 2" <email@hidden>)

  • Prev by Date: Re: C *char representation of PDF into NSImage
  • Next by Date: Re: Dragging file promises from an NSOutlineView
  • Previous by thread: How to track all window creation?
  • Next by thread: Re: How to track all window creation?
  • Index(es):
    • Date
    • Thread