• 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
Subclass NSApplication in Carbon App?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subclass NSApplication in Carbon App?


  • Subject: Subclass NSApplication in Carbon App?
  • From: David Bainbridge <email@hidden>
  • Date: Sun, 30 May 2004 22:25:46 -0500

Is it possible to subclass NSApplication when using Cocoa in a Carbon app? I have set the principal class in xcode to my NSApp's subclassed class and see it in the info.plist of the bundle but the methods I try to override are not being called. I have a feeling there is something going on within NSApplicationLoad that is used to init the Cocoa environment when using it from a Carbon app...

I need to do this to override sendevent method to prevent mouse click to the carbon windows behind it.. If I use runModalForWindow to automatically prevent this to begin with then I am unable to display a second "modal" cocoa window on top of the 1st modal cocoa window.. I know this is not the proper gui methodology but I am forced to do it this way to integrate cocoa into this antiquated CFM app..
_______________________________________________
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.


  • Follow-Ups:
    • Re: Subclass NSApplication in Carbon App?
      • From: David Bainbridge <email@hidden>
  • Prev by Date: Re: Class Constants
  • Next by Date: Handling NSTextField keyboard events
  • Previous by thread: Adding a new row to a NSTextView for editing (user input).
  • Next by thread: Re: Subclass NSApplication in Carbon App?
  • Index(es):
    • Date
    • Thread