• 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: IKImageBrowserView & IKImageView subclasses not getting called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IKImageBrowserView & IKImageView subclasses not getting called


  • Subject: Re: IKImageBrowserView & IKImageView subclasses not getting called
  • From: Ashley Clark <email@hidden>
  • Date: Mon, 15 Feb 2010 09:18:30 -0600

On Feb 3, 2010, at 7:27 PM, Charles Burnstagger wrote:

> I subclass IKImageBrowserView & IKImageView overriding initWithFrame: & drawRect: and sending the same messages to super in both cases.
>
> I've set them as the classes for the UI objects in my IB file, and as IBOutlets in my window's window controller subclass.
>
> But when I run the code, neither of my two subclasses ever get called. What gives? Is there anything else I need to do in my subclasses?
>
> If I set the IBOutlets in the contoller subclass and class types in IB back to IKImageBrowserView & IKImageView, the code seems to do the same thing as when I use my subclasses.


For objects that were saved in a NIB file -initWithFrame: is usually not what's called to recreate them (there are some exceptions that I don't remember off the top of my head). Since NIBs are essentially archives most of the views stored within them are recreated via -initWithCoder:

As for the drawRect: override, it was my understanding that the IK*View objects didn't do any of their drawing in drawRect: but instead were done via CALayers. I could be misinformed on this point though.


Ashley

_______________________________________________

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: IKImageBrowserView & IKImageView subclasses not getting called
      • From: Jens Alfke <email@hidden>
References: 
 >IKImageBrowserView & IKImageView subclasses not getting called (From: Charles Burnstagger <email@hidden>)

  • Prev by Date: Re: Debugging auto_zone_resurrection_error in Core Data using GCD
  • Next by Date: Re: Executing shell script with root privilege
  • Previous by thread: IKImageBrowserView & IKImageView subclasses not getting called
  • Next by thread: Re: IKImageBrowserView & IKImageView subclasses not getting called
  • Index(es):
    • Date
    • Thread