IKImageView selection issue
IKImageView selection issue
- Subject: IKImageView selection issue
- From: Christian Graus <email@hidden>
- Date: Fri, 6 Feb 2009 11:50:39 +1100
I have a class derived from IKImageView, and in my initWithFrame ( which is
the only init I call ), I set [self setDelegate:self];
Once I do this, I have this code:
- (void) selectionRectAdded: (IKImageView *) imageView
{
NSLog(@"Created sel rect");
}
I run the app and make a selection. This log message is displayed twice (
sadly, both times before the selection ends, which is a PITA ). Now, here's
where it gets interesting. My app crashes with a bad access, and then XCode
reports that it's loading 400000 stack frames or something. Which makes me
think I've created infinite recursion, but I don't see how. I only set the
delegate in initWithFrame, so I don't see how I could have set the delegate
over and over ( does it even work that way ? ). Does anyone have any
suggestion what I may be doing wrong, please?
Christian
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden