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

Re: Totally confused: NSObject not init'ing


  • Subject: Re: Totally confused: NSObject not init'ing
  • From: "Erik M. Buck" <email@hidden>
  • Date: Wed, 1 Dec 2004 15:26:42 -0500

When code is not behaving as expected, step through it in the debugger.
That is what debuggers are for.

In the specific case of

order = [[ PCProductsOrder alloc] init];
NSLog(@"order: %@", order);

outputting order: (null)

Clearly [[ PCProductsOrder alloc] init]; is returning nil.

This could be because [PCProductsOrder alloc] returned nil or because -init
returned nil.

Are you sure that you are returning self from PCProductsOrder's
implementation of -init ?
Why did you show us code for PCProductsOrderController when it is probably a
problem with PCProductsOrder ?
Where and how is the order variable defined ?

 _______________________________________________
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>
  • Prev by Date: Re: NSTable: Notification on selection of already selected row.
  • Next by Date: Re: Totally confused: NSObject not init'ing
  • Previous by thread: [SOLVED] Re: Totally confused: NSObject not init'ing
  • Next by thread: Re: Totally confused: NSObject not init'ing
  • Index(es):
    • Date
    • Thread