• 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: -init never gets sent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -init never gets sent


  • Subject: Re: -init never gets sent
  • From: David Blanton <email@hidden>
  • Date: Thu, 28 May 2009 18:21:55 -0600

what does the declaration of init look like?
On May 28, 2009, at 5:46 PM, Erg Consultant wrote:

Oddly, the object returned is non-nil.

I should mention that the pointer being returned is a hack global declared at the top of the file like this:

static Registry *gReg = nil;

but that shouldn't matter. And I've checked that that global is never set to nil or created twice anywhere else in the code.

Erg




________________________________ From: David Blanton <email@hidden> To: Erg Consultant <email@hidden> Cc: email@hidden Sent: Thursday, May 28, 2009 4:38:42 PM Subject: Re: -init never gets sent

what is the result of [ Registry alloc ] ?

On May 28, 2009, at 5:34 PM, Erg Consultant wrote:

I have an object which I initialize like this:

gReg = [ [ Registry alloc ] init ];

Problem is, my init method never receives any message.

Does anyone know what can cause this?

Thanks,

Erg




_______________________________________________

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





_______________________________________________

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



_______________________________________________

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: -init never gets sent
      • From: Erg Consultant <email@hidden>
References: 
 >-init never gets sent (From: Erg Consultant <email@hidden>)
 >Re: -init never gets sent (From: David Blanton <email@hidden>)
 >Re: -init never gets sent (From: Erg Consultant <email@hidden>)

  • Prev by Date: Performance, Efficiency - Coding practice
  • Next by Date: Re: Performance, Efficiency - Coding practice
  • Previous by thread: Re: -init never gets sent
  • Next by thread: Re: -init never gets sent
  • Index(es):
    • Date
    • Thread