• 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
[Q] loadView doesn't return?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] loadView doesn't return?


  • Subject: [Q] loadView doesn't return?
  • From: JongAm Park <email@hidden>
  • Date: Fri, 04 Nov 2011 09:46:50 -0700

Hello,

I tried to use AV Foundation's playback capability.
So, by following AV Foundation Programming Guideline, it wrote codes for Mac. ( The document is written for iOS. )
Also, I looked up "View Controller" sample codes and "AnimatedTableView".

What is strange is that it doesn't return after loadView was called in my testing project, although it does in those sample codes.
I didn't find any semantic difference yet.

This is from my sample codes :

An app delegate class :

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
	// Insert code here to initialize your application

	NSLog( @"AppDelegate >> applicationDidFinishLaunching" );

	[_placeholderView addSubview:_viewController.view]; => calls loadView of a child class of NSViewController
	[_viewController.view setFrame:_placeholderView.frame];
	[_viewController setRepresentedObject:[NSNumber numberWithUnsignedLong:[[_viewController.view subviews] count]]];
}


The child class of NSViewController

- (void)loadView
{
	[self viewWillLoad];
	[super loadView]; <= doesn't return
	[self viewDidLoad];
}

Does anyone know why the loadView doesn't return?
Can you spare me your idea?

Thank you.


_______________________________________________

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: [Q] loadView doesn't return?
      • From: JongAm Park <email@hidden>
  • Prev by Date: Re: Adventures in core-data, iCloud, and sandboxing
  • Next by Date: Re: Core Data loading faulted object?
  • Previous by thread: Re: How to highlight the current line in NSTextView?
  • Next by thread: Re: [Q] loadView doesn't return?
  • Index(es):
    • Date
    • Thread