> On 24 Dec 2014, at 15:39, Steve Christensen <[email protected]> wrote: > > Is the view being instantiated in code or as a view in a .xib? > > For the former case you would initialize the view by calling -initWithFrame: > in your code. For the latter case the OS will call -initWithCoder: as part of > xib loading and the view hierarchy creation. >
The NIB Loading Guide says that initWithCoder: is only called on OSX for system objects, custom subclasses of NSView get initWithFrame:. Not that I wouldn't try that in case it changed without the docs being updated, however initWithFrame: is what is documented to be be called in this case. _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to [email protected]
