Re: initWithFrame fails
Re: initWithFrame fails
- Subject: Re: initWithFrame fails
- From: Roland King <email@hidden>
- Date: Wed, 24 Dec 2014 15:44:28 +0800
> On 24 Dec 2014, at 15:39, Steve Christensen <email@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden