• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: initWithFrame fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >initWithFrame fails (From: N!K <email@hidden>)
 >Re: initWithFrame fails (From: Steve Christensen <email@hidden>)

  • Prev by Date: Re: initWithFrame fails
  • Next by Date: Re: initWithFrame fails
  • Previous by thread: Re: initWithFrame fails
  • Next by thread: Re: initWithFrame fails
  • Index(es):
    • Date
    • Thread