• 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
Re: Beginner Question About CustomView, -drawRect: and Plotting Data.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Beginner Question About CustomView, -drawRect: and Plotting Data. (From: Daniel J Farrell <email@hidden>)
 >Re: Beginner Question About CustomView, -drawRect: and Plotting Data. (From: Daniel J Farrell <email@hidden>)
 >Re: Beginner Question About CustomView, -drawRect: and Plotting Data. (From: Daniel J Farrell <email@hidden>)
 >Re: Beginner Question About CustomView, -drawRect: and Plotting Data. (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Beginner Question About CustomView, -drawRect: and Plotting Data.
  • Next by Date: Re: Arbitrary polygons crash -[NSBezierPath stroke]
  • Previous by thread: Re: Beginner Question About CustomView, -drawRect: and Plotting Data.
  • Next by thread: Re: Beginner Question About CustomView, -drawRect: and Plotting Data.
  • Index(es):
    • Date
    • Thread