Re: Class Design for delegate, outlets, and mouse events

2009-05-26 Thread Shlok Datye
To determine whether the app is launching for the first time, you can put a boolean called "firstLaunch" into the user defaults. It would have a factory default of YES and could be changed to NO inside of applicationDidFinishLaunching:. As for the buttons, are you sure you want to detect mo

Class Design for delegate, outlets, and mouse events

2009-05-26 Thread Walker Argendeli
Here's a simplification: I have an application with several buttons. If it is the first time the application is launching, I want to do some special things. In my AppController class, which is a delegate of NSApp, I use the delegate method -applicationDidFinishLaunching: to perform the test