• 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: C++ pointer to Cocoa object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ pointer to Cocoa object


  • Subject: Re: C++ pointer to Cocoa object
  • From: Casey McDermott <email@hidden>
  • Date: Sat, 08 Sep 2018 00:30:22 +0000 (UTC)

>>  NSAtom is a red herring

Quite possible.

Usually we create the C++ object, which constructs a linker in the next line or
two.
Then that creates the Cocoa object in the next line or two and hooks them up. 
They all stick around until all are deleted.  Not much chance for object
lifetime problems.

This error happened when I accidentally put something after the linker was made,
but before it made the Cocoa object.  It's probably the first time the nil test
has even
happened on a nil pointer to a Cocoa object.

Unfortunately that specific error is now fixed several times over, and I didn't
commit
when it was breaking.  But if it happens again I'll do more in-depth testing on
it.

Thanks,

Casey McDermott
www.TurtleSoft.com
_______________________________________________

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

  • Prev by Date: Re: C++ pointer to Cocoa object
  • Next by Date: Re: C++ pointer to Cocoa object
  • Previous by thread: Re: C++ pointer to Cocoa object
  • Next by thread: Re: C++ pointer to Cocoa object
  • Index(es):
    • Date
    • Thread