Re: NSApplication callback of some sort?
Re: NSApplication callback of some sort?
- Subject: Re: NSApplication callback of some sort?
- From: Graham Wihlidal <email@hidden>
- Date: Thu, 19 Jul 2001 22:19:17 -0600
Ok, I have an object I created called ApplicationController and in it's
init event I set the delegate and put the "ApplicationDidFinishLoading"
and put an NSLog to let me know it fired. When the app runs it does
indeed fire and call that function, but the window still doesn't show.
What am I doing wrong? LoginWindow is indeed an IB window that is
allocated and I use makeKeyAndOrderFront:self to launch it. Doesn't do
anything?
TIA,
Graham
On Wednesday, July 18, 2001, at 10:46 PM, David P. Henderson wrote:
>
On Thursday, July 19, 2001, at 12:16 , Graham Wihlidal wrote:
>
>
> Ok, are there any examples on Apple's site or the Developer examples
>
> that illustrate using NSApplication delegates? I am really new to
>
> this and haven't used them yet (obviously) :)
>
>
>
Check out
>
<http://www.stepwise.com/Articles/Technical/2000-03-03.01.html>
>
>
In a nutshell, pick an object to act as the delegate traditionally a
>
controller object is used, but you could also create a dedicated
>
delegate object. Since you want a delegate of NSApp, instantiate an
>
object of your delegate class in the nib file owned by NSApp, usually
>
MainMenu.nib if you haven't changed the default. Select the file's
>
owner icon and control drag from it to your intended delegate object;
>
then, connect NSApp's delegate outlet.
>
>
In your delegate's implementation, implement any of the delegate
>
methods you need. For example:
>
>
- (void)applicationDidFinishLaunching:(NSNotification *)notification
>
{
>
// Do the stuff that you need to perform before the user can start
>
interacting with your app
>
// That's it your done.
>
}
>
>
Dave
>
--
>
Chaos Assembly Werks
>
"The difference between Objective-C and Java is: in Java , the
>
language/compiler enforces paranoia, but in Objective-C, the programmer
>
enforces paranoia."