• 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
Totally confused: NSObject not init'ing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Totally confused: NSObject not init'ing


  • Subject: Totally confused: NSObject not init'ing
  • From: Michael Becker <email@hidden>
  • Date: Wed, 1 Dec 2004 16:51:16 +0100

Hey!

Okay, this one almost scares me! What the heck is wrong here? I have an NSObject subclass (PCProductsOrder) and an NSWindowController subclass (PCProductsOrderController). The controller wants to create an instance of the NSObject subclass.
Here's the code:


- (id)init {
	self = [ super initWithWindowNibName:@"ProductsOrder"];
	if (self) {
		NSLog(@"initializing");
		order = [[ PCProductsOrder alloc] init];
		NSLog(@"order: %@", order);
	}
	return self;
}

I put an NSLog into PCProductsOrder's init-method (which doesn't do anything special) and it's obviously never called. The output of the above method is the following:

2004-12-01 16:46:47.555 PhotoClient3[1008] initializing
2004-12-01 16:46:47.555 PhotoClient3[1008] order: (null)

There are no compile-time errors or warnings, to my eyes everything looks alright. What could be the cause of this?

Cheers,
Michael

_______________________________________________
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


  • Follow-Ups:
    • Re: Totally confused: NSObject not init'ing
      • From: Guy English <email@hidden>
    • Re: Totally confused: NSObject not init'ing
      • From: Shawn Erickson <email@hidden>
    • Re: Totally confused: NSObject not init'ing
      • From: Amul Goswamy <email@hidden>
    • Re: Totally confused: NSObject not init'ing
      • From: Steve Bird <email@hidden>
    • Re: Totally confused: NSObject not init'ing
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: Custom menu drawing / NSPopupButtonCell question
  • Next by Date: Re: Swapping isa's (was Re: Hex Edit controls (resknife))
  • Previous by thread: Re: Highlight table row like Mail or Finder?
  • Next by thread: Re: Totally confused: NSObject not init'ing
  • Index(es):
    • Date
    • Thread