• 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: Kyle Sluder <email@hidden>
  • Date: Wed, 24 Dec 2014 12:28:39 -0600

On Wed, Dec 24, 2014, at 01:28 AM, N!K wrote:
> The view is what came when the project was initiated. On the left side,
> MainMenu.xib shows Placeholders, Objects, and then the window name. Below
> it is the view name, same as file name set in Identity Inspector>Class.
> Clicking on the view name makes the view tan colored.
> I couldn't find any help in Google, so please, what can I do to get this
> running correctly?

-initWithFrame: will only be called if the object in the nib is an
instance of one of those blue "Custom View" placeholder things. If you
change the class of an existing view object (like, say, the window's
contentView or the document view of a scroll view), it will not get
-initWithFrame:. This is a surprising quirk, but it happens because the
logic for calling -initWithFrame: actually lives in the Custom View's
-initWithCoder: implementation.

--Kyle Sluder
 _______________________________________________
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>)

  • 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