• 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
App Delegate & Notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

App Delegate & Notifications


  • Subject: App Delegate & Notifications
  • From: Seth Willits <email@hidden>
  • Date: Tue, 5 Aug 2003 14:42:50 -0700

The CSK framework provides a class called CSKLoader. In the application's nib file, the NSApplication's (File's Owner) delegate is set to an instance of CSKLoader.

In my application, I want to do some stuff right after the application loads which I would normally do using applicationDidFinishLaunching. Since the CSKLoader instance is the delegate and gets this delegate method, I decided that I would subclass CSKLoader, override the method, do my stuff, and then call the super's method. When I went to do this I found I couldn't subclass CSKLoader for some header problems that are unknown to me (CSKLoader is defined as private and thus I'm assuming (since I couldn't do it) can't be subclassed).

So the question was then/now is, how do I get that notification in another class? I looked up NSNotificationCenter and I'm wonder, will this do the job? It looks as it will, but I have two concerns. 1) How do I determine the name for the notification, and 2) How can I set up listening for this notification soon enough that I get applicationDidFinishLaunching? (I don't think I can)

And so you see my dilemma. The authors of the CSK framework are too busy at the moment and I by chance got one to reply to an email a few days ago when I told him I was working on the framework, but they can't at the moment.



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames

"Your friend is the person who knows all about you and still likes you."
-- Elbert Green Hubbard
------------------------------------------------------------------------ ---
_______________________________________________
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.
  • Prev by Date: Re: Fast User Switching
  • Next by Date: java Bridge and non new initializer
  • Previous by thread: Re: Fast User Switching
  • Next by thread: java Bridge and non new initializer
  • Index(es):
    • Date
    • Thread