• 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: Does retain not work on ids?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Does retain not work on ids? (From: Ken Tozier <email@hidden>)
 >Re: Does retain not work on ids? (From: Pandaa <email@hidden>)
 >Re: Does retain not work on ids? (From: Ken Tozier <email@hidden>)

  • Prev by Date: Newbie: Chaining CIFilters together?
  • Next by Date: Re: Does retain not work on ids?
  • Previous by thread: Re: Does retain not work on ids?
  • Next by thread: Re: Does retain not work on ids?
  • Index(es):
    • Date
    • Thread