initWithFrame not being called?

  • Hi,

    I've sub-classed NSImageView, and created my own initWithFrame, but it
    is not being called.

    I've subclassed NSImageView like this many times before, but on this
    occasion can not see any differences that might cause this to happen.
    Is there something I've overlooked?

    (My awakeFromNib is being called OK.)

    Thanks

    Steve
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
  • On Thursday, January 30, 2003, at 11:58  AM, Steve wrote:

    > Hi,
    >
    > I've sub-classed NSImageView, and created my own initWithFrame, but it
    > is not being called.
    >
    > I've subclassed NSImageView like this many times before, but on this
    > occasion can not see any differences that might cause this to happen.
    > Is there something I've overlooked?
    >
    > (My awakeFromNib is being called OK.)

    How is the view created in Interface Builder?

    Is is a Custom View or an NSImageView originally?
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
  • initWithFrame is called if you drag a CustomView icon to your nib, if
    you drag any other view to your nib and then select a custom subclass
    through the info panel then initWithDecoder is called instead.

    On Thursday, January 30, 2003, at 09:28 PM, Steve wrote:

    > I've sub-classed NSImageView, and created my own initWithFrame, but it
    > is not being called.
    >
    > I've subclassed NSImageView like this many times before, but on this
    > occasion can not see any differences that might cause this to happen.
    > Is there something I've overlooked?
    >
    Nathan Day
    http://homepage.mac.com/nathan_day/
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
previous month january 2003 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today