Re: NSBeginAlertSheet and contextInfo
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.