• 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: Allan Odgaard <email@hidden>
  • Date: Fri, 07 Sep 2018 22:44:51 +0200

On 7 Sep 2018, at 19:46, Casey McDermott wrote:

Problem is, with ARC turned on, the pointer is never nil, so it crashes.
The void pointer somehow becomes an NSAtom instead of 0.

Nil is nil, I think your issue is rather that you do not properly retain the pointer before storing it as void*.
_______________________________________________

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: C++ pointer to Cocoa object
      • From: "Gary L. Wade" <email@hidden>
References: 
 >C++ pointer to Cocoa object (From: Casey McDermott <email@hidden>)

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