Re: Does retain not work on ids?
Re: Does retain not work on ids?
- Subject: Re: Does retain not work on ids?
- From: Pandaa <email@hidden>
- Date: Tue, 24 May 2005 05:18:15 +0200
24 maj 2005 kl. 04.27 skrev Ken Tozier:
Here's the code pared down to the bare essentials:
<cut>
- (id) initLayoutViewWithDescription:(NSDictionary *) inDescription
superview:(id) inSuperview
{
<cut>
// NSLogs here indicate properties.data exists and is valid.
<cut>
}
- (void) drawRect:(NSRect) inRect
{
// by the time it gets to here, properties data = nil
This would imply that in some way you did not expect, something has
modified properties.data between the two method calls.
Have you tried setting a watch point on properties.data in the debugger?
If you are unfamliar with watch points, see e.g.:
"More breakpoints and watchpoints" section in http://www-106.ibm.com/
developerworks/library/l-gdb/
( while this document discusses gdb on linux, most if not all of it
applies equally to using gdb within xcode )
or this CocoaBuilder thread: "Debugging - Finding when a value changed"
http://www.cocoabuilder.com/archive/message/cocoa/2002/7/22/67987
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . .
. email@hidden . . www.synapticpulse.net .
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden