Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional breakpoint on -retain



Christian Schneider wrote on Thursday, November 10, 2005:
>But the documentation says that I'd have complete access to all local
>variables in the conditional statement, so I'd have thought that [self
>isKindOfClass:[QTMovie class]] might be a valid statement.

"[self isKindOfClass:[QTMovie class]]" is not a "local variable". It's a method call (two, in fact). I find method and function calls iffy (at best) when used in conditional breakpoints.

You could try caching the value of whatever a QTMovie object's 'isa' member variable points to in a global somewhere, then set your condition to

    isa == gQTMovieClass

Besides, it would be about a hundred times faster.

-- 
James Bucanek
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Conditional breakpoint on -retain (From: Christian Schneider <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.