• 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: NSBeginAlertSheet and contextInfo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBeginAlertSheet and contextInfo


  • Subject: Re: NSBeginAlertSheet and contextInfo
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 25 Jul 2002 23:37:58 -0700

On Thu, 25 Jul 2002 17:05:23 -0700, "John C. Randolph" <email@hidden> said:

>You're putting an autoreleased string into your contextInfo. It's
>probably getting destroyed before your sheetDidEnd method.
>This should actually be crashing the app. I'm not sure why it isn't.

Would that it did. Instead, sometimes when a string is prematurely
released, pointers to it simply start pointing to a different string. The
result is no worse than that a surprising string may crop up in the course
of running the app. This can cause the bug both to go unnoticed (I actually
almost released an app that misbehaved in this way) and to be difficult to
track down. m.
--

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: (more) [NSDictionary writeToFile:atomically:]wierd access
  • Next by Date: about double click position on NSTableView
  • Previous by thread: Re: NSBeginAlertSheet and contextInfo
  • Next by thread: Creator Code in Cocoa-Java App
  • Index(es):
    • Date
    • Thread