Why can't I initialize my custom class?

Discussion in 'Mac Programming' started by DavidCar, Jan 24, 2007.

  1. macrumors 6502a

    Jan 19, 2004
    In this example I posted earlier:

    "My Approach to printing NSTableView"


    I was never able to properly initialize my custom NSBox class. I used Interface Builder to declare an NSBox to belong to the custom class, and the other methods there are called correctly, but not the init or initWithFrame methods, so I had to use an inelegant way of doing it.

    Any thoughts as to what I'm doing wrong?
  2. Moderator emeritus


    Jun 15, 2000
    Your NSBox subclass may be created via the initWithCoder: method.
  3. thread starter macrumors 6502a

    Jan 19, 2004
    I just tested it, and you're correct. Problem solved.

    Thanks for the suggestion.


Share This Page