Re: Beginner Question About CustomView, -drawRect: and Plotting Data.
Re: Beginner Question About CustomView, -drawRect: and Plotting Data.
- Subject: Re: Beginner Question About CustomView, -drawRect: and Plotting Data.
- From: "Shawn Erickson" <email@hidden>
- Date: Tue, 27 Jun 2006 16:40:28 -0700
On 6/27/06, John Stiles <email@hidden> wrote:
I don't think that is a "traditional" way of writing Objective-C code
at all. I'd be very leery of doing anything before NSApplicationMain
is called. There are many things that just won't work right until
AppKit has had a chance to initialize itself.
I'd recommend using "awakeFromNib" as a good place to do setup. At
this point, you know your nib data has already fully loaded and
AppKit is ready for use.
...or in your NSApplication delegate in response to
-applicationDidFinishLaunching:, among others.
<http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/applicationDidFinishLaunching:>
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden