• 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
iOS programming (who does what to whom?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iOS programming (who does what to whom?)


  • Subject: iOS programming (who does what to whom?)
  • From: John Love <email@hidden>
  • Date: Sat, 28 May 2011 12:19:25 -0400

Way back when, when XCode was almost! brand new, I printed out reams and reams of paper which described, for example, how a NSDocument-based macOS app happened.  For example, I learned to override:

-(BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSError **)outError
because this is part of initialization process before -windowControllerDidLoadNib: is called.

I learned to override: -(NSString *)windowNibName to return the name of my nib.

I learned to override - (void)windowControllerDidLoadNib:(NSWindowController *)aController
because for a new document/window, NSDocumentController's -newDocument: calls us.
When an existing document is opened, (our overridden) -readFromURL: calls us.
If the document is already open, Cocoa activates it.

I actually read the tons of Apple docs that explained in detail the chain of messages sent until the NSDocument window appeared.

Okay, what's the point?  This point is a question: where can I find the details of who calls whom after main.m is run .. in the iOS word, what happens inside UIApplicationMain.

John Love
Touch the Future! Teach!



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: iOS programming (who does what to whom?)
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Application Design
  • Next by Date: Re: iOS programming (who does what to whom?)
  • Previous by thread: Re: Properly comparing file NSURLs for equality?
  • Next by thread: Re: iOS programming (who does what to whom?)
  • Index(es):
    • Date
    • Thread