Program flow in NSApplication
Program flow in NSApplication
- Subject: Program flow in NSApplication
- From: John Desuza <email@hidden>
- Date: Mon, 28 Apr 2003 06:13:07 -0700 (PDT)
Hi,
I have created a sample application in Cocoa using a
custom view. i then subclassed the view from
NSScrollView.
Now in the code all the coding for creating the
matrix and NSButtonCells in the matrix is done in -
(id)initWithFrame:(NSRect)frameRect
I have a delegate from the FistOwner to class instance
controller. I have defined functions like
-(void)applicationWillFinishLaunching:(NSNotification
*)aNotification
{
}
- (void)applicationDidBecomeActive:(NSNotification
*)aNotification
{
}
- (void)applicationDidFinishLaunching:(NSNotification
*)aNotification
{
}
- (void)applicationWillBecomeActive:(NSNotification
*)aNotification
{
}
just for testing purpose to find whether the program
control reaches any of these functions. but i found
that - (id)initWithFrame:(NSRect)frameRect function
finishes all the processing and control does not reach
the 4 functions mentioned above.
i had also used -(void)awakefromNib function. But
when the program starts executing the control first
goes to - (id)initWithFrame:(NSRect)frameRect.
What could be going wrong or is this the normal
behaviour?
Is there any documentation available which tells the
flow of the program for NSApplication.
Thanks.
with rgds,
johnd
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
_______________________________________________
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.