On Fri, Feb 13, 2015, at 10:42 AM, David Duncan wrote: > Since you elided your header file, this begs a question – is this iOS or > OS X? > > If I’m not mistaken, subclasses of NSView do not get -initWithCoder:, but > rather -initWithFrame:, which begs the question of have you confirmed > that your -initWithCoder: method is being called?
This depends on whether the "prefer coder" checkbox was checked when the XIB was authored. If that checkbox is checked, instantiation behaves like iOS, where custom views get -initWithCoder: instead of -initWithFrame:. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com