• 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
IKImageView selection issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: IKImageView selection issue
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Needed : set class for Cocoa
  • Next by Date: Re: CoreData migration and file change
  • Previous by thread: Re: Simple memory problem
  • Next by thread: Re: IKImageView selection issue
  • Index(es):
    • Date
    • Thread